View Single Post
 
Old 08-17-2010, 01:36 PM
ConneXionLost's Avatar
ConneXionLost ConneXionLost is offline Windows XP Office 2003
Simulacrum
 
Join Date: Jan 2010
Location: Victoria, Canada
Posts: 86
ConneXionLost is on a distinguished road
Default

Hi Grace,

The problem occurs as a combination of the format and the way the function works.

The Excel HOUR function will read/convert your time entry (178:50:34) as (1900-01-07 10:50:34) and return a result of 10 hours because that's how many hours are in the current day for that time entry. Then, Excel will assume you want to continue using your format of "[h]:mm:ss", and convert the 10 to 240 because that's how many hours are in 10 days.

The solution will depend on what you intend to do with your result (1780 hours). Do you want Excel to treat this as a number or as a length of time? If you just want the number, then change the formula to this:

Code:
=DAY(I14)*24+HOUR(I14)
And set the format for that cell to "General".

Cheers,
Reply With Quote