Please tell me why this =SUMPRODUCT(WEEKDAY($B2:$B2048,1)=1)) works fine for Sunday and =2, =3 etc. work for Tuesday thru Friday. There are 148 rows with data to count and they all get counted correctly. The remaining rows are blank.
Except that...
=SUMPRODUCT(WEEKDAY($B2:$B2048,1)=7)) on Saturday returns "1912". It is apparently counting blank cells for some reason. Why does this happen only for Saturday?
I am using =SUMPRODUCT(--($B2:$B2048<>""),--(WEEKDAY($B2:$B2048,1)=7)) to correct for it. But why do I need to do that?
Except that...
=SUMPRODUCT(WEEKDAY($B2:$B2048,1)=7)) on Saturday returns "1912". It is apparently counting blank cells for some reason. Why does this happen only for Saturday?
I am using =SUMPRODUCT(--($B2:$B2048<>""),--(WEEKDAY($B2:$B2048,1)=7)) to correct for it. But why do I need to do that?