Google-sheets – How to get the count number of weekdays in a datetime column in Google Sheets

formulasgoogle sheetsgoogle-sheets-arrayformulagoogle-sheets-querygoogle-sheets-timestamp

I have a timestamp in mm/dd/yy hh:mm:ss format from January to March. How do I count "how many days are Monday" in the range of A1:A199? (Or How Many are Tuesday, Wednesday, Saturday?

This gives me a value of 5

=ArrayFormula(COUNTUNIQUE(TEXT(A2:A199,"ddd")))

I need to know how many Mondays from Jan to Mar and by manually calculating there are 7 Mondays in my data (A1:A199) and 8 Thursdays and 9 Saturdays.

Best Answer

=ARRAYFORMULA(COUNTA(IFERROR(FILTER(A2:A, TEXT(A2:A, "ddd")="Mon"))))

0