+ Reply to Thread
Results 1 to 3 of 3

Highlight weekends in a stacked bar (Gantt) chart (Excel 2007)

  1. #1
    Registered User
    Join Date
    01-05-2018
    Location
    Lexington, KY
    MS-Off Ver
    2007
    Posts
    28

    Question Highlight weekends in a stacked bar (Gantt) chart (Excel 2007)

    I have spent roughly 2 weeks trying to figure this out, downloading templates, watching videos, etc... so I apologize if this is a topic that has been answered a bunch, but I can't seem to find a solution applicable to this circumstance, which makes me feel really dumb, because this seems like it should be really easy.

    Anyhow, I am scheduling some ongoing projects for work, and while my chart does account for weekends by way of the WORKDAYS()(Excel 2007 doesn't have WORKDAYS.INTL(), but it does have NETWORKDAYS()) function for it's duration, it would be really useful to see the the weekends/holidays on the chart, so as to make scheduling adjustments(a very common task for the application) more manageable. I feel like I am really close, like if I could plot the "Weekends" series on a secondary axis, it would just click, however that option is grayed out.

    Here is a link to an example of my spreadsheet:

    https://drive.google.com/open?id=1GZ...exSxXxM5ByEmGV

    Here are my requests:

    1a) How can I highlight the weekends in this chart?
    1b) How can I force the "Weekends" series to fall underneath the rest of the charted series?
    1c) Bonus question: Can this be done without setting every single day on the x-axis as an individual value?
    1c+)Can the chart be set up in a fashion that its starting date can be set from a cell?

    Finally, as a QOL request, how can I set this chart up so that the fill color of the "Duration" series is based off of the Horizontal(Category) Axis Labels of the "Task" series.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by dacheeba; 01-06-2018 at 03:48 PM. Reason: Adding attachment

  2. #2
    Registered User
    Join Date
    01-05-2018
    Location
    Lexington, KY
    MS-Off Ver
    2007
    Posts
    28

    Re: Highlight weekends in a stacked bar (Gantt) chart (Excel 2007)

    Well, I think I figured it out finally, but it is pretty sloppy.

    Basically, I made a column chart with everyday of the year, logging values for every weekend, formatted the plot area and bars, and set the min/max values for the primary axis to be just over the duration that I wanted to see. Then I created my Gantt graph by adding a new series with dummy date fields so that when I changed the chart type of that series to stacked bars, it would line up correctly with the original series. Finally, I had to format that axis with the min/max that corresponded with the other x-axis...

    The only downside at this point is that I am left with a bunch of blank space at the bottom of the chart. Anyone know how to remove(not just hide) individual data points?

    Also still would like to know if I can change the fill color from the table, instead of manually changing it. If I change the sort order of the table, the chart will reflect that, but the fill colors will stay in the same position, making the chart very hard to understand.

    Anyways, if you want to see my current solution, it is on Sheet 2.

    Thanks in advance, again!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-05-2018
    Location
    Lexington, KY
    MS-Off Ver
    2007
    Posts
    28

    Re: Highlight weekends in a stacked bar (Gantt) chart (Excel 2007)

    Well, I have it all figured out now. I realized I didn't need the dummy dates, just needed to format the axis. I was then able to adapt the principle laid out in this tutorial to get the color formatting the way I wanted.

    http://www.k2e.com/tech-update/tips/...nal-formatting

    It only took my whole Saturday, lol! I've attached my finished example sheet(Sheet 6), just in case it might help someone else.

    Thanks for all the help, lol!
    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)

Similar Threads

  1. Gantt Chart showing weekends
    By croix22 in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 07-25-2017, 04:34 PM
  2. Excel 2007: Gantt chart showing incident duration
    By dobbinuk in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-30-2014, 06:06 PM
  3. Excel 2007 : Cluster-Stacked Column Chart Excel 2007
    By starbecks in forum Excel General
    Replies: 4
    Last Post: 06-13-2012, 02:57 PM
  4. Excel 2007 : Excel 2007 Gantt Chart??
    By twilson37 in forum Excel General
    Replies: 4
    Last Post: 11-15-2011, 04:45 AM
  5. Shading weekends in Gantt chart bars
    By neobavesten in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2010, 07:34 AM
  6. Clustered-stacked column chart in Excel 2007?
    By bmurata in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-10-2010, 06:49 PM
  7. Stacked Column Chart (Access 2007)
    By dvent in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-28-2009, 08:01 AM

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