SUMPRODUCT with dates

J

Jock

How do I change the formula below so that it works with dates?
=SUMPRODUCT(--($E$2:$E$1043="CA*"),--($D$2:$D$1043>=31/12/1999))
as it returns '0' at the moment whereas there should be 100's
Essentially, count the number of instances 'CA' appears in column E when the
date is on or after 31/12/99.
 
D

Dave Peterson

=SUMPRODUCT(--($E$2:$E$1043="CA*"),--($D$2:$D$1043>=date(1999,12,31))

Did you really mean to include Dec 31, 1999?

If no, you could just check the year:
=SUMPRODUCT(--($E$2:$E$1043="CA*"),--(year($D$2:$D$1043)>2000))
 

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