I have a Date in D2, a time in E2 as well as a cell with both the date and time (same as D2/E2 just combined) in I2. I need to return a value of 1 if the time is considered after hours. After hours for me would be before 8:30 am on weekdays, after 18:30 on weekdays and all weekends. I have tried a few different ways to accomplish this and I never get the formula to work for all scenarios.