Multiple lookups (vertical and horizontal)

joand

Active Member
Joined
Sep 18, 2003
Messages
267
I need to do both horizontal and vertical lookups but dont know how to. I want to return any of the data from the range "I4:HC55" that meets the following criteria
Range I2:HC2 = "Greenwich"
Range I3:HC3 = "Sales"
Range F4:F55 = "02/10/2022"

Anyone want to offer some help
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
try this:
Excel Formula:
=INDEX(I4:HC55,MATCH(5,F4:F55,0),MATCH(("Greenwhich")&("Sales"),(I2:HC2)&(I3:HC3),0))
 
Upvote 0
Another Option

Products.xlsx
ABCDEFGHIJKLM
1
2GreenwichOther Text 1Other Text 1Other Text 1GreenwichOther Text 1
3SalesOther Text 2Other Text 2Other Text 2SalesOther Text 2
42/10/20227223532738
52/10/2022272/11/20227561147361
62/11/2022529471155
72/11/20223338393980
82/11/20229193868792
92/11/20226696974534
102/11/20225733237585
112/11/20223863583569
Sheet5
Cell Formulas
RangeFormula
D5D5=INDEX($I$4:$HC$55,MATCH(C5,$F$4:$F$55,0),MATCH(D2&D3,$I$2:$HC$2&$I$3:$HC$3,0))
 
Upvote 0
=INDEX(I4:HC55,MATCH(5,F4:F55,0),MATCH(("Greenwhich")&("Sales"),(I2:HC2)&(I3:HC3),0))
you'd need to replace the "5" with the date you are looking for, and fix the spelling of Greenwich
 
Upvote 0
=INDEX(I4:HC55,MATCH(DATE(2022,2,10),F4:F55,0),MATCH(("Greenwich")&("Sales"),(I2:HC2)&(I3:HC3),0))
 
Upvote 0
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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