#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 2 variable Lookup

I know how to use vlookup but on only 1 variable.

I have a table with two variables, part # and count, and I want to be able to
look up a 3rd variable with a formula.

Thus:

PART COUNT COST
3SA3 50 $2.23
3SA3 100 $3.99
3SA3 200 $7.89
5GX1 10 $1.80
5GX1 20 $2.99

etc. So the goal would be that if on another sheet I had the part in cell A1
and the count in Cell A2, I could use a formula in cell A3 to return the
correct cost.

Thanks,
Andrew

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 2 variable Lookup

Try this:

=SUMPRODUCT(--(Sheet2!A2:A10=A1),--(Sheet2!B2:B10=A2),Sheet2!C2:C10)

--
Biff
Microsoft Excel MVP


"andrewevandc" <u51945@uwe wrote in message news:9621c354daf15@uwe...
I know how to use vlookup but on only 1 variable.

I have a table with two variables, part # and count, and I want to be able
to
look up a 3rd variable with a formula.

Thus:

PART COUNT COST
3SA3 50 $2.23
3SA3 100 $3.99
3SA3 200 $7.89
5GX1 10 $1.80
5GX1 20 $2.99

etc. So the goal would be that if on another sheet I had the part in cell
A1
and the count in Cell A2, I could use a formula in cell A3 to return the
correct cost.

Thanks,
Andrew



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable lookup Rod Excel Worksheet Functions 6 October 17th 08 02:27 PM
Lookup using variable name Rod Excel Worksheet Functions 1 October 17th 08 12:09 AM
Lookup on more than one variable in 2003 Kay Excel Discussion (Misc queries) 3 July 11th 08 01:05 PM
3 variable lookup rooter Excel Worksheet Functions 6 May 10th 08 10:19 PM
Variable Lookup/Double Lookup Ryan[_2_] Excel Worksheet Functions 8 May 14th 07 09:44 PM


All times are GMT +1. The time now is 02:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"