Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Todd F.
 
Posts: n/a
Default Convert days in decimal to days:hours:minutes

I have a number coming otu in decimal form representing days

..25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3 years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my world

Hey thanks for your time

Todd
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Convert days in decimal to days:hours:minutes

Hi Todd,

Excel stores dates and times as numbers (1 equals one day) too.
Just format Custom as d:hh:mm and you get waht you require

--
Kind regards,

Niek Otten

"Todd F." wrote in message ...
I have a number coming otu in decimal form representing days

.25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3 years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my world

Hey thanks for your time

Todd



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Convert days in decimal to days:hours:minutes


Niek Otten Wrote:
Hi Todd,

Excel stores dates and times as numbers (1 equals one day) too.
Just format Custom as d:hh:mm and you get waht you require

--
Kind regards,

Niek Otten

"Todd F." wrote in message
...
I have a number coming otu in decimal form representing days

.25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3

years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my

world

Hey thanks for your time

Todd


If you format as d:hh:mm you won't get the correct result for 368.75.
that format can't show any value above 31:23:59.

I don't think you can achieve this with cell formatting - try a formula
in another cell

=INT(MROUND(A1,"00:01"))&":"&TEXT(MROUND(A1,"00:01 "),"hh:mm")

MROUND is part of analysis toolpak


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=523174

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Convert days in decimal to days:hours:minutes


Niek Otten Wrote:
Hi Todd,

Excel stores dates and times as numbers (1 equals one day) too.
Just format Custom as d:hh:mm and you get waht you require

--
Kind regards,

Niek Otten

"Todd F." wrote in message
...
I have a number coming otu in decimal form representing days

.25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3

years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my

world

Hey thanks for your time

Todd


If you format as d:hh:mm you won't get the correct result for 368.75.
that format can't show any value above 31:23:59.

I don't think you can achieve this with cell formatting - try a formula
in another cell

=INT(MROUND(A1,"00:01"))&":"&TEXT(MROUND(A1,"00:01 "),"hh:mm")

MROUND is part of analysis toolpak


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=523174

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Todd F.
 
Posts: n/a
Default beyond 30 days is problem

I am not getting proper days after 29 - and if I format

dd:hh:mm ddd:hh:mm
395.5 29:12:0 Tue:12:00

any thoughts






"Niek Otten" wrote:

Hi Todd,

Excel stores dates and times as numbers (1 equals one day) too.
Just format Custom as d:hh:mm and you get waht you require

--
Kind regards,

Niek Otten

"Todd F." wrote in message ...
I have a number coming otu in decimal form representing days

.25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3 years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my world

Hey thanks for your time

Todd






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Todd F.
 
Posts: n/a
Default yippy it works - thank you very much

outstanding thankyou very much this is a cool formula

"daddylonglegs" wrote:


Niek Otten Wrote:
Hi Todd,

Excel stores dates and times as numbers (1 equals one day) too.
Just format Custom as d:hh:mm and you get waht you require

--
Kind regards,

Niek Otten

"Todd F." wrote in message
...
I have a number coming otu in decimal form representing days

.25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3

years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my

world

Hey thanks for your time

Todd


If you format as d:hh:mm you won't get the correct result for 368.75.
that format can't show any value above 31:23:59.

I don't think you can achieve this with cell formatting - try a formula
in another cell

=INT(MROUND(A1,"00:01"))&":"&TEXT(MROUND(A1,"00:01 "),"hh:mm")

MROUND is part of analysis toolpak


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=523174


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default beyond 30 days is problem

=INT(A1)&":"&TEXT(A1,"hh:mm")

for some reason you can't show elapsed days in Excel. "d" returns the day
of the month (395.5 is equal to January 29th, 1901). You will have to use
the above formula or daddylonglegs' formula. The result of both will be a
text string.

"Todd F." wrote:

I am not getting proper days after 29 - and if I format

dd:hh:mm ddd:hh:mm
395.5 29:12:0 Tue:12:00

any thoughts






"Niek Otten" wrote:

Hi Todd,

Excel stores dates and times as numbers (1 equals one day) too.
Just format Custom as d:hh:mm and you get waht you require

--
Kind regards,

Niek Otten

"Todd F." wrote in message ...
I have a number coming otu in decimal form representing days

.25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3 years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my world

Hey thanks for your time

Todd




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Todd F.
 
Posts: n/a
Default beyond 30 days is problem

I really appreciate the time this formula is goign to really help - thanks
everyone

"Sloth" wrote:

=INT(A1)&":"&TEXT(A1,"hh:mm")

for some reason you can't show elapsed days in Excel. "d" returns the day
of the month (395.5 is equal to January 29th, 1901). You will have to use
the above formula or daddylonglegs' formula. The result of both will be a
text string.

"Todd F." wrote:

I am not getting proper days after 29 - and if I format

dd:hh:mm ddd:hh:mm
395.5 29:12:0 Tue:12:00

any thoughts






"Niek Otten" wrote:

Hi Todd,

Excel stores dates and times as numbers (1 equals one day) too.
Just format Custom as d:hh:mm and you get waht you require

--
Kind regards,

Niek Otten

"Todd F." wrote in message ...
I have a number coming otu in decimal form representing days

.25, .5, 1.25 1.5, 100.5, 368.75, it can be anything up to about 3 years.

I need to convert to Dayss:Hrs:minutes ddd:hh:mm

so 1.5 would be 1:12:00
1.25 would be 1:06:00
368.75 would be 368:18:00

If something is 29 days, 23 hrs, & 50 minutes that is important to my world

Hey thanks for your time

Todd



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
Convert decimal days to Days,hours, minutes Todd F. Excel Worksheet Functions 3 March 14th 06 03:38 PM
convert Days to Years, Months, Days Klaudebou Excel Discussion (Misc queries) 3 December 29th 05 10:33 PM
Convert decimal degree (lattitude/longitude) into Degree, Tim Ashcom Excel Discussion (Misc queries) 5 August 17th 05 04:53 PM
Convert # of days to years/days Marlene Mayer Excel Discussion (Misc queries) 3 April 27th 05 02:27 AM
convert decimal number to time : convert 1,59 (minutes, dec) to m agenda9533 Excel Discussion (Misc queries) 8 January 20th 05 10:24 PM


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

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

About Us

"It's about Microsoft Excel"