ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SUMPRODUCT Formula Not Calculating with 2 criteria (https://www.excelbanter.com/excel-programming/436497-sumproduct-formula-not-calculating-2-criteria.html)

DogLover

SUMPRODUCT Formula Not Calculating with 2 criteria
 
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.

Per Jessen[_2_]

SUMPRODUCT Formula Not Calculating with 2 criteria
 
Hi

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

Regards,
Per

On 23 Nov., 00:30, DogLover
wrote:
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.



DogLover

SUMPRODUCT Formula Not Calculating with 2 criteria
 
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.

"DogLover" wrote:

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.



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

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