Hi,
I am trying to count how many days are between two date for various work patterns, I am trying to create a formula which will change the serial number of weekday based on a work pattern, the below example is a section of my formula that works but I'm trying to advance it:
WEEKDAY((IF($B$3<DATE(YEAR($B$4),1,1),DATE(YEAR($B$4),1,1),$B$3))-{2,3})
I am wanting the 2 (Monday) and 3 (Wednesday) to change so if I have cell in A1 that is 4 (Thursday) and another cell in B1 that is 5 (Friday) based on certain work patterns it will change to the below formula
WEEKDAY((IF($B$3<DATE(YEAR($B$4),1,1),DATE(YEAR($B$4),1,1),$B$3))-{A1, B1})
when I do this it errors, is there a way the formula can recognise just the numbers like in the 1st formula?
I am trying to count how many days are between two date for various work patterns, I am trying to create a formula which will change the serial number of weekday based on a work pattern, the below example is a section of my formula that works but I'm trying to advance it:
WEEKDAY((IF($B$3<DATE(YEAR($B$4),1,1),DATE(YEAR($B$4),1,1),$B$3))-{2,3})
I am wanting the 2 (Monday) and 3 (Wednesday) to change so if I have cell in A1 that is 4 (Thursday) and another cell in B1 that is 5 (Friday) based on certain work patterns it will change to the below formula
WEEKDAY((IF($B$3<DATE(YEAR($B$4),1,1),DATE(YEAR($B$4),1,1),$B$3))-{A1, B1})
when I do this it errors, is there a way the formula can recognise just the numbers like in the 1st formula?