SUMPRODUCT Formula Not Calculating with 2 criteria

D

DogLover

Each of these calculate correcting when by themselves.

=SUMPRODUCT(--(DataOrientMoYr>=DATE(2009,7,1)))
=SUMPRODUCT(--(DataTime="First day of employment (Time 1)"))
=SUMPRODUCT(--(TEXT(DataOrientMoYr,"m/d/yyyy")>="7/1/2009)


But, when I combine together, I get a #Value! error.
=SUMPRODUCT(--(DataTime="First day of employment (Time
1)"),--(TEXT(DataOrientMoYr,"m/d/yyyy")>="7/1/2009"))

Does anyone have any suggestions, I am puzzled.
 
P

Per Jessen

Hi

Check if both named ranges are the same size, othervise you will get
this error.

Regards,
Per
 
D

DogLover

I just discovered the problem was that I changed the DataOrientMoYr range to
a smaller size for testing. Now DataOrientMoYr and DataTime are the same
size and it works.
 
Top