I have been trying to develop a formula to output the amount of work hours between two date/time fields. This is for a base that has Time Off requests for employees.
I have a field with a start date like this (9/16/2024 10:00am) and a field with an end date like this (9/28/2024 3:00pm).
What is a formula that would calculate the amount of work hours between those two fields, assuming:
- Work hours are 8am to 5pm
- Exclude 12pm-1pm if the span crosses that time period, since there should only be 8 hours between 8am and 5pm
- Exclude weekends
- Ideally, and I realize this is a tall order, it would exclude New Year’s Day, Independence Day, Memorial Day, Labor Day, Thanksgiving Day, and Christmas Day for say, the past 5 years and next 5 years.
This has been driving me crazy for a long time, and I cannot come up with a reliable solution, even with ChatGPT. Can anyone help?














