This proposal uses 4 helper columns. Each calculates a separate 90 period. Here is the first formula for the most recent 90 day look back in the new column H. The others shift the range back 90 days each.
Formula:
=IFERROR(--(SUMPRODUCT(NETWORKDAYS.INTL(+INDEX($M$5:$ARK$5,MATCH($E$3-90,$M$5:$ARK$5,0)):
INDEX($M$5:$ARK$5,MATCH($E$3-0,$M$5:$ARK$5,0)),+INDEX($M$5:$ARK$5,MATCH($E$3-90,$M$5:$ARK$5,0)):
INDEX($M$5:$ARK$5,MATCH($E$3-0,$M$5:$ARK$5,0)),"0000000")*(INDEX($M6:$ARK6,MATCH($E$3-90,$M$5:$ARK$5,0)):
INDEX($M6:$ARK6,MATCH($E$3-0,$M$5:$ARK$5,0))=Reasons))<1),0)
The final formula in L6
Formula:
=E6+F6+G6-H6-I6-J6-K6
Bookmarks