craiglisterman
New Member
- Joined
- May 10, 2014
- Messages
- 1
I'm trying to use if/and functions to create a gantt chart for a schedule.
A person working from 8:00 am - 5:00 pm, where if its outside this time range its a 0, inside its a 1. Conditional formatting to do the rest.
X axis is the day broken down into hours, y axis is the names of people.
I've been trying to make a unique formula for each box but they always conflict, This was one attempt but it never worked. Where c5 was start time, c6 was end time.
=IF(C5>TIME(17,0,0), "0", IF(C5<TIME(17,0,0), "1", if(C5=TIME(17,0,0), "1",IF(C6>TIME(17,0,0), "1", IF(C6<TIME(17,0,0), "0", if(C6=TIME(17,0,0), "0"))))))
I know it can be done, please help!
A person working from 8:00 am - 5:00 pm, where if its outside this time range its a 0, inside its a 1. Conditional formatting to do the rest.
X axis is the day broken down into hours, y axis is the names of people.
I've been trying to make a unique formula for each box but they always conflict, This was one attempt but it never worked. Where c5 was start time, c6 was end time.
=IF(C5>TIME(17,0,0), "0", IF(C5<TIME(17,0,0), "1", if(C5=TIME(17,0,0), "1",IF(C6>TIME(17,0,0), "1", IF(C6<TIME(17,0,0), "0", if(C6=TIME(17,0,0), "0"))))))
I know it can be done, please help!