A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

2 variable Lookup



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 10:13 PM posted to microsoft.public.excel.misc
andrewevandc
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  
Old May 15th, 2009, 10:36 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:40 PM.


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