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() = Wednesday 13 November 2024
2=NOW() = Wednesday 13 November 2024 19:58:05

1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".


Built-in Functions

DATE - The date as a date serial number given a year, month, day.
NOW - The date serial number of the current system date and time.
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 value of a given cell reference specified by a text string.


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