I need to convert time from hh:mm:ss to a whole number. For example I need to change 7:30:00 to 7.5. What formula do I need to use to accomplish this?
I need to convert time from hh:mm:ss to a whole number. For example I need to change 7:30:00 to 7.5. What formula do I need to use to accomplish this?
Hi,
This will give you time as fractions of an hour
=HOUR(A1)+MINUTE(A1)/60
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
Thanks for the quick response!
However, when I enter that formula it spits out 12:00:00 as the result. Am I doing something incorrectly? My original cell shows 7:30:00 AM. Do I need to remove AM for this formula to work properly?
You're not doing anything wrong. Excel in its infinite wisdom has formatted the cell as a date/time.
Select the cell that the result is in. Go to Format > Cells > Number > General
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks