ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Calculate time, but if less then hrs, end result must be 1 hrs (https://www.excelbanter.com/new-users-excel/123390-calculate-time-but-if-less-then-hrs-end-result-must-1-hrs.html)

Shariq

Calculate time, but if less then hrs, end result must be 1 hrs
 
Hi everybody!
I need to calculate time but if the difference is less then 1 hrs, end
result must produce minimum of 1 hrs, and if difference is greater then an
hrs or minutes, that should be displayed, how do I do this?

Roger Govier

Calculate time, but if less then hrs, end result must be 1 hrs
 
Hi

With start time in A1 and end time in B1
=MAX(TIME(1,0,0),B1-A1)

--
Regards

Roger Govier


"Shariq" wrote in message
...
Hi everybody!
I need to calculate time but if the difference is less then 1 hrs, end
result must produce minimum of 1 hrs, and if difference is greater
then an
hrs or minutes, that should be displayed, how do I do this?





All times are GMT +1. The time now is 11:58 AM.

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