Can someone check this formula please?

Y

y_not

Hi,

I am using the following formula: -

=SUMPRODUCT((Names!$A$2:$A$351="01/03/2006")*(Names!$E$2:$E$351>0))

the idea being that it checks A1 to A351 for the date (in this case
01/03/2006) and then returns the total number of occurances.

Problem is ... it don't work!! (Obvious being as I wrote it!!)

Can anyone help, please?

Many thanks

Tony
 
D

Don Guillett

There are several ways to fis but the easiest way, for you, would be to put
your date in a cell and use
=SUMPRODUCT((Names!$A$2:$A$351=b1)*(Names!$E$2:$E$351>0))
 
A

Ardus Petus

Try this:
=SUMPRODUCT((Names!$A$2:$A$351=DATE(2006,3,1))*(Names!$E$2:$E$351>0))

HTH
 
B

Biff

The specific reason why your formula did not work is because "01/03/2006" is
being evaluated as a TEXT string and not a numeric DATE.

Don's suggestion is the best option to use but here are a couple of others:

=SUMPRODUCT((Names!$A$2:$A$351=--"2006/01/03")*(Names!$E$2:$E$351>0))

=SUMPRODUCT((Names!$A$2:$A$351=DATE(2006,1,3))*(Names!$E$2:$E$351>0))

Biff
 
Top