Trim Data with 5 Sections

tsroque

Board Regular
Joined
Jan 19, 2007
Messages
123
I have the following data in A2:

DATA1:DATA2:DATA3:DATA4:DATA5

I need to extract it as follows

C2 = DATA1 =LEFT(A2,IF(ISERROR(FIND(":",A2,1)),LEN(A2),FIND(":",A2,1)-1))
D2 = DATA2
E2 = DATA3
F2 = DATA4
G2 = DATA5

What would be my formulas in each cell? I can't seem to get passed the first one. Also, some cells may only have since the list builds upon itself (not my list):

DATA1 or
DATA1:DATA2 or
DATA1:DATA2:DATA3
DATA1:DATA2:DATA3:DATA4

Thank you! As always, look forward to what someone comes up! ;)
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
I'd use Data-->Text to Columns-->Delimited-->Add a colon as the delimiter.

That'll be a lot easier than trying a formula, especially if you'll have variations, which TTC won't care about.

HTH,
 

Watch MrExcel Video

Forum statistics

Threads
1,126,986
Messages
5,622,002
Members
415,873
Latest member
fuulhouse

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
Top