Hi all-
I am trying to make a custom work week calendar that removes weekends and custom holidays. I was able to get rid of weekends easy enough, but I am thus far unable to remove the custom holiday list from the work weeks.
I ONLY want a list of non-holiday, non-weekends.
I have tried two formulae to remove the custom holidays listed in column d.
The MOST successful formulae is:
=INDEX($E$3:$E$328,AGGREGATE(15,3,($E$3:$E$328<>$D3)/($E$3:$E$328<>$D3)*(ROW($E$3:$E$328)),ROWS(H3:$H$3)))
This ^^ formula made the list in column F of the example spreadsheet. I have highlight all the values in column F that SHOULD have been removed from this list, as they are in the list of holidays.
=IFERROR(LOOKUP(2,1/(COUNTIF(F3:$F$3,$E$328)=0),$E$328),LOOKUP(2,1/(COUNTIF(F3:$F$3,$D$3:$D$30)=0),$D$3:$D$30))
This formula is in cell G3 of the example spreadsheet and you can see that it is right out to lunch.
Thanks!
Bookmarks