Combing two columns...

Nuyorican

Board Regular
Joined
Jun 17, 2003
Messages
206
Happy New Year to All !!!

I have Column A, which contains ID numbers, as such...12-3456. Column B contains names that are associated with the numbers. When I combine the two columns into Column C, I lose the the "dash" between the ID numbers. I wind up with "123456" plus the name. I need "12-3456 and the name". Thank you.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Happy New Year to All !!!

I have Column A, which contains ID numbers, as such...12-3456. Column B contains names that are associated with the numbers. When I combine the two columns into Column C, I lose the the "dash" between the ID numbers. I wind up with "123456" plus the name. I need "12-3456 and the name". Thank you.
Assuming your values in Column A are cell formatted with this Type pattern...

00-0000

change your formula to this...

=TEXT(A1,"00-0000 ")&B1

Note that space after the last 0 places a space between the ID and the name... if you don't want them separated by a space, just delete that space after the last 0 in the formula.
 
Upvote 0

Forum statistics

Threads
1,215,239
Messages
6,123,817
Members
449,127
Latest member
Cyko

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top