Formula to Extract Data

punit83

Board Regular
Joined
Jan 17, 2018
Messages
84
Office Version
  1. 2019
Platform
  1. Windows
Pls help me with formula for extracting data according to criteria.
I want to extract data from column A to column B, C, D respectivly.
Pls note sometime there are 2 or more space in data

Book1
ABCD
1ORDER DETAILCLIENTORDER #DATE
2CLIENT : MCDOWEL ORDER # 7259 DATE : 01/07/2024
Sheet1





Thanks in Advance.
Punit
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Could this work for you:

Excel Formula:
=LEFT(MID(TRIM(A2),10,99),FIND(" ORDER",MID(TRIM(A2),10,99)))

Excel Formula:
=--(LEFT(MID(TRIM(A2),FIND(" # ",TRIM(A2))+3,99),FIND(" ",MID(TRIM(A2),FIND(" # ",TRIM(A2))+3,99))))

Excel Formula:
=--(MID(TRIM(A2),FIND("DATE : ",TRIM(A2))+7,99))
 
Upvote 0
Could this work for you:

Excel Formula:
=LEFT(MID(TRIM(A2),10,99),FIND(" ORDER",MID(TRIM(A2),10,99)))

Excel Formula:
=--(LEFT(MID(TRIM(A2),FIND(" # ",TRIM(A2))+3,99),FIND(" ",MID(TRIM(A2),FIND(" # ",TRIM(A2))+3,99))))

Excel Formula:
=--(MID(TRIM(A2),FIND("DATE : ",TRIM(A2))+7,99))
Hello,

Thanks a lot, it worked but can you pls guide formula for data as below, i need for another excel file.
Thanks one more time.
ORDER #7259 MCDOWEL 10-06-2024
ORDER #927 DCWEL 06/06/2024

I tried to make little changes in your above mention formula but i am getting error.
You will be my hour saver, thanks
 
Upvote 0
Try
Book1
ABCD
1OrderNameDate
2ORDER #7259 MCDOWEL 10-06-20247259MCDOWEL10-06-2024
3ORDER #927 DCWEL 06/06/2024927DCWEL06/06/2024
Sheet5
Cell Formulas
RangeFormula
B2:B3B2=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",99)),FIND("#",SUBSTITUTE(A2," ",REPT(" ",99)))+1,99))
C2:C3C2=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",99)),FIND(B2,SUBSTITUTE(A2," ",REPT(" ",99)))+LEN(B2)+1,99*2))
D2:D3D2=MID(A2,FIND(C2,A2)+LEN(C2)+1,99)
 
Upvote 0
Solution
Try
Book1
ABCD
1OrderNameDate
2ORDER #7259 MCDOWEL 10-06-20247259MCDOWEL10-06-2024
3ORDER #927 DCWEL 06/06/2024927DCWEL06/06/2024
Sheet5
Cell Formulas
RangeFormula
B2:B3B2=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",99)),FIND("#",SUBSTITUTE(A2," ",REPT(" ",99)))+1,99))
C2:C3C2=TRIM(MID(SUBSTITUTE(A2," ",REPT(" ",99)),FIND(B2,SUBSTITUTE(A2," ",REPT(" ",99)))+LEN(B2)+1,99*2))
D2:D3D2=MID(A2,FIND(C2,A2)+LEN(C2)+1,99)
Thanks Thanks A Lot......................:-)
 
Upvote 0

Forum statistics

Threads
1,226,460
Messages
6,191,164
Members
453,643
Latest member
adamb83

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