help with formula

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
 
G

Guest

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
 
G

Guest

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
 
S

Sandy Mann

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
 
G

Gord Dibben

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top