I have a calendar created in Excel and conditional formatting to highlight certain days between 2 separately input dates at the top. On the far right I am wanting to count the number of network days within a row, but ONLY if they are between the "1st day of Leave" and "Last Day" at the top.
I have formulas that show the network days for each row (excluding my holidays), and the number of total days in each row that are included within those dates, but can't figure out how to do both at the same time. Below are the formulas I currently have for those 2 columns (in the January row).
=IF(AF6="",NETWORKDAYS(B6,AE6,'Holiday List'!$A$2:$A$15),NETWORKDAYS(B6,AF6,'Holiday List'!$A$2:$A$15))
=COUNTIFS(B6:AF6,">="&$O$2,B6:AF6,"<="&$Y$3)
I have formulas that show the network days for each row (excluding my holidays), and the number of total days in each row that are included within those dates, but can't figure out how to do both at the same time. Below are the formulas I currently have for those 2 columns (in the January row).
=IF(AF6="",NETWORKDAYS(B6,AE6,'Holiday List'!$A$2:$A$15),NETWORKDAYS(B6,AF6,'Holiday List'!$A$2:$A$15))
=COUNTIFS(B6:AF6,">="&$O$2,B6:AF6,"<="&$Y$3)