sumproduct returns zero

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

Guest

The following formula gives me a zero result :
=SUMPRODUCT((B2:B18="joe")*(F2:F18>"0"))

I want to count all occurences of values>$0.00 in Column F only if column
B=Joe in a filtered list.

Thank you
 
Assuming your values in Col F are real numbers, take the quotes off the 0

=SUMPRODUCT((B2:B18="joe")*(F2:F18>0))

or

=SUMPRODUCT(--(B2:B18="joe"),--(F2:F18>0))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------­------------------------------­----------------
 
vacation said:
The following formula gives me a zero result :
=SUMPRODUCT((B2:B18="joe")*(F2:F18>"0"))

I want to count all occurences of values>$0.00 in Column F only if column
B=Joe in a filtered list.

It should be:

=SUMPRODUCT((B2:B18="joe")*(F2:F18>0))

Bruno
 
Remove the quotes for your second condition...

=SUMPRODUCT((B2:B18="Joe")*(F2:F18>0))

For a filtered list, try the following...

=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(B2:B18,ROW(B2:B18)-ROW(B2),0,1))),--(B2:
B18="Joe"),--(F2:F18>0))

Hope this helps!
 
Thank you, that was fast.

Domenic said:
Remove the quotes for your second condition...

=SUMPRODUCT((B2:B18="Joe")*(F2:F18>0))

For a filtered list, try the following...

=SUMPRODUCT(--(SUBTOTAL(3,OFFSET(B2:B18,ROW(B2:B18)-ROW(B2),0,1))),--(B2:
B18="Joe"),--(F2:F18>0))

Hope this helps!
 

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

Back
Top