Hello,
I have an issue where I have a start time and an end time with trying to get the total minutes worked during those times. I have a formula that is working besides when there is a 12am for an end time. Column 1 is trying to find the total minutes worked. I can add a date column if need be, but I need some assistance with the midnight issue.
Here is the formula I am using in Column 1:
=((H3+IF(AND(J3="PM",H3<12),12,0))*60+I3+IF(((H3+IF(AND(J3="PM",H3<12),12,0))*60+I3)<((E3+IF(AND(G3="PM",E3<12),12,0))*60+F3),24*60,0))-((E3+IF(AND(G3="PM",E3<12),12,0))*60+F3)
Thank you for any help!
I have an issue where I have a start time and an end time with trying to get the total minutes worked during those times. I have a formula that is working besides when there is a 12am for an end time. Column 1 is trying to find the total minutes worked. I can add a date column if need be, but I need some assistance with the midnight issue.
Start Hour | Start Mins | AM/PM | End Hour | End Mins | AM/PM2 | Column1 |
2 | 4 | AM | 3 | 4 | PM | 780 |
10 | 0 | PM | 12 | 0 | AM | 840 |
10 | 0 | PM | 1 | 0 | AM | 180 |
0 |
Here is the formula I am using in Column 1:
=((H3+IF(AND(J3="PM",H3<12),12,0))*60+I3+IF(((H3+IF(AND(J3="PM",H3<12),12,0))*60+I3)<((E3+IF(AND(G3="PM",E3<12),12,0))*60+F3),24*60,0))-((E3+IF(AND(G3="PM",E3<12),12,0))*60+F3)
Thank you for any help!