Hi All,
In need of some help. I am trying to find the hours from times entered into one cell.
I have this so far
=IF(Sheet1!E50="N/A","",IF(Sheet1!E50<>"",(TRIM(REPLACE(Sheet1!E50,1,FIND("-",Sheet1!E50),""))-TRIM(LEFT(Sheet1!E50,FIND("-",Sheet1!E50)-1)))+TRIM(RIGHT(Sheet1!E50,FIND("-",Sheet1!E50)-1))*24,""))
However when the times for example 21:00 - 5:30, which is 21:00 for starting time of a shift & 5:30am for the end time of the shift, it gives me a total hours of 4.854, which is in correct as it is 8.5 hours
Where am I going wrong.
It works for times as follows
In need of some help. I am trying to find the hours from times entered into one cell.
I have this so far
=IF(Sheet1!E50="N/A","",IF(Sheet1!E50<>"",(TRIM(REPLACE(Sheet1!E50,1,FIND("-",Sheet1!E50),""))-TRIM(LEFT(Sheet1!E50,FIND("-",Sheet1!E50)-1)))+TRIM(RIGHT(Sheet1!E50,FIND("-",Sheet1!E50)-1))*24,""))
However when the times for example 21:00 - 5:30, which is 21:00 for starting time of a shift & 5:30am for the end time of the shift, it gives me a total hours of 4.854, which is in correct as it is 8.5 hours
Jess | 21:00 - 05:30 | 21:00 - 05:30 | 21:00 - 05:30 | 21:00 - 05:30 |
It works for times as follows
Cathy | 6:00 - 15:00 | 6:00 - 15:00 | 6:00 - 15:00 | 6:00 - 15:00 | 6:00 - 15:00 |