![]() |
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. |
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. |
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