A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Converting decimals to Time



 
 
Thread Tools Display Modes
  #1  
Old April 23rd, 2009, 04:47 PM posted to microsoft.public.excel.worksheet.functions
Gringarlow
external usenet poster
 
Posts: 21
Default Converting decimals to Time

My data for work time is
1.1
1.017
etc...
I need to convert this to
1:06
1:01
etc..
and have this data be used in a Pivot Table that shows the average time of
all of these cells. When I convert using =TEXT(A1/24,"h:mm"), I get #DIV/0 in
the Pivot Table. Thanks
  #2  
Old April 23rd, 2009, 05:00 PM posted to microsoft.public.excel.worksheet.functions
bapeltzer
external usenet poster
 
Posts: 43
Default Converting decimals to Time

The /24 is right, but don't use the text function; you want the data to
remain numeric in order to calculate an average!
If you just divide by 24, then format the cells as Time, you should get the
right view. The in the Pivot Table, select the field's number format and
again choose Time.

"Gringarlow" wrote:

My data for work time is
1.1
1.017
etc...
I need to convert this to
1:06
1:01
etc..
and have this data be used in a Pivot Table that shows the average time of
all of these cells. When I convert using =TEXT(A1/24,"h:mm"), I get #DIV/0 in
the Pivot Table. Thanks

  #3  
Old April 23rd, 2009, 05:02 PM posted to microsoft.public.excel.worksheet.functions
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Converting decimals to Time

Hi Gringarlow,

Perhaps you should simply use =A1/24 and format the result as 'time'.

--
Cheers
macropod
[MVP - Microsoft Word]


"Gringarlow" wrote in message news
My data for work time is
1.1
1.017
etc...
I need to convert this to
1:06
1:01
etc..
and have this data be used in a Pivot Table that shows the average time of
all of these cells. When I convert using =TEXT(A1/24,"h:mm"), I get #DIV/0 in
the Pivot Table. Thanks

  #4  
Old April 23rd, 2009, 05:07 PM posted to microsoft.public.excel.worksheet.functions
Gringarlow
external usenet poster
 
Posts: 21
Default Converting decimals to Time

Brilliant - Thank You, sometimes its just too simple to see.

"bapeltzer" wrote:

The /24 is right, but don't use the text function; you want the data to
remain numeric in order to calculate an average!
If you just divide by 24, then format the cells as Time, you should get the
right view. The in the Pivot Table, select the field's number format and
again choose Time.

"Gringarlow" wrote:

My data for work time is
1.1
1.017
etc...
I need to convert this to
1:06
1:01
etc..
and have this data be used in a Pivot Table that shows the average time of
all of these cells. When I convert using =TEXT(A1/24,"h:mm"), I get #DIV/0 in
the Pivot Table. Thanks

  #5  
Old April 23rd, 2009, 06:00 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default Converting decimals to Time

Gringarlow wrote:
My data for work time is
1.1
1.017
etc...
I need to convert this to
1:06
1:01
etc..
and have this data be used in a Pivot Table that shows the average time of
all of these cells. When I convert using =TEXT(A1/24,"h:mm"), I get #DIV/0 in
the Pivot Table. Thanks


Don't convert the number to text, divide by 24 and display in an appropriate
time format.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.