Hello, I'm afraid I'm self taught on Excel, therefore this formula is a monster.
I'm trying to put together a visual rota showing which nurses are on which duties at which times.
The HUGE formula I have put together returns VALUE, therefore I wondered if there is a simpler IF AND OR formula I could use, e.g. To return the result "Admin" is if X is between A and B or C and D or E and F.
Any help would be enormously appreciated.
=IF(AND(Q4>=$B5,Q4<$C5),"Admin"," "),IF(AND(Q4>=$C5,Q4<$D5),"Clinic"," "),IF(AND(Q4>=$D5,Q4<$E5),"Break"," "),IF(AND(Q4>=$E5,Q4<$F5),"Clinic"," "),IF(AND(Q4>=$F5,Q4<$G5),"Admin"," "),IF(AND(Q4>=$G5,Q4<$H5),"Clinic"," "),IF(AND(Q4>=$H5,Q4<$I5),"Break"," "),IF(AND(Q4>=$I5,Q4<$J5),"Clinic"," "),IF(AND(Q4>=$J5,Q4<$K5),"Admin"," ")
I'm trying to put together a visual rota showing which nurses are on which duties at which times.
The HUGE formula I have put together returns VALUE, therefore I wondered if there is a simpler IF AND OR formula I could use, e.g. To return the result "Admin" is if X is between A and B or C and D or E and F.
Any help would be enormously appreciated.
=IF(AND(Q4>=$B5,Q4<$C5),"Admin"," "),IF(AND(Q4>=$C5,Q4<$D5),"Clinic"," "),IF(AND(Q4>=$D5,Q4<$E5),"Break"," "),IF(AND(Q4>=$E5,Q4<$F5),"Clinic"," "),IF(AND(Q4>=$F5,Q4<$G5),"Admin"," "),IF(AND(Q4>=$G5,Q4<$H5),"Clinic"," "),IF(AND(Q4>=$H5,Q4<$I5),"Break"," "),IF(AND(Q4>=$I5,Q4<$J5),"Clinic"," "),IF(AND(Q4>=$J5,Q4<$K5),"Admin"," ")
Monday | Admin | Clinic | Break | Clinic | Admin | Clinic | Break | Clinic | Admin | Break | Finish | 07:30 | 07:45 | 08:00 | 08:15 | 08:30 | 08:45 | 09:00 | 09:15 | 09:30 | 09:45 |
Nurse 1 | 08:30 | 08:40 | 10:40 | 11:00 | 12:30 | 13:30 | 15:00 | 15:10 | 16:10 | 16:30 | #VALUE! | #VALUE! | #### | #### | #### | ||||||
Nurse 2 | 08:30 | 08:40 | 10:40 | 11:00 | 12:30 | 13:30 | 15:00 | 15:10 | 16:10 | 16:30 | |||||||||||
Nurse 3 | 08:30 | 08:40 | 10:40 | 11:00 | 12:30 | 13:30 | 15:00 | 15:10 | 16:10 | 16:30 | |||||||||||
Nurse 4 | 08:30 | 08:40 | 10:40 | 11:00 | 12:30 | 13:30 | 15:00 | 15:10 | 16:10 | 16:30 |