Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 661
Default decimal time conversions

Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18 mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why can
anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default decimal time conversions

With your decimal time in A1, use this in B1:

=A1/60/24

and format the cell as [mm]:ss

If you want the result as a text value, you can use this:

=TEXT(A1/60/24,"[mm]:ss")

Hope this helps.

Pete


On Jan 5, 12:31*pm, Paul wrote:
Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18 mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why can
anyone help?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 661
Default decimal time conversions

Thanks Pete this works perfectly , much appreciated

Paul

"Pete_UK" wrote:

With your decimal time in A1, use this in B1:

=A1/60/24

and format the cell as [mm]:ss

If you want the result as a text value, you can use this:

=TEXT(A1/60/24,"[mm]:ss")

Hope this helps.

Pete


On Jan 5, 12:31 pm, Paul wrote:
Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18 mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why can
anyone help?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default decimal time conversions

You're welcome, Paul - thanks for feeding back.

Pete

On Jan 5, 1:45*pm, Paul wrote:
Thanks Pete this works perfectly , much appreciated

Paul

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default decimal time conversions

Not sure where your number are coming from. I used

=TIMEVALUE("00:26:35")

The results is 0.018461 which equals

26/(24*60) + 35/(24*60*60)


Time values is in Hours:Minutes:Seconds.

1 hour = 1/24 since a day equals 1.00

1 Minute = 1/(24*60) 24 hours/day * 60 minutes/hour

1 Second = 1/(24*60*60) 24 hours/day * 60 minutes/hour * 60 seconds/minute




which gives

"Paul" wrote:

Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18 mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why can
anyone help?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default decimal time conversions

I can't explain it without seeing the formula, but
=TIME(0,INT(A4),MOD(A4,1)*60)
and formatting the rsult cell like mm:ss
gives correct results.

Regards,
Stefi

€˛Paul€¯ ezt Ć*rta:

Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18 mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why can
anyone help?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default decimal time conversions

I suspect the 26.35 is being interpreted as 26.35 hours, which means
26 hrs and 21 minutes, and is being displayed as 2 hrs 21 mins (2:21)
because it is wrapping at 24 hours.

Hope this helps.

Pete

On Jan 5, 12:31*pm, Paul wrote:
Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18 mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why can
anyone help?


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default decimal time conversions

You forgot to tell us *which* text formula you are trying to use.
It sounds as if you've got at least 3 problems.
26.35 minutes is 26:21 in minutes and seconds, so if you are seeing 2.21 it
sounds as if you are treating the number as hours and minutes, rather than
minutes and seconds (so you may need another divide by 60, but it may not
matter drastically if you are giving a text output and format it
appropriately), and also you have a format like h.mm, giving 2.21 (not
giving the 24 hours from a whole day), whereas [h].mm would give you 26.21.
I would also recommend using [h]:mm instead of [h].mm, or [m]:ss instead of
[m].ss, as the colon makes it clearer that you've got hours and minutes
(like 26:21), or minutes and seconds, rather than decimal hours and decimal
minutes (26.21).
--
David Biddulph

"Paul" wrote in message
...
Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18
mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why
can
anyone help?



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default decimal time conversions

Hi

Divide by 24 and format as time (2:21, note the colon).

HTH. Best wishes Harald

"Paul" wrote in message
...
Hi

I have decimal numbers that need to be converted to times eg 18.76 = 18
mins
46 seconds using the text formaula but I have 26.35 that equals 2.21. Why
can
anyone help?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing decimal time into 24 hour time and reverse Bobzter100 Excel Discussion (Misc queries) 4 January 25th 08 11:38 AM
Time conversions Holsapple Excel Worksheet Functions 3 September 18th 06 09:06 PM
Converting decimal time to standard time? mpendleton Excel Discussion (Misc queries) 4 May 12th 06 10:07 PM
Decimal time Kim Excel Worksheet Functions 12 September 20th 05 04:22 AM
Time calculations & text conversions Kenny Hubbard Excel Discussion (Misc queries) 1 February 5th 05 10:15 PM


All times are GMT +1. The time now is 07:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"