Sumproduct question

J

John in Wembley

Hi all mighty sumproduct experts.
What ovious thing do I have wrong?
G1 is the start date
G2 the end date
I wish to count all the jobs "Logged" between these dates
Col B holds the date the job was logged.


=SUMPRODUCT((B12:B100>=G1),(B12:B100<=G2),H12:H100="Logged")

currently does not work
thanks
john
 
J

Jim Thomlinson

Try this...

=SUMPRODUCT(--(B12:B100>=G1),--(B12:B100<=G2),--(H12:H100="Logged"))
 
P

Pete_UK

Hi John,

try it like this:

=SUMPRODUCT(--(B12:B100>=G1),--(B12:B100<=G2),--(H12:H100="Logged"))

Personally, I prefer it like this:

=SUMPRODUCT((B12:B100>=G1)*(B12:B100<=G2)*(H12:H100="Logged"))

Hope this helps.

Pete
 
R

Roger Govier

Hi John

You need to coerce the True/False result for each of those tests to 1's and
0's
Either use
=SUMPRODUCT(--(B12:B100>=G1),--(B12:B100<=G2),--(H12:H100="Logged"))
or
=SUMPRODUCT((B12:B100>=G1)*(B12:B100<=G2)*(H12:H100="Logged"))
 

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