Extract from a string

lwilt

Board Regular
Joined
May 16, 2013
Messages
187
Hi,


I'm trying to be able to pull out a number from column G in the attachment. What I'm needing is whenever there is not a 9 digit number in column D beginning with 100,it comes over as a text field of the server btw, then it searches column G for that number. In column G that number always follows the phase Web Order with a ending space. I'm having trouble getting it to search for the length and beginning sequence before it goes into G to find the missing number.


Appreciate the help.

 
The forum doesn't allow uploads, so could you paste some sample data, and what you expect?
 
Upvote 0
=IFERROR(IF(IF(ISNUMBER(VALUE(D2)),IF(AND(VALUE(D2)>=10^8,VALUE(D2)<10^8+10^6),0,1),1)=0,D2,MID(G2,SEARCH("Web Order ",G2)+10,9)),"Not found")
 
Upvote 0

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