SUMPRODUCT with conditions

C

CW

Hi All

I have a formula which is working as follows:
=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D4:D52<>""))

This basically counts the numbers of values in a column against a set value.
So for me it counts the number of projects that have dates against the
'testing' phase.

I need to amend this to only count the value if the phase is currently in
progress. This would basically be if D4:D52 < Today() and E4:E52 > Today().

Unfortunately I'm having great difficulty putting this in to a formula.
Could someone please assist?

Thanks
CW
 
P

Pete_UK

Try this:

=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D4:D52<TODAY())*(Data!
E4:E52>TODAY()))

Hope this helps.

Pete
 
J

Jacob Skaria

Try the below...

=SUMPRODUCT((Data1!B4:B52="Testing")*(ISNUMBER(Data1!D4:D52))*(ISNUMBER(Data1!E4:E52))*(Data1!D4:D52<=TODAY())*
(Data1!E4:E52>=TODAY()))
 
C

CW

Thanks both, both formulas do the job.



Pete_UK said:
Try this:

=SUMPRODUCT((Data1!B4:B52="Testing")*(Data1!D4:D52<TODAY())*(Data!
E4:E52>TODAY()))

Hope this helps.

Pete



.
 

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