Extract data into separate cells

buteaur

Board Regular
Joined
Mar 15, 2016
Messages
170
Hello.

I have data in a cell that I need to extract into seperate cells. Here's the example:

14 = Street RCA Combo #203: Task BG0178
15 = Street RCA Combo #204: Task BG0018
16 = Street RCA Combo #205: Task BG0020
17 = Street RCA Combo #206: Task BG0022
18 = Street RCA Combo #207: Task BG0348

The issue I'm having is getting these to be extracted properly into their own cells.

I need the first number to get into it's own cell, I need the number after "combo" to be in it's own cell and then I need the last number (BGxxxx" to be in it's own cell.

I can't figure it out.... Any help is appreciated.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try these..

Note, the formula in C is dependant on the results of B and D.


Unknown
ABCD
114 = Street RCA Combo #203: Task BG017814203BG0178
215 = Street RCA Combo #204: Task BG001815204BG0018
316 = Street RCA Combo #205: Task BG002016205BG0020
417 = Street RCA Combo #206: Task BG002217206BG0022
518 = Street RCA Combo #207: Task BG034818207BG0348
Sheet1
Cell Formulas
RangeFormula
B1=LEFT(A1,FIND(" ",A1))+0
C1=SUBSTITUTE(SUBSTITUTE(A1,B1&" = Street RCA Combo #",""),": Task "&D1,"")+0
D1=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN(A1)))
 
Upvote 0
I just want to be sure I stated this correctly and that this will work.

The example I provided has all that data put into one cell. So it's all in A1. That's what's making it difficult for me.

Thank you!
 
Upvote 0
The example I provided has all that data put into one cell. So it's all in A1. That's what's making it difficult for me.
Some questions then...

1) Is that first number always two digits long?

2) Is the number after "Combo#" always three digits long?

3) Is that number after "Task" always six characters long?

4) Where did you want the output to go to... B1:D5 or A2:C6?
 
Upvote 0
@buteaur
Can you clarify..
Did you mean that ALL 5 lines are in one cell (A1) ?

or

A1 = "14 = Street RCA Combo #203: Task BG0178"
A2 = "15 = Street RCA Combo #204: Task BG0018"
A3 = "16 = Street RCA Combo #205: Task BG0020"
Etc ?
 
Upvote 0
@buteaur
Can you clarify..
Did you mean that ALL 5 lines are in one cell (A1) ?

or

A1 = "14 = Street RCA Combo #203: Task BG0178"
A2 = "15 = Street RCA Combo #204: Task BG0018"
A3 = "16 = Street RCA Combo #205: Task BG0020"
Etc ?
And after you answer the above question that Jonmo1 asked, please answer the questions I asked in Message #5 as well.
 
Upvote 0
Hello. Yes, all 5 lines are in one cell. And yes, the length of the numbers is always the same.

Thanks you again.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,023
Latest member
alabaz

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