Trim Data with 5 Sections

tsroque

Board Regular
Joined
Jan 19, 2007
Messages
127
Office Version
  1. 365
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! ;)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,791
Members
449,188
Latest member
Hoffk036

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