formula to locate data from a grid

blodzoom

Board Regular
Joined
Aug 5, 2005
Messages
103
spacing gets screwed up when I submit, so you'll have to visualize...

across the top is "Truck" "dog" and "bike", down column A is colors, and in the middle of the grid is number values.


if this was my spreadsheet, I'd like to be able to wite a formula that would return "4" if given "orange" and "dog".

is this possible?

I was thinking an Hlookup combined with some function that I don't know about yet that could locate "orange" and return the value of which row it's on.

any ideas?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Assuming that Truck, Dog, and Bike is in B1:D1 and colors are in A2:A10...

=INDEX($B$2:$D$10,MATCH(Color,$A$2:$A$10,0),MATCH(Entity,$B$1:$D$1,0))

BTW, when you pose such questions, try to be specific about ranges involved.
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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