Look Up with Multiple Conditions

July 26th, 2012 - 08:59 pm ET by Excel Dumbo | Report spam
Hello,

Could you please help me with a formula to lookup data based on multipl
variables ? Please see attached

Thanks

Excel Dumb

+-
|Filename: Multiple Look UP Query.zip
|Download: http://www.excelbanter.com/attachme...chmentidP8
+-


Excel Dumbo
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Dave O
July 27th, 2012 - 10:49 am ET | Report spam
One possible answer:
=SUMPRODUCT(--($B$1=Data!$A$4:$A$21),--($A3=Data!$B$4:$B$21),Data!$C$4:$C$21)
...where Data!$c$4:$c$21 represents the column of numbers to be summed. To capture the July information you'd need to change this to Data!$d$4:$d$21.

This answer uses the double unary operator, indicated by the -- in the formula. In the context of SUMPRODUCT, the double unary operator checks a given column for a match, as in --($B$1=Data!$A$4:$A$21); where there is a match it applies a 1 to the multiplication, and where there is a mismatch it applies 0. If a row matches all the specified conditions, SUMPRODUCT multiplies 1 x 1 x N. If any condition mismatches the 0 multiplier yields a 0 in the sum.
Replies Reply to this message
#2 Excel Dumbo
July 29th, 2012 - 07:20 pm ET | Report spam
Thanks Dave. This is what I was looking fo

+-
+-


Excel Dumbo
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search