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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
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.
 

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Use Index Match

=INDEX(B2:D5,MATCH(G1,A2:A5,0),MATCH(G2,B1:D1,0))

lenze
 

Forum statistics

Threads
1,141,720
Messages
5,708,081
Members
421,545
Latest member
TWR

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