more than a standard lookup

Greenmachine

New Member
Joined
May 24, 2005
Messages
20
What I want to do is enter "a" in one cell, and "blu" in another cell and have it return the number 5. Or if I have "d" and "green" return the number 12. How do I get the result to automatically update from what I put in the letter and color cells?

letter: b
color: red
result: 2


red blu green
a 1 5 9
b 2 6 10
c 3 7 11
d 4 8 12

Thank you all so much.
Billy
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try this:
Book1
ABCDEFGHI
1redblugreen
2a159letter:d
3b2610colour:green
4c3711result:12
5d4812
6
Sheet1


Formula in H4: =INDEX($B$2:$D$5,MATCH($H$2,$A$2:$A$5,0),MATCH($H$3,$B$1:$D$1,0))

adjust ranges and references to suit.
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

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