Index match formula that can match within a string of text??

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am not even sure if this is possible but am hoping someone can help me write a formula that can match text and return the value from another column.
The problem is what I need matched is a numberic 6 digit number always following rather: "WO " or "W/O "

Any help would be greatly appreciated!!

Here is an example of the data and a picture of where I want to put the formula:

Book1
AB
1WO#PO#
2110500
3140899
4106270
5117953
6110222
7175123
Sheet1


Book1
AB
1PO#Notes
24696PLEASE SHIP FEDEX WO 117953
34697W/O 106270 SHIP FEDEX
44698SHIP FEDEX ACCOUNT XXXX999WO 140899
54699Please ship fedex
64700Account# XXXXXX
74701WO 110500 replacement
84702Economy
Sheet2


1614792010990.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
You could try:

=INDEX(Sheet2!$A$2:$A$8,IFERROR(MATCH("*WO "&A2&"*",Sheet2!$B$2:$B$8,0),MATCH("*W/O "&A2&"*",Sheet2!$B$2:$B$8,0)))
 
Upvote 0
Solution
Hi,

This will work, change sheet # to match your data:

Book3.xlsx
AB
1WO#PO#
21105004701
31408994698
41062704697
51179534696
6110222 
7175123 
Sheet816
Cell Formulas
RangeFormula
B2:B7B2=IFERROR(LOOKUP(2,1/SEARCH(" "&A2&" "," "&Sheet817!B$2:B$8&" "),Sheet817!A$2:A$8),"")


Book3.xlsx
AB
1PO#Notes
24696PLEASE SHIP FEDEX WO 117953
34697W/O 106270 SHIP FEDEX
44698SHIP FEDEX ACCOUNT XXXX999WO 140899
54699Please ship fedex
64700Account# XXXXXX
74701WO 110500 replacement
84702Economy
Sheet817
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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