01/01/2023 | 02/01/2023 | 03/01/2023 | 04/01/2023 | 05/01/2023 | 06/01/2023 | 07/01/2023 | 08/01/2023 | 09/01/2023 | 10/01/2023 | 11/01/2023 | 12/01/2023 | 13/01/2023 | 14/01/2023 | 15/01/2023 | 16/01/2023 | 17/01/2023 | 18/01/2023 | 19/01/2023 | |||
START | END | DAYS | MO | TU | WE | TH | FR | SA | SU | MO | TU | WE | TH | FR | SA | SU | MO | TU | WE | TH | FR |
01/01/2023 | 19/01/2023 | 14 |
The formula above fills in the cells which are within the range of the dates but I do not know how to exclude Saturday and Sunday from the formula.
=-AND(E$1>=$B4,E$1<=$C4,TEXT(E$1,"ddd")<>"SA",TEXT(E$1,"ddd")<>"SU")
this is a formula which I got from chat open ai but it doesn't seem to work
Ant help would be great