ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   using if statement to subtract 24 hours from time still shows as a negative time from both responses under 24 hours (https://www.excelbanter.com/excel-worksheet-functions/202499-re-using-if-statement-subtract-24-hours-time-still-shows-negative-time-both-responses-under-24-hours.html)

richard.littlewing

using if statement to subtract 24 hours from time still shows as a negative time from both responses under 24 hours
 


Max

using if statement to subtract 24 hours from time still shows as a negative time from both responses under 24 hours
 
Always use this white space message area to post your query
Never use the subject line as the query, its not meant for that



Roger Govier[_3_]

using if statement to subtract 24 hours from time still shows as a negative time from both responses under 24 hours
 
Hi Richard

It is unclear what you want. You should post the question more explicitly in
the body of the message.
Just guessing, the times may span a 24 hour period.
If so, and with start time in A1 and End time in B1, try
=MOD(B1-A1,1)

--
Regards
Roger Govier

"richard.littlewing" <richard.littlewing@gmail wrote in message
...



All times are GMT +1. The time now is 02:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com