» Avoiding Errors When Counting Date Values That Meet Specified Criteria
The range A2:B9 contains a series of dates and the corresponding number of hours worked on each of them.
An empty cell in column B that matches a date in column A indicates that 0 hours were worked on that day.
The range may also include blank rows.
The following formula was created to count the number of days in January for which 0 hours were worked:
However, an incorrect result of 3 was returned.
Use the SUMPRODUCT, MONTH, ISBLANK, and ISNUMBER functions as shown in the following formula:
|Screenshot // Avoiding Errors When Counting Date Values That Meet Specified Criteria|