Return the day of the week for a date as a number.
This function works the same in Google Sheets as it does in Excel — same syntax and arguments.
WEEKDAY(serial_number, [return_type])WEEKDAY converts a date into a weekday number (by default 1 = Sunday … 7 = Saturday). Use the return_type argument to make Monday the first day. Handy for grouping by weekday or flagging weekends.
=WEEKDAY(A2, 2)Result: 3
Returns 3 for a Wednesday (Mon=1 system).
Use =WEEKDAY(A2,2)>5 — TRUE for Saturday and Sunday.