+ Reply to Thread
Results 1 to 5 of 5

convert decimal value to DD hh:mm:ss

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    2

    convert decimal value to DD hh:mm:ss

    Hi,

    i try to convert several decimal values into Days Hours:Minutes:Seconds
    my problem is the following.
    If i user the format DD hh:mm:ss
    values over 32 will start counting the days from 0 (like a new month).
    and if i format it like M D h:m:s values < 32 days gets displayed with a 1 (for the month) before the days.

    Please Login or Register  to view this content.

    is there a way to get only the count of days displayed without the summarization to months?

    Thanks in advance!

    regards

    Marco

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: convert decimal value to DD hh:mm:ss

    Hi,

    Not sure I understand. Your desired result for:

    33.2149789 is 34 5:9:34

    and for:

    40.5465546 is 41 13:7:2

    Can you explain why?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: convert decimal value to DD hh:mm:ss

    My guess is typo, XOR.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: convert decimal value to DD hh:mm:ss

    Quote Originally Posted by Paul View Post
    My guess is typo, XOR.
    Looks like a strong bet!

    I don't know how to do this and leave the result as a numeric. If you can live with a text result:

    =INT($A1)&" "&TEXT(MOD($A1,1),"hh:mm:ss")

    though obviously this will not allow you to perform any mathematical operations on these results.

    Regards

  5. #5
    Registered User
    Join Date
    08-22-2014
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    2

    Re: convert decimal value to DD hh:mm:ss

    yes a typo sorry.
    i dont want to calculate with the result, only filter.
    but i want to have the result in the same cell
    like with changing the cell format.
    Any ideas?
    Last edited by Damncold; 08-22-2014 at 03:30 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] convert decimal number to time : convert 1,59 (minutes, dec) to m
    By agenda9533 in forum Excel General
    Replies: 22
    Last Post: 09-15-2013, 10:43 AM
  2. Convert Coordinates. Degree Minute.decimal to degree.decimal
    By stewman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2013, 07:37 PM
  3. Convert [h]:mm to decimal
    By tiana in forum Excel General
    Replies: 1
    Last Post: 11-11-2011, 03:17 AM
  4. Convert h:mm:ss to decimal
    By carrlos in forum Excel General
    Replies: 2
    Last Post: 08-10-2011, 01:11 PM
  5. [SOLVED] Convert Hrs:Min to Decimal Hrs
    By DaveJhelpexcel in forum Excel General
    Replies: 3
    Last Post: 06-30-2005, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1