View Single Post
 
Old 07-22-2017, 08:50 PM
Logit Logit is offline Windows 10 Office 2007
Expert
 
Join Date: Jan 2017
Posts: 591
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

If you can use an input of regular time (12 hr instead of 24 hr), the attached will do what you want, using this formula :

Code:
=IF(A2="","",MOD((TIMEVALUE(TRIM(SUBSTITUTE(SUBSTITUTE($B2,"pm"," pm"),"am"," am"))))-(TIMEVALUE(TRIM(SUBSTITUTE(SUBSTITUTE($A2,"pm"," pm"),"am"," am")))),1))
Attached Files
File Type: xlsx Time Total.xlsx (9.2 KB, 19 views)
Reply With Quote