Hi All,
Is is possible to have a formula/VBA that will provide time categories between 2 given DateTimes?
Eg.
StartDateTime: 1700, Sun Nov 20th 2016
FinishDateTime: 0700, Mon Nov 21st 2015
Time Categories:
Day Shift (0600-1800 Mon-Fri):1.0
Night Shift (1800-0600 Mon-Fri):6.0
Saturday (24hours):0
Sunday (24hours):7.0
Public Holiday:0
Total Hours:14
If hours fall within Public Holiday I don't need Day shift, Night shift, Saturday or Sunday hours that fall on the public holiday.
I've been trying myself with basic knowledge of formulas and if statements, but am struggling to find a solution.
Appreciate any help you could provide.
Thank you,
Brandon
Bookmarks