I need to parse out certian text. [SOLVED]

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
I need to split this out
Name They are all QC(Quality Control) then Rank
In cell A1:
Anderson, Bob QC, Top Gun
I need in B1:
Anderson, Bob
In C1:
Top Gun

What could I use to get these results? The QC, is consistant every time in each set of text.

Thank You for help!!
Michael
 

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
In B1:
=TRIM(LEFT(A1,FIND(" ",A1,FIND(" ",A1)+1)))

In C1:
=SUBSTITUTE(A1,LEFT(A1,FIND("QC, ",A1)+3),"")
 
Upvote 0
Hi Excel Champion.....

I think B1 chould be changed to
=TRIM(LEFT(A1,FIND("QC,",A1)-1))

because if in any case there is 3 spacing before the word QC, then there will be an error in the sorting....
 
Upvote 0
There is another alternative way.....

B1
=MID(A1,1,SEARCH("QC,",A1,1)-1)

C1
=MID(A1,SEARCH("QC,",A1,1)+3,255)

but there is a limitation that C1 will only output till 255 char.......
 
Upvote 0
A fairly quick non-formula option maybe?

1. Select the column and do a Find/Replace, finding " QC, " and replacing with "@" (without the "" which I just included to identify the spaces in the Find text)
2. Data|Text to Columns using @ as the delimiter.
 
Upvote 0
Thank You everyone!
They all seemed to work quite well.

You know Peter, that worked really well. It really was very simple and clean!!

Thank You again,
Michael
 
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,985
Members
448,935
Latest member
ijat

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