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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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.
 

Forum statistics

Threads
1,176,487
Messages
5,903,359
Members
435,020
Latest member
rustyesimpson

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
Top