I would post a file but I cannot insert the excel file.
Start Date End Date TOTAL DAYS END DATE MINUS START DATE SATURDAYS END DATE MINUS START DATE SAT in DATE RANGE SUNDAYS END DATE MINUS START DATE SUN in DATE RANGE WEEK DAYS ONLY WEEK DAYS IN DATE RANGE DATE RANGE (W14 and W15)"
=IFERROR(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(G31&":"&F31)))={1,2,3,4,5,6,7})),"0") =IFERROR(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(G31&":"&F31)))=7)),"0") =IFERROR(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(G31&":"&F31)))=1)),"0") =IFERROR(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(G31&":"&F31)))={2,3,4,5,6})),"0") =IF(OR($G31<$W$14,$F31>$W$15),0,ABS(NETWORKDAYS(MIN($W$15,$G31),MAX($W$14,$F31)))) =IF(OR($G31<$W$14,$F31>$W$15),0,ABS(NETWORKDAYS(MIN($W$15,$G31),MAX($W$14,$F31)))) =IF(OR($G31<$W$14,$F31>$W$15),0,ABS(NETWORKDAYS(MIN($W$15,$G31),MAX($W$14,$F31)))) =IF(OR($G31<$W$14,$F31>$W$15),0,ABS(NETWORKDAYS(MIN($W$15,$G31),MAX($W$14,$F31))))
I have trouble for the results for SAT in Date Range and Sun in Date Range
Thank you, dflak
I attached the xlsm file and when I try to open it is says it is a php file. I changed the extension from php to xlsm and it opens in exel.
Bookmarks