Lookup

Duritz

Board Regular
Joined
Apr 28, 2005
Messages
226
If I have a range like this in columns A-C -

A B C
1 2 34.6
1 3 5.3
1 4 19.7
1 5 8.6
1 6 17.3
1 7 7.6
1 8 8.1
2 3 0
2 4 138
2 5 0
2 6 0
2 7 138
2 8 138
3 4 46.1
3 5 15.3
3 6 69.2
3 7 9.8
3 8 12.5
4 5 138
4 6 138
4 7 69.2
4 8 0


And in range d2:e2 I have this

D E
3 7

How do I lookup that 3 7 and return the value corresponding, ie 9.8?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

yee388

Well-known Member
Joined
Mar 7, 2004
Messages
1,374
Here's one solution:
Book1
ABCDEF
11234.6
2135.3379.8
31419.7
4158.6
51617.3
6177.6
7188.1
8230
924138
10250
11260
1227138
1328138
143446.1
153515.3
163669.2
17379.8
183812.5
1945138
2046138
214769.2
22480
Sheet1
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
A common idiom, which needs to be confirmed with control+shift+enter...

=INDEX($C$2:$C$23,MATCH(1,IF($A$2:$A$23=D2,IF($B$2:$B$23=E2,1)),0))

where D2 houses 3 and E2 7.

Also, possibly because the (sub)ranges are in ascending order...

=LOOKUP(E2,OFFSET($B$2,MATCH(D2,$A$2:$A$23,0)-1,0,MATCH(D2,$A$2:$A$23,1)-MATCH(D2,$A$2:$A$23,0),2))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,055
Messages
5,857,063
Members
431,852
Latest member
Richard1982

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