lookup function with 2 variables

jacarter

New Member
Joined
Nov 25, 2002
Messages
12
I have a list of 3 columns to be used as a lookup range.

I need the result in the 3rd column according to the first and second columns.

Example: For the 6 sets of data as follows:
6,2,180
6,2.5,210
6,3,240
8,3,210
8,3.5,265
8,4,315

Results needed for random inputs:
Input 8,3-->210
Input 6,2-->180
Input 8,3.5-->265
Input 6,3-->240

Any ideas?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
If your data is organized like that you can use DGET or SUMPRODUCT, but if you can organize your data a little different, with one of the variables going across the columns, and the other one across rows, you can use an "ordinary" INDEX/MATCH combination.
 
Upvote 0
This is one way with Index / match.

Enter formula with Ctrl + Shift + Enter
Book1
ABCDEFG
1
26218075100
375100
483500
5910200
Sheet4
 
Upvote 0
If you can't re-organize the data, you can add an additional column to data, created by concatenation and use an ordinary, on-expensive retrieval formula.
Book2
ABCDEFGH
1XYZConcat
2621806283210
362.521062.562180
4632406383.5265
5832108363240
683.526583.5
78431584
8
9
Sheet1


D2:

=A2&CHAR(127)&B2

H2:

=INDEX($C$2:$C$7,MATCH(F2&CHAR(127)&G2,$D$2:$D$7,0))
 
Upvote 0
And the winner is. . .

The using index and match. Either use an array command or create a column and use a normal command.

I don't like using array commands because they are more complex then what the users are used to, so I gave him the option of a "dummy" column or the array comand.

Thanks!

Joe
 
Upvote 0

Forum statistics

Threads
1,225,761
Messages
6,186,891
Members
453,383
Latest member
SSXP

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