merging 3 columns into 1

Heliops

New Member
Joined
Nov 16, 2018
Messages
10
Hi there, I have 3 columns of data in the following format: 1234 99 1234567 and I want to get it all into one column but in 2 different formats as such: 1234991234567 and 1234-99-1234567.

Would be most grateful for any help
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
If you concatenate them in D, you'll string them together as text.

Code:
=A1&B1&C1

If you have Flash Fill (Excel 365 or 2016) you can use that in E by typing the pattern 1234-99-1234567 into E1 and then from the Data tab, run Flash Fill.

Alternatively,

Code:
=A1&"-"&B1&"-"&C1
 
Last edited:
Upvote 0
Assuming your values are in cells A1, B1 and C1...

You can combine them without hyphens like this:

Code:
= CONCAT( A1:C1 )

Or you can combine them with hyphens like this:

Code:
= TEXTJOIN( "-", TRUE(),  A2:C2 )
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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