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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

ExcelChampion

Well-known Member
Joined
Aug 12, 2005
Messages
976
In B1:
=TRIM(LEFT(A1,FIND(" ",A1,FIND(" ",A1)+1)))

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

unnilennium78

New Member
Joined
Aug 13, 2007
Messages
40
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

unnilennium78

New Member
Joined
Aug 13, 2007
Messages
40
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

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
59,294
Office Version
  1. 365
Platform
  1. Windows
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

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
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,191,179
Messages
5,985,146
Members
439,943
Latest member
bowlgud2

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