Share via

WEEKDAY function and a blank cell

Anonymous
2018-05-07T20:59:21+00:00

Hi, I encountered a problem that might need a bug fix in Excel. When the WEEKDAY function gets its input from a blank cell or is 0 (zero), the result is Saturday. The formula was written =WEEKDAY(0), the result is 7. Shouldn't it provide #NUM! as a result? For me it created trouble in array entered formula used to calculate conditional averages.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 102K Reputation points Volunteer Moderator
2018-05-08T00:05:19+00:00

Hi,

0 corresponds to a date 0 January 1900.  This is probably 31 December 1899.  Apparently, that was a Saturday.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful