help with formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

=SUMPRODUCT(--(Sheet1!B2:B200="D"),--(Sheet1!C2:C200=4),D2:D200)

When I use this formula, the result is 0.

A B C D

1 D 4 2
2 B 2 3
3 D 5 5
4 A 2 2
 
I did not finish b4 posting.

if you look at the example that i used, the result with this formula should
be 2. But again I am getting 0. It's supposed to find where column B has a
"D" and then look in the same row over to column C and if there is a "4"
there, then sum the hours in column D

Thank You
Brian
 
could you set my example up on sheet1 while placing the formula in sheet2,
you should then see that the result is zero. I need the formula to be on a
seperate sheet.

Thank You
Brian
 
Brian,

Because the # D2:D200 # is not qualified as being in sheet 1 XL will assume
that it is in the active sheet. Try:

=SUMPRODUCT(--(Sheet1!B2:B200="D"),--(Sheet1!C2:C200=4),Sheet1!D2:D200)

--
HTH

Sandy
In Perth, the ancient capital of Scotland

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
Brian

This works for me.

=SUMPRODUCT(--(Sheet1!B2:B200="D"),--(Sheet1!C2:C200=4),Sheet1!D2:D200)


Gord Dibben MS Excel MVP

could you set my example up on sheet1 while placing the formula in sheet2,
you should then see that the result is zero. I need the formula to be on a
seperate sheet.

Thank You
Brian
 
Back
Top