Extracting information from varaible string

jsantos77

New Member
Joined
Sep 18, 2008
Messages
20
Hi everyone

I am looking for a formula solution to extract information from a variable string of text. In short I need to segregate 4 pieces of information into 4 different cells

Original String 90896 X SMITH P/P TOMS 500A 5 752315 20
Result desired:
C1 90896
D1 5
E1 752315
F1 20

1- C1 1st number string from left (Can be from 4 to 8 digits long, but it always lead to a space ) I think I got this one!
2- D1 3rd number string from right (can be up to 3 digits)
3- E1 2nd number string from right (can be from 4 to 8 digits long, but will always be between spaces)
4- F1 1st number string from right (can also be up to 3 digits long)

For C1 I have =LEFT(A1,FIND("^",SUBSTITUTE(A1," ","^",1))-1) and it seems to be doing the job

What would you sugest for the rest of the cells D1,E1 & F1?

Any suggestions will be greatly appreciated

Thanks
JSantos
 
Same as my formulas in Post # 9, just changed the Columns references to match your requirement C, D, E, F

Again C1 formula copied Down.
D1 formula copied Down And Across to Column F


Book1
ABCDEF
190896 X SMITH P/P TOMS 500A 5 752315 2090896575231520
2811440 TSY RED PEPPERS 5 90992 58114405909925
390983 D SMITH FRESH SWEETCORN P/P 2s 5 90983 5909835909835
4811440 TSY RED PEPPERS 5 90992 58114405909925
5811440 TSY RED PEPPERS 5 90992 98114405909929
6811440 TSY RED PEPPERS 6 90992 68114406909926
7811440 TSY RED PEPPERS 7 90992 78114407909927
8811440 TSY RED PEPPERS 5 90992 98114405909929
Sheet618
Cell Formulas
RangeFormula
C1=LEFT(A1,FIND(" ",A1))+0
D1=MID(RIGHT(SUBSTITUTE($A1," ",REPT(" ",100)),300),COLUMNS($D1:D1)*100-99,100)+0
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,818
Messages
6,121,725
Members
449,049
Latest member
MiguekHeka

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