Extracting text separated with a character

Tkeller

Board Regular
Joined
Jul 23, 2003
Messages
143
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I have a very large column of data that consistes of either 1, 2, or 3 phases, with each phase separated with the character "|". I would like to extract each phase and place into a separate column, as shown below (so take the label and create the Phase 1, Phase 2, and Phase 3 for each):

LabelPhase 1Phase 2Phase 3
option xyz | options 345option xyzoptions 345
optoin xyz | options def |option rdsoption xyzoptions defoption rds
Single option 123single option 123

I am struggling with how to extract each phase from the lebel. Again, there are casses where there is 1, 2, or 3 phases.

Thanks,
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks for that (y)
How about
Fluff.xlsm
ABCD
1LabelPhase 1Phase 2Phase 3
2option xyz | options 345option xyzoptions 345
3optoin xyz | options def |option rdsoptoin xyzoptions defoption rds
4Single option 123Single option 123
Main
Cell Formulas
RangeFormula
B2:C2,B4,B3:D3B2=TRIM(TEXTSPLIT(A2,"|"))
Dynamic array formulas.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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