1
I want to count cells, whose values are dates, under the following condition: The date value entered must be a day between Monday and Friday.
Assume the following data and my try:
Column A
--
15.01.2015 (5)
16.01.2015 (6)
17.01.2015 (7)
18.01.2015 (1)
19.01.2015 (2)
The function WEEKDAY
seems to be practical to use. It returns 1
for a Monday through 7
for a Sunday.
Formula: =COUNTIF( A:A; WEEKDAY(A:A; 1) < 6 )
For now my formula returns 0
, but 3
is expected.
How can I change it to the right behavior?
1The reason the
A:A
formula does not work is that the blank cells return7
which is counted by the formula. Instead try this:{=SUM(N(WEEKDAY(A:A,2)<6))}
. Though I am afraid it only work in Office 2013 and later. In previous versions, the WEEKDAY formula had different options and does not include for Numbers 1 (Monday) to 7 (Sunday) – wbeard52 – 2015-01-20T01:10:24.487