Concatenate Columns that have leading zeros and decmails
I am trying to merge multiple columns together, but run into an issue with leading zeros..
Column F Column G Column H Column I
0000000033.33 + 01 09
=CONCATENATE(F1&G1&H1&I1)
Results:
33.33+19
There are more columns containing leading zeros at different lengths and some columns that have symbols. I just want it to pick up exact what is in each column.
I have tried this in numerous formulas searching google. I have applied text format to the column too which does not help (I also tried applying text format to the column with the leading zeros and it just deletes all the zeros).
I have tried the following query in access as well, and it removes the leading zeros as well:
Select *, [Field5] & [Field6] & [Field7] As FullNumber
From Table 1
excel concatenation spreadsheet
|
show 3 more comments
I am trying to merge multiple columns together, but run into an issue with leading zeros..
Column F Column G Column H Column I
0000000033.33 + 01 09
=CONCATENATE(F1&G1&H1&I1)
Results:
33.33+19
There are more columns containing leading zeros at different lengths and some columns that have symbols. I just want it to pick up exact what is in each column.
I have tried this in numerous formulas searching google. I have applied text format to the column too which does not help (I also tried applying text format to the column with the leading zeros and it just deletes all the zeros).
I have tried the following query in access as well, and it removes the leading zeros as well:
Select *, [Field5] & [Field6] & [Field7] As FullNumber
From Table 1
excel concatenation spreadsheet
I tried to duplicate your issue, but it seemed to work for me, putting together the contents of the cells as is with leading zero's. I formatted my columnsF
throughI
as text before I entered the values, but then I formatted them as general and then back to text without changing the results. Not sure if you may have some default setting or version issue. I'm running Excel 2016 in Windows 10.
– Rey Juna
Nov 19 '18 at 21:42
^yes, I believe you are right about my setting/version Issue. I am running on windows 7/ Excel 2010. I'm saying you're right because none of the solutions online apply and it seems like they are the correct solutions. How do I identify what setting I need to change?
– LOZ
Nov 19 '18 at 21:43
@ReyJuna Forgot to tag you. Also, when I format a column to text it will not accept formulas (formula is written as text).
– LOZ
Nov 19 '18 at 21:56
I have no knowledge of any way to do this in settings. I just ran through all my Excel settings and didn't see anything promising. Since you mention having a similar issue in Access it may not even be an Excel setting, if that is truly the cause.
– Rey Juna
Nov 19 '18 at 21:59
1
I believe the only way this behaviour can exist is if a custom number format has been applied to the cells ("0000000000.00" for column F and "00" for column H and I). If you can confirm this by inspecting the number format in the Home menu, then it'll get you closer to an answer. You can either replicate the custom number format with the TEXT function, or use a VBA function to automatically do it.
– hughg
Nov 19 '18 at 23:17
|
show 3 more comments
I am trying to merge multiple columns together, but run into an issue with leading zeros..
Column F Column G Column H Column I
0000000033.33 + 01 09
=CONCATENATE(F1&G1&H1&I1)
Results:
33.33+19
There are more columns containing leading zeros at different lengths and some columns that have symbols. I just want it to pick up exact what is in each column.
I have tried this in numerous formulas searching google. I have applied text format to the column too which does not help (I also tried applying text format to the column with the leading zeros and it just deletes all the zeros).
I have tried the following query in access as well, and it removes the leading zeros as well:
Select *, [Field5] & [Field6] & [Field7] As FullNumber
From Table 1
excel concatenation spreadsheet
I am trying to merge multiple columns together, but run into an issue with leading zeros..
Column F Column G Column H Column I
0000000033.33 + 01 09
=CONCATENATE(F1&G1&H1&I1)
Results:
33.33+19
There are more columns containing leading zeros at different lengths and some columns that have symbols. I just want it to pick up exact what is in each column.
I have tried this in numerous formulas searching google. I have applied text format to the column too which does not help (I also tried applying text format to the column with the leading zeros and it just deletes all the zeros).
I have tried the following query in access as well, and it removes the leading zeros as well:
Select *, [Field5] & [Field6] & [Field7] As FullNumber
From Table 1
excel concatenation spreadsheet
excel concatenation spreadsheet
edited Nov 19 '18 at 21:26
LOZ
asked Nov 19 '18 at 21:21
LOZLOZ
9091134
9091134
I tried to duplicate your issue, but it seemed to work for me, putting together the contents of the cells as is with leading zero's. I formatted my columnsF
throughI
as text before I entered the values, but then I formatted them as general and then back to text without changing the results. Not sure if you may have some default setting or version issue. I'm running Excel 2016 in Windows 10.
– Rey Juna
Nov 19 '18 at 21:42
^yes, I believe you are right about my setting/version Issue. I am running on windows 7/ Excel 2010. I'm saying you're right because none of the solutions online apply and it seems like they are the correct solutions. How do I identify what setting I need to change?
– LOZ
Nov 19 '18 at 21:43
@ReyJuna Forgot to tag you. Also, when I format a column to text it will not accept formulas (formula is written as text).
– LOZ
Nov 19 '18 at 21:56
I have no knowledge of any way to do this in settings. I just ran through all my Excel settings and didn't see anything promising. Since you mention having a similar issue in Access it may not even be an Excel setting, if that is truly the cause.
– Rey Juna
Nov 19 '18 at 21:59
1
I believe the only way this behaviour can exist is if a custom number format has been applied to the cells ("0000000000.00" for column F and "00" for column H and I). If you can confirm this by inspecting the number format in the Home menu, then it'll get you closer to an answer. You can either replicate the custom number format with the TEXT function, or use a VBA function to automatically do it.
– hughg
Nov 19 '18 at 23:17
|
show 3 more comments
I tried to duplicate your issue, but it seemed to work for me, putting together the contents of the cells as is with leading zero's. I formatted my columnsF
throughI
as text before I entered the values, but then I formatted them as general and then back to text without changing the results. Not sure if you may have some default setting or version issue. I'm running Excel 2016 in Windows 10.
– Rey Juna
Nov 19 '18 at 21:42
^yes, I believe you are right about my setting/version Issue. I am running on windows 7/ Excel 2010. I'm saying you're right because none of the solutions online apply and it seems like they are the correct solutions. How do I identify what setting I need to change?
– LOZ
Nov 19 '18 at 21:43
@ReyJuna Forgot to tag you. Also, when I format a column to text it will not accept formulas (formula is written as text).
– LOZ
Nov 19 '18 at 21:56
I have no knowledge of any way to do this in settings. I just ran through all my Excel settings and didn't see anything promising. Since you mention having a similar issue in Access it may not even be an Excel setting, if that is truly the cause.
– Rey Juna
Nov 19 '18 at 21:59
1
I believe the only way this behaviour can exist is if a custom number format has been applied to the cells ("0000000000.00" for column F and "00" for column H and I). If you can confirm this by inspecting the number format in the Home menu, then it'll get you closer to an answer. You can either replicate the custom number format with the TEXT function, or use a VBA function to automatically do it.
– hughg
Nov 19 '18 at 23:17
I tried to duplicate your issue, but it seemed to work for me, putting together the contents of the cells as is with leading zero's. I formatted my columns
F
through I
as text before I entered the values, but then I formatted them as general and then back to text without changing the results. Not sure if you may have some default setting or version issue. I'm running Excel 2016 in Windows 10.– Rey Juna
Nov 19 '18 at 21:42
I tried to duplicate your issue, but it seemed to work for me, putting together the contents of the cells as is with leading zero's. I formatted my columns
F
through I
as text before I entered the values, but then I formatted them as general and then back to text without changing the results. Not sure if you may have some default setting or version issue. I'm running Excel 2016 in Windows 10.– Rey Juna
Nov 19 '18 at 21:42
^yes, I believe you are right about my setting/version Issue. I am running on windows 7/ Excel 2010. I'm saying you're right because none of the solutions online apply and it seems like they are the correct solutions. How do I identify what setting I need to change?
– LOZ
Nov 19 '18 at 21:43
^yes, I believe you are right about my setting/version Issue. I am running on windows 7/ Excel 2010. I'm saying you're right because none of the solutions online apply and it seems like they are the correct solutions. How do I identify what setting I need to change?
– LOZ
Nov 19 '18 at 21:43
@ReyJuna Forgot to tag you. Also, when I format a column to text it will not accept formulas (formula is written as text).
– LOZ
Nov 19 '18 at 21:56
@ReyJuna Forgot to tag you. Also, when I format a column to text it will not accept formulas (formula is written as text).
– LOZ
Nov 19 '18 at 21:56
I have no knowledge of any way to do this in settings. I just ran through all my Excel settings and didn't see anything promising. Since you mention having a similar issue in Access it may not even be an Excel setting, if that is truly the cause.
– Rey Juna
Nov 19 '18 at 21:59
I have no knowledge of any way to do this in settings. I just ran through all my Excel settings and didn't see anything promising. Since you mention having a similar issue in Access it may not even be an Excel setting, if that is truly the cause.
– Rey Juna
Nov 19 '18 at 21:59
1
1
I believe the only way this behaviour can exist is if a custom number format has been applied to the cells ("0000000000.00" for column F and "00" for column H and I). If you can confirm this by inspecting the number format in the Home menu, then it'll get you closer to an answer. You can either replicate the custom number format with the TEXT function, or use a VBA function to automatically do it.
– hughg
Nov 19 '18 at 23:17
I believe the only way this behaviour can exist is if a custom number format has been applied to the cells ("0000000000.00" for column F and "00" for column H and I). If you can confirm this by inspecting the number format in the Home menu, then it'll get you closer to an answer. You can either replicate the custom number format with the TEXT function, or use a VBA function to automatically do it.
– hughg
Nov 19 '18 at 23:17
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53382806%2fconcatenate-columns-that-have-leading-zeros-and-decmails%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53382806%2fconcatenate-columns-that-have-leading-zeros-and-decmails%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I tried to duplicate your issue, but it seemed to work for me, putting together the contents of the cells as is with leading zero's. I formatted my columns
F
throughI
as text before I entered the values, but then I formatted them as general and then back to text without changing the results. Not sure if you may have some default setting or version issue. I'm running Excel 2016 in Windows 10.– Rey Juna
Nov 19 '18 at 21:42
^yes, I believe you are right about my setting/version Issue. I am running on windows 7/ Excel 2010. I'm saying you're right because none of the solutions online apply and it seems like they are the correct solutions. How do I identify what setting I need to change?
– LOZ
Nov 19 '18 at 21:43
@ReyJuna Forgot to tag you. Also, when I format a column to text it will not accept formulas (formula is written as text).
– LOZ
Nov 19 '18 at 21:56
I have no knowledge of any way to do this in settings. I just ran through all my Excel settings and didn't see anything promising. Since you mention having a similar issue in Access it may not even be an Excel setting, if that is truly the cause.
– Rey Juna
Nov 19 '18 at 21:59
1
I believe the only way this behaviour can exist is if a custom number format has been applied to the cells ("0000000000.00" for column F and "00" for column H and I). If you can confirm this by inspecting the number format in the Home menu, then it'll get you closer to an answer. You can either replicate the custom number format with the TEXT function, or use a VBA function to automatically do it.
– hughg
Nov 19 '18 at 23:17