Search two columns using one criteria return third column

doug2019

New Member
Joined
Dec 20, 2019
Messages
5
Office Version
  1. 365
Platform
  1. Windows
The results in column "N" are either in column "T" or "U" I need to be able to find the matching number in Column "T" or "U" and return what is in column "V" into column "K". If no results are found it needs to say "check lookup table"

Index, Match will only look at one column, not sure what else will help me

Thanks Doug

A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
N​
O​
P​
Q​
R​
S​
T​
U​
V​
1100614, Standard, Pin Stakes - 12"TransferCharge184.0000.00$0.70$139.843610.02 Small Tool Equipment100614
Code in Cell N1​
=LEFT(B11,SEARCH(",",B11)-1)
1006145653610.02 Small Tool Equipment
23373, VC 150-10 X, Shop Vac, HEPA, w/ OutletTransferCharge184.0001.92$353.28$353.28337312151333733610.02 Small Tool Equipment
33396, DCH273, Rotohammer, Cordless, SmallTransferCharge184.0000.78$135.18$135.183396420079924893610.03 Large Tool Equipment
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi & welcome to MrExcel
How about
=IFERROR(INDEX($V$2:$V$4,IFERROR(MATCH(N2,$T$2:$T$4,0),MATCH(N2,$U$2:$U$4,0))),"check lookup table")
 
Upvote 0
Hi & welcome to MrExcel
How about
=IFERROR(INDEX($V$2:$V$4,IFERROR(MATCH(N2,$T$2:$T$4,0),MATCH(N2,$U$2:$U$4,0))),"check lookup table")
Yes this works, Thank You I was pulling out my hair and I don't even have any :)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Yes this works, Thank You I was pulling out my hair and I don't even have any :)
Is there anyway to add a wildcard in case there is alpha charters within the numerical, or all alpha charters, this formula with only work on numerical, I have some instances where this will show up 10110A, or Delivery Charge will be part of the lookup.
 
Upvote 0
Can you post some examples of the data?
 
Upvote 0
The results in column "N" are either in column "T" or "U" I need to be able to find the matching number in Column "T" or "U" and return what is in column "V" into column "K". If no results are found it needs to say "check lookup table" This Formula works only on numerical =IFERROR(INDEX($V$2:$V$4,IFERROR(MATCH(N2,$T$2:$T$4,0),MATCH(N2,$U$2:$U$4,0))),"check lookup table") I have added Value in front of N2 VALUE(N2) but it will not recognize alpha characters

ABCDEFGHIJKLMNOPQRSTUV
1100614, Standard, Pin Stakes - 12"TransferCharge184.0000.00$0.70$139.843610.02 Small Tool Equipment100614Code in Cell N1
=LEFT(B11,SEARCH(",",B11)-1)
1006145653610.02 Small Tool Equipment
23373A, VC 150-10 X, Shop Vac, HEPA, w/ OutletTransferCharge184.0001.92$353.28$353.283373A1215133373A3610.02 Small Tool Equipment
3Delivery Charge, DCH273, Rotohammer, Cordless, SmallTransferCharge184.0000.78$135.18$135.18Delivery ChargeDelivery Charge893610.03 Delivery Charge
 
Upvote 0
That formula works for me regardless of whether the values are text or numerical.

Book1
ABCDEFGHIJKLMNOPQRSTUV
1ABCDEFGHIJKLMNOPQRSTUV
21100614, Standard, Pin Stakes - 12"TransferCharge1840$0.70$139.843610.02 Small Tool Equipment100614Delivery Charge893610.03 Delivery Charge
323373A, VC 150-10 X, Shop Vac, HEPA, w/ OutletTransferCharge1841.92$353.28$353.283610.02 Small Tool Equipment3373A1006145653610.02 Small Tool Equipment
43Delivery Charge, DCH273, Rotohammer, Cordless, SmallTransferCharge1840.78$135.18$135.183610.03 Delivery ChargeDelivery Charge1215133373A3610.02 Small Tool Equipment
5test2abc123atest1
6test1123aabctest2
7check lookup tablea123123test3
Report
Cell Formulas
RangeFormula
K2:K7K2=IFERROR(INDEX($V$2:$V$7,IFERROR(MATCH(N2,$T$2:$T$7,0),MATCH(N2,$U$2:$U$7,0))),"check lookup table")
 
Upvote 0
After removing the VALUE and using your exact code it works for me to, thanks again for all your help
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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