ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Format elapsed time in days? (https://www.excelbanter.com/excel-worksheet-functions/38987-format-elapsed-time-days.html)

Steve M via OfficeKB.com

Format elapsed time in days?
 
Excel is only letting me format a cell to show elapsed time in hours, mins,
secs, but not days. How do I do this?
Thanks,

Bernie Deitrick

Steve,

Simply subtract the earlier date from the later date, and format the cell as a number with as many
decimal places as you want. One day in Excel is 1, two days is 2, etc.

HTH,
Bernie
MS Excel MVP


"Steve M via OfficeKB.com" wrote in message ...
Excel is only letting me format a cell to show elapsed time in hours, mins,
secs, but not days. How do I do this?
Thanks,




Steve M via OfficeKB.com

Thanks, but I'm trying to get the format of the cell to be shown as [d]:hh:mm,
not a number with a decimal. When I enter this I get an error, but it works
for [h]:mm:ss. Why won't it work for days?

Thanks,

Bernie Deitrick wrote:
Steve,

Simply subtract the earlier date from the later date, and format the cell as a number with as many
decimal places as you want. One day in Excel is 1, two days is 2, etc.

HTH,
Bernie
MS Excel MVP

"Steve M via OfficeKB.com" wrote in message ...
Excel is only letting me format a cell to show elapsed time in hours, mins,
secs, but not days. How do I do this?
Thanks,



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200508/1


All times are GMT +1. The time now is 06:46 AM.

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