Darren_workforce
Board Regular
- Joined
- Oct 13, 2022
- Messages
- 146
- Office Version
- 365
- Platform
- Windows
Hello,
My sheet has shift start times down Column B and shift end times down Column C. (Column A has the names of staff). We open at 8:00:00am and close at 6:00:00pm. I have the following statement in Column D but am missing crucial pieces and am just uncertain where/what to add. I would like to generate 1 of 3 results in Column D based on the start/end times: (Opener, Closer, Mid).
If the time in Column B (start) is earlier than 9:00:00am, an agent is considered an Opener (as long as their end time is earlier or equal to 5:45:00pm).
If the time in Column C (end) is later than 5:45:00pm, the agent is considered a Closer (as long as their start time is later or equal to 9:00:00am).
However, if neither of these conditions are true and the agent arrives after 9:00:00am but also leaves prior to 5:45:00pm, they're considered a Mid-shifter.
I get tripped up with IF statements so any help would be greatly appreciate. Thank you in advance!!
My sheet has shift start times down Column B and shift end times down Column C. (Column A has the names of staff). We open at 8:00:00am and close at 6:00:00pm. I have the following statement in Column D but am missing crucial pieces and am just uncertain where/what to add. I would like to generate 1 of 3 results in Column D based on the start/end times: (Opener, Closer, Mid).
If the time in Column B (start) is earlier than 9:00:00am, an agent is considered an Opener (as long as their end time is earlier or equal to 5:45:00pm).
If the time in Column C (end) is later than 5:45:00pm, the agent is considered a Closer (as long as their start time is later or equal to 9:00:00am).
However, if neither of these conditions are true and the agent arrives after 9:00:00am but also leaves prior to 5:45:00pm, they're considered a Mid-shifter.
Excel Formula:
=IF(AND($B2<=TIMEVALUE("9:00:00"),$C2<=TIMEVALUE("18:00:00")),"Opener","Closer")
I get tripped up with IF statements so any help would be greatly appreciate. Thank you in advance!!