Help with row and colum lookups

maximillianrg

Board Regular
Joined
Aug 7, 2014
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Apple
[/TD]
[TD="align: center"]Fig
[/TD]
[TD="align: center"]Peach
[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]Fish
[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]3
[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD="align: center"]Mole
[/TD]
[TD="align: center"]4
[/TD]
[TD="align: center"]5
[/TD]
[TD="align: center"]6
[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]RAT
[/TD]
[TD="align: center"]7
[/TD]
[TD="align: center"]8
[/TD]
[TD="align: center"]9
[/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]

Hello Excel Wizards

In the above example, I'm looking for a formula in cell A5 that would contain one fruit and one animal and return the intersecting value. For example the formula would look up the value Fig and Rat and the result would be 8. If the formula contained the words Apple and Fish the result would be 1.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Book1
ABCDEFGH
1AppleFigPeachRATFig8
2Fish123
3Mole456
4RAT789
Blad1
Cell Formulas
RangeFormula
H1=INDEX($A$1:$D$4,MATCH(F1,$A$1:$A$4,0),MATCH(G1,$A$1:$D$1,0))
 
Upvote 0
Hello Oeldere

Thank you so much - that worked - I just had to modify the formula a but as I wanted the lookup values in the formula =INDEX($A$1:$D$4,MATCH("Mole",$A$1:$A$4,0),MATCH("Fig",$A$1:$D$1,0))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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