+ Reply to Thread
Results 1 to 9 of 9

Gant Chart with data spread past midnight

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    Fort Pierce, Fl
    MS-Off Ver
    Excel 2010
    Posts
    8

    Gant Chart with data spread past midnight

    Hi, I am trying to build a gant chart for nightly batch process. The batch window is from 21:00 to 4:00
    I created a spreadsheet with the following columns (A)Job name, (B)Start time, (C)end time (D)duration(=MOD(D1-C1,1)

    I build the Gant Chart, with start time & duration columns but any jobs past midnight won't show. The only way I found so far is to add 1 to start time so it shows as 24:10:00 instead of 00:10:00. A job that start @ 01:06 will be seen as 25:06.

    I am not sure if this is the best way since I now struggle with a job that start @ 23:15 is now showing as 47:15

    Any hints would ba appreciated

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Gant Chart with data spread past midnight

    To calculate midnight crossovers you really need to use the full date/time ... You can restrict the display with the numberformat but the date needs to be included
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    04-30-2013
    Location
    Fort Pierce, Fl
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Gant Chart with data spread past midnight

    Hi, I am not sure I understand your reply, if you meant to enter time in the format "mm/dd/yy hh:mm:ss"; that cannot be done since the sheet is populated by someone else (unless there's a formula for this) and I need to go to other spreadsheets weeks behind.
    What I was thinking is something like in a new column: If start time is not between 21:00:00 and 23:59:59, add 1 to start time, so a job that start at 22:15 will be showned as is but a job that start at 02:15 will be showned as 26:15. Then I would report these values in the chart.
    Would that make sense??

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Gant Chart with data spread past midnight

    In that case .. The end time will appear to excel to be earlier than the start time (i.e. endtime-starttime < 0)

    Try this

    =IF(B1-A1<0,B1+1-A1,B1-A1)

    where A1 = start time and B1 = end time

  5. #5
    Registered User
    Join Date
    04-30-2013
    Location
    Fort Pierce, Fl
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Gant Chart with data spread past midnight

    Hi, I don't have problems with calculating th etime after midnight in th espreadsheet itself, it is when I try to create the Gant Chart that the data past midnight do not show.
    Like I said earlier, it will show only if i add 1 to the value of column B, but only if time is past midnight.
    See my attached example
    Any clues??

    Thanks
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Gant Chart with data spread past midnight

    Book2 (5).xlsx

    Have a look at that.
    I've logged the time and date then plotted the times as a scatter plot against the Y values shown.

    No need to calculate anything

  7. #7
    Registered User
    Join Date
    04-30-2013
    Location
    Fort Pierce, Fl
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Gant Chart with data spread past midnight

    Hi, that would work if there would be a way to replace the values in the Y axis by the name of the job in column A.
    Is there??

    Thanks

  8. #8
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Gant Chart with data spread past midnight

    Not really because the Y axis has to have numerical values... At the moment, the legend holds the job numbers and they are seperated in Y by the Y values.... Another thing I recommend is to thicken the plot lines to about 8 and delete the markers

  9. #9
    Registered User
    Join Date
    04-30-2013
    Location
    Fort Pierce, Fl
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Gant Chart with data spread past midnight

    Thank you for your help and time
    I finally find a way for it to looks like a gant chart, see attached example
    Basically, I added another column (see now columnB)that calculate if time is less than the start of my batch process (21:00) then add 1 to the value
    I now created my chart based on that column and the duration.
    Attached Files Attached Files

+ 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