Converting HH:MM:SS to decimal

Brin_7

New Member
Joined
May 11, 2011
Messages
2
Hi,

I've tried various formula to change HH:MM:SS to decimal but nothing is working and I really need to get the problem sorted soon.
I have 05:28:43 which needs to be converted to 5.5, I've tried USING INT, ROUNDDOWN and HOUR formulas but none are returning the correct value.

Can anyone please help me?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi
Welcome to the board

The unit of data-time in Excel is the day.

With your time in A1, in B1:

=A1*24

format B1 as number
 
Upvote 0
Change the cell value to custom, and select hh:mm, then use the following forumla:

=INT(A2)*24+HOUR(A2)+ROUND(MINUTE(A2)/60,2)

Where A2 is your cell value. Should work.

If it is pumping out the wrong value, you may well have a date value in there also so have a check.

Looks like the above is a lot simpler, lol ;)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top