#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default VLookup

I want to know how to do a VLookUp (I think that is the formula, I would you
use) with multiple criteria. For example:

If the supplier is George O'Days and the lot # is 10100, then I would want
the corresponding new and recon. value's inserted in the appropriate columns.

If and If Then 1 Then 2
Supplier Lot # Value New Value ReCon.
George Oday 10100 $149.00 $91.25


-Thank you, Kimberly
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default VLookup

I am assuming you have a table somewhere where all your data is stored. I
will name this data storage tab as Data, and assume the actual values begin
in row 2, and across columns A thru D.

Now, say I have a cell on my other tab that I have a Supplier listed along
next to a Lot Number
Value New:
=SUMPRODUCT(--(Data!$A$2:$A$100=supplier),--(Data!$B$2:$B$100=lotnumber),($C$2:$C$100))
Value ReCon:
==SUMPRODUCT(--(Data!$A$2:$A$100=supplier),--(Data!$B$2:$B$100=lotnumber),($D$2:$D$100))
--
John C


"Kimberly" wrote:

I want to know how to do a VLookUp (I think that is the formula, I would you
use) with multiple criteria. For example:

If the supplier is George O'Days and the lot # is 10100, then I would want
the corresponding new and recon. value's inserted in the appropriate columns.

If and If Then 1 Then 2
Supplier Lot # Value New Value ReCon.
George Oday 10100 $149.00 $91.25


-Thank you, Kimberly

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default VLookup

For a single criteria, Vlookup is the way to go. However, with multiple
criteria, I would recommend SumProduct().

=SUMPRODUCT(--($A$2:$A$3="George Oday"),--($B$2:$B$3="10100"),C$2:C$3)
using the double negative (--) before each condition makes it a 1 or 0 for
true/false comparision.. in the current format, it looks at your table (rows
2 and 3) and checks if George Oday is in Column A, and 10100 is in Column B,
from there it sums whatever is in Column C.

SumProduct was confusing the first time I used it, so if you have any
followup questions, I'd be glad to answer them (although I know there is a
lot of answers in these newsgroups already, you might be able to find more
faster answers there!).

Hope this helps, Jim
--
I appreciate any feedback.
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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 06:14 AM.

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

About Us

"It's about Microsoft Excel"