break concatenate

johnny52

Active Member
Joined
Oct 13, 2006
Messages
332
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
In cell a1 I have a concatenate formula with this result 1-2-10-12

I would like to break that out to col b ,col c, col d and col e showing them as separate individual numbers
b1=1 c1=2 d1=10 and e1 =12

at times these numbers will change so I want to accommodate a two digit or one digit scenario like if this 20-3-8-1 occurs.

Is there a left mid right formula to do this

Thanks everbody :)
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

Use B1 formula if you want the results converted to Real numbers.

Use B9 formula if you may have Leading zeros that you want preserved, result is Text.

Either formula copied across:


Book1
ABCDEFG
11-2-10-12121012
220-3-8-120381
311-22-33-4411223344
45-6-7-85678
5999-111-222-333999111222333
61-22-333-4444-55555-666666122333444455555666666
7
8
91-02-10-121021012
1020-3-08-1203081
1111-22-33-044112233044
1205-6-7-805678
13999-00111-222-003339990011122200333
141-22-333-4444-55555-666666122333444455555666666
Sheet651
Cell Formulas
RangeFormula
B1=IFERROR(MID(SUBSTITUTE($A1,"-",REPT(" ",100)),COLUMNS($B1:B1)*100-99,100)+0,"")
B9=TRIM(MID(SUBSTITUTE($A9,"-",REPT(" ",100)),COLUMNS($B9:B9)*100-99,100))
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,085
Members
449,064
Latest member
MattDRT

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