Hello All!
Using Excel 2010
I need a formula to calculate the total production hours for the next month (always next month, not just July). I have a formula that identifies the number of working days available (won't use NETWORKDAYS because we have to count the weekends).
=(EOMONTH(TODAY(),1))-(EOMONTH(TODAY(),0)+1)-(COUNTIFS(Holidays,">="&EOMONTH(TODAY(),0)+1,Holidays,"<="&EOMONTH(TODAY(),1)))+1
For July specifically, my result is 29 days (July 4&5 are holidays).
I am stumped by the fact that we don't work 24 hour every day and I don't know how accommodate that. We work 20 hours a day Mon -> Thu and 24 hours Fri -> Sun (152hrs/week). Of course, holidays are 0 hours.
Capture.JPG
Not sure if the pic will show but my data layout is such:
U3 = EOMONTH(TODAY(),0)+1 (start of the next month)
V3 = EOMONTH(TODAY(),1)+1 (start of the month after next)
U4 = (EOMONTH(TODAY(),1))-(EOMONTH(TODAY(),0)+1)-(COUNTIFS(Holidays,">="&EOMONTH(TODAY(),0)+1,Holidays,"<="&EOMONTH(TODAY(),1)))+1
V4 = (EOMONTH(TODAY(),2))-(EOMONTH(TODAY(),1)+1)-(COUNTIFS(Holidays,">="&EOMONTH(TODAY(),1)+1,Holidays,"<="&EOMONTH(TODAY(),2)))+1
Holidays = named range with our company holidays listed. July 4 & 5 for July and none for August.
I am trying to do this in one cell, without the use of helper columns or any additional tables to maintain but, if that cannot be done, then so be it.
Any advice would be greatly appreciated.
Thanks in advance,
Tanya
Bookmarks