Jump to content

Excel Concatenate Formula


suryatry26

Recommended Posts

Hi I have doubt in Excel Concatenate Formula.Here i have pasted one reference image.As per that Image I am Concatenating 05888 & 0001 means output coming like 5888-1.But i want out Like 05888-0001.I changed that column format as a Text also.But same output is coming.Any option is there? If 0001 means 0001 only need to come.

Concatenate_1.jpg

Link to comment
Share on other sites

If the type of data in first two columns is Text, then the formula below should work:

=CONCATENATE(A1, "-", B1)

Edited by MSasu
Fixed the formula, "-" instead of "+".
Link to comment
Share on other sites

ExcelConcatenate.PNG

No semi-colon's here. But, as indicate by the green triangles in the upper left hand corner, both cells are Text. Note that I change this "+" to this "-".

Link to comment
Share on other sites

Or is a dash preferred over a plus sign?

I'm afraid that it was my mistake when I wrote the formula. It should included a dash, as in OP's screen-shot. Sorry for inconvenience.

Link to comment
Share on other sites

use semicolons not commas to separate the text elements.

That is controled by what character you had set as List separator into Regional Settings of your system.

Link to comment
Share on other sites

Excel Concat.jpg

 

The difference is the language version. This is German and as the Germans use a comma as a decimal seperator and it could be that they use a semicolon to differentiate with the decimal seperator. I don't know. If you SUM some cells together they use a semicolon to seperate the list, what do they use in the English version ReMark? Sorry if I caused some confusion here.

Link to comment
Share on other sites

Same here ReMark.

 

My Excel set-up is OOTB and in Regional Settings my List Seperator is a ';' hence the difference. Thanks for the explanation Mircea.

 

Let's see what the OP says when he comes back tomorrow.

Link to comment
Share on other sites

The below formula will force the formatting of the two values being concatenated; the type of data should not make a difference.

=CONCATENATE(TEXT(A1, "00000"), "-", TEXT(B1, "0000"))

 

By the way, you may ask a moderator to move your thread into a public area for better visibility and therefore support.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...