+ Reply to Thread
Results 1 to 6 of 6

Hairy decimal to time of day?

  1. #1
    Registered User
    Join Date
    08-23-2014
    Location
    CA
    MS-Off Ver
    Professional Plus 2013
    Posts
    3

    Hairy decimal to time of day?

    I'm having trouble converting a decimal to time of day.
    I'm calculating time off a number of seconds lapsed, and the number may be very large (on the scale of 17 years having passed).

    This: =(MOD((B26/86400),1)*24)
    ...meaning, =(MOD((CELL_CONTAINING_SECONDS_LAPSED/60*60*24),1)*24) ...
    gives me stuff like 6.99844, which is great. It tells me it's almost 7:00 am. But...is there a way to format it to time that doesn't give me ##### or 12:00 every single time?
    Oh, and I don't want to occupy any other cells...

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Hairy decimal to time of day?

    If you didn't multiply by 24 in your formula and formatted the fraction as time I think you'll be right.

  3. #3
    Registered User
    Join Date
    08-23-2014
    Location
    CA
    MS-Off Ver
    Professional Plus 2013
    Posts
    3

    Re: Hairy decimal to time of day?

    Just tried it. Gave me all #######.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Hairy decimal to time of day?

    The ###### normally means the column width is too short to display. Have you widened the column to see if that fixes the problem?

  5. #5
    Registered User
    Join Date
    08-23-2014
    Location
    CA
    MS-Off Ver
    Professional Plus 2013
    Posts
    3

    Talking Re: Hairy decimal to time of day?

    Bwahahaha!!!

    You guys are awesome.

    Thanks!

  6. #6
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Hairy decimal to time of day?

    Glad to help

+ 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] Converting an elapsed time in decimal number format to an actual time :S
    By Spicey_888 in forum Excel General
    Replies: 3
    Last Post: 07-20-2014, 08:53 PM
  2. Hairy nested IF, possibly MAX involved?
    By beccadoodles7 in forum Excel General
    Replies: 1
    Last Post: 11-07-2012, 06:24 AM
  3. Replies: 2
    Last Post: 04-19-2012, 10:34 PM
  4. Converting military time to decimal time not rounding correctly
    By Sean Anderson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2008, 09:12 PM
  5. Converting decimal time to standard time?
    By mpendleton in forum Excel General
    Replies: 4
    Last Post: 05-12-2006, 05:07 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