SOLVED

Converting time to a digital number

Copper Contributor

Hello. I used to use MS Office in the 80s and 90s and now I'm getting started with 365, doing freelance work. I'm making a spreadsheet to calculate charges for my work, and have gotten a bit confused, after using what I thought was the correct format seen in another post on this forum. The formula I'm using is:

 

=(TotalTime-INT(TotalTime))*24

 

to take the total time worked (1:10), but the field shows 4:00 instead of 1.67. What did I miss, to get this erroneous data? (The Help on this subject got me thoroughly confused.)

 

Thanks in advance,

Rache

3 Replies

@RachelHoff 

 

The easiest way to convert time to decimal in Excel is to multiply the original time value by the number of hours, seconds or minutes in a day:

  • To convert time to a number of hours, multiply the time by 24, which is the number of hours in a day.
  • To convert time to minutes, multiply the time by 1440, which is the number of minutes in a day (24*60).
  • To convert time to seconds, multiply the time time by 86400, which is the number of seconds in a day (24*60*60 ).

convert-time-decimal-excel

 

Regards,

Akshay

Tech support | O365CloudExperts

best response confirmed by RachelHoff (Copper Contributor)
Solution

@RachelHoff

 

Hi,

 

The result of the formula is correct, but it appears this way because of cell formatting (Time format).

You need to switch to General or Number format like the below screenshot:

Switch to General Format.png

 

Also, you can apply the format in the formula as follows:

=TEXT((A1-INT(A1))*24,"0.00")

 

I'd like the mention that the formula can be simplified like this:

=TEXT(A1*24,"0.00")

 

Hope that helps

Thank you! I suspected it had been something simple, since I used an answer you yourself gave another person! :)
1 best response

Accepted Solutions
best response confirmed by RachelHoff (Copper Contributor)
Solution

@RachelHoff

 

Hi,

 

The result of the formula is correct, but it appears this way because of cell formatting (Time format).

You need to switch to General or Number format like the below screenshot:

Switch to General Format.png

 

Also, you can apply the format in the formula as follows:

=TEXT((A1-INT(A1))*24,"0.00")

 

I'd like the mention that the formula can be simplified like this:

=TEXT(A1*24,"0.00")

 

Hope that helps

View solution in original post