+ Reply to Thread
Results 1 to 2 of 2

Graphing of times longer than 24 hours

  1. #1
    Registered User
    Join Date
    02-02-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2001
    Posts
    1

    Graphing of times longer than 24 hours

    So I used the thread "Convert number to time" to figure out how to convert, say, 930 to 9:30 in large numbers...

    =IF(A1<1000,TIMEVALUE(LEFT(A1,1)&":"&RIGHT(EA1,2)),TIMEVALUE(LEFT(A1,2)&":"&RIGHT(A1,2))).

    I plan on using this technique to graph some changing measurements (y-axis) over the period of 2 weeks (ends up being about 13,000 numbers). Unfortunately, when I try to graph anything over 24 hours, the lines loop back to the start of the graph. Any ideas on how to tell Excel that these aren't the same x-values?

    I've attached a file to look at if I'm too confusing.

    Thanks,

    Nick
    Attached Files Attached Files
    Last edited by VBA Noob; 02-03-2009 at 03:08 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Graphing of times longer than 24 hours

    They are overlapping because they are the same numbers.

    Dates and times in Excel are just numbers. The whole part fo the number is the number of elapsed days since Jan 0 1900; so 03 Feb 2009 is 39,847.

    The decimal part is time; so 39,847.75 is 18:00 03 Feb 2009.

    So add a date component to the numbers -- either the actual calendar data or just days elapsed since data acquisition began.

    Then you can format the times as [hh]:mm to see total hours.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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