View Single Post
  #6  
Old 11-09-2006, 06:52 AM
davesexcel's Avatar
davesexcel davesexcel is offline
Forum Moderator
 
Join Date: 19 Feb 2006
Location: Cochrane,Alberta
Posts: 3,731
davesexcel is a jewel in the rough
Lookup Two Criteria using SUMPRODUCT

Thanks for the reply,
I had forgotten about the best solution for this:
Sometimes I get stuck on the lookup formulas I forget that there is SUmproduct

this one works for both columns

Code:
column H
=SUMPRODUCT(($B$5:$B$25=G5)*($A$5:$A$25=$H$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G6)*($A$5:$A$25=$H$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G7)*($A$5:$A$25=$H$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G8)*($A$5:$A$25=$H$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G9)*($A$5:$A$25=$H$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G10)*($A$5:$A$25=$H$4)*($C$5:$C$25))
column I
=SUMPRODUCT(($B$5:$B$25=G5)*($A$5:$A$25=$I$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G6)*($A$5:$A$25=$I$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G7)*($A$5:$A$25=$I$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G8)*($A$5:$A$25=$I$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G9)*($A$5:$A$25=$I$4)*($C$5:$C$25))
=SUMPRODUCT(($B$5:$B$25=G10)*($A$5:$A$25=$I$4)*($C$5:$C$25))
Attached Files
File Type: zip lookup two criteria SUMPRODUCT 09-Nov-06 3-55-10.zip (5.3 KB, 186 views)
__________________
Dave
Please read the Forum Rules before posting!

Last edited by davesexcel; 11-09-2006 at 06:56 AM..
Reply With Quote