ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Format a cell to display decimal hours. (https://www.excelbanter.com/excel-discussion-misc-queries/17871-format-cell-display-decimal-hours.html)

Fred Holmes

Format a cell to display decimal hours.
 
How do I format a cell to display decimal hours?

Instead of displaying 3:45 (for 3 hours, 45 minutes), which is one of
the standard formats, I'd like to display 3.75 (hours). h.hh doesn't
do it.

The above is formatting for an elapsed time calculation (finish time
minus start time). (On a "time card")

Excel 2000. Will a later Excel do it for me?

Some good source for a parsing function?

Any good reference?

Thanks,

Fred Holmes

galimi

Fred,

Format the cell in #.## format and multiply your result by 24.

http://HelpExcel.com

"Fred Holmes" wrote:

How do I format a cell to display decimal hours?

Instead of displaying 3:45 (for 3 hours, 45 minutes), which is one of
the standard formats, I'd like to display 3.75 (hours). h.hh doesn't
do it.

The above is formatting for an elapsed time calculation (finish time
minus start time). (On a "time card")

Excel 2000. Will a later Excel do it for me?

Some good source for a parsing function?

Any good reference?

Thanks,

Fred Holmes


Chip Pearson

You can't do it with a format alone. You'll need to multiply the
time value by 24 and format as #0.00.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Fred Holmes" wrote in message
...
How do I format a cell to display decimal hours?

Instead of displaying 3:45 (for 3 hours, 45 minutes), which is
one of
the standard formats, I'd like to display 3.75 (hours). h.hh
doesn't
do it.

The above is formatting for an elapsed time calculation (finish
time
minus start time). (On a "time card")

Excel 2000. Will a later Excel do it for me?

Some good source for a parsing function?

Any good reference?

Thanks,

Fred Holmes





All times are GMT +1. The time now is 01:33 AM.

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