ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMPRODUCT with dates (https://www.excelbanter.com/excel-worksheet-functions/207362-sumproduct-dates.html)

Jock

SUMPRODUCT with dates
 
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.
--
Traa Dy Liooar

Jock

John C[_2_]

SUMPRODUCT with dates
 
$D$2:$D$1043=--"31/12/1999"

--
** John C **
Please remember, if your question is answered, to check the YES box below.
It helps everyone.


"Jock" wrote:

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.
--
Traa Dy Liooar

Jock


Dave Peterson

SUMPRODUCT with dates
 
=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))


Jock wrote:

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.
--
Traa Dy Liooar

Jock


--

Dave Peterson


All times are GMT +1. The time now is 05:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com