Number of weekend days between 2 dates

Returns the number of Saturdays between the 2 dates
SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&"."&B1))7)=1))


 A
1=TODAY() = Monday 03 January 2022
2=NOW() = Monday 03 January 2022 08:58:11

Built-in Functions

SUMPRODUCT - The sum of the product of one or more arrays of values.
WEEKDAY - The day of the week for a given date.
ROW - The row number of a cell reference.
INDIRECT - The text string of the contents of a given cell reference.


© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited Top