VLOOKUP or MATCH w/ Multiple Columns - Return 1 Result

JGarcia

New Member
Joined
Nov 15, 2012
Messages
4
Looking for help with below, sorry if post is too basic. Am familiar with VLOOKUP but not with multiple columns. STATE and PRODUCT fields in the SELECTION section below are just Data Validation List from the TABLE below.

Once STATE and PRODUCT are selected, can VLOOKUP return the correct Price from the TABLE?

SELECTION:


STATEAL
PRODUCTProduct 1
RATE ?

<tbody>
</tbody>

TABLE:

RATES
STATEProduct 1Product 2Product 3
AL3.004.005.00
CO4.005.006.00
GA5.006.007.00
IL6.007.008.00
IN7.008.009.00
KS8.009.0010.00
KY9.0010.0011.00
LA10.0011.0012.00
MS11.0012.0013.00
NC12.0013.0014.00
NY13.0014.0015.00
OH14.0015.0016.00
PA15.0016.0017.00
TN16.0017.0018.00
TX17.0018.0019.00

<tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
hello JGarcia,

try this:

=OFFSET($A$2,MATCH($H$3,$A$3:$A$17,0),MATCH($H$4,$B$2:$D$2,0))

where:
A2 - start of the reference table
H3 - state input
H4 - product input
 
Upvote 0
Looking for help with below, sorry if post is too basic. Am familiar with VLOOKUP but not with multiple columns. STATE and PRODUCT fields in the SELECTION section below are just Data Validation List from the TABLE below.

Once STATE and PRODUCT are selected, can VLOOKUP return the correct Price from the TABLE?

SELECTION:


STATE
AL
PRODUCT
Product 1
RATE
?

<TBODY>
</TBODY>

TABLE:

RATES
STATE
Product 1
Product 2
Product 3
AL
3.00
4.00
5.00
CO
4.00
5.00
6.00
GA
5.00
6.00
7.00
IL
6.00
7.00
8.00
IN
7.00
8.00
9.00
KS
8.00
9.00
10.00
KY
9.00
10.00
11.00
LA
10.00
11.00
12.00
MS
11.00
12.00
13.00
NC
12.00
13.00
14.00
NY
13.00
14.00
15.00
OH
14.00
15.00
16.00
PA
15.00
16.00
17.00
TN
16.00
17.00
18.00
TX
17.00
18.00
19.00

<TBODY>
</TBODY>
One way...

Book1
ABCD
1STATEProduct 1Product 2Product 3
2AL345
3CO456
4GA567
5IL678
6IN789
7KS8910
8KY91011
9LA101112
10MS111213
11NC121314
12NY131415
13OH141516
14PA151617
15TN161718
16TX171819
17____
18STATEAL__
19PRODUCTProduct 1__
20RATE3__
Sheet1

This formula entered in B20:

=VLOOKUP(B18,A1:D16,MATCH(B19,A1:D1,0),0)
 
Upvote 0
Thanks for example Biff, but I get a formula error, Excel won't accept and recommends change below where it adds a multiply operator at the end.

=VLOOKUP(B18,A1:D16,MATCH(B19,A1:D1,0)*0)
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,109
Members
449,205
Latest member
ralemanygarcia

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