G
Guest
I am trying to calculate in and out time for a time sheet spreadsheet.
Example: 9:00 am (in time), 5:00 pm (out time). I devised a formula:
=IF(D7<C7,((C7-D7)*24)+((C7+D7)*24)*2,(D7-C7)*24)
It works for all senarios except if you begin with PM and end with AM.
Example:
5:00 pm (in time), 1:00 am (out time)
Can anyone help me!!
Example: 9:00 am (in time), 5:00 pm (out time). I devised a formula:
=IF(D7<C7,((C7-D7)*24)+((C7+D7)*24)*2,(D7-C7)*24)
It works for all senarios except if you begin with PM and end with AM.
Example:
5:00 pm (in time), 1:00 am (out time)
Can anyone help me!!