+ Reply to Thread
Results 1 to 3 of 3

Auto update and conditionally format a chart

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    Ballymena, Northern Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    16

    Auto update and conditionally format a chart

    The attached spreadsheet has me tearing what little hair I have left out! I am trying to get it to auto update the charts based on the tables in the first tab.

    The issue is that I have to remove the oldest month and add the previous. When I do this I then have to go to the chart and change the "Select Data" to point it at the added line.

    I also need the charts to auto format based on the conditions of whether the target is above or below the actual. I also need the Max one to format based on the figure of the previous month, Red if it is higher, Green if lower. At present I am doing these formatting changes manually but there must be an easier way!

    Any help would be gratefully received!

    Regards

    Stephen
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,919

    Re: Auto update and conditionally format a chart

    I don't know what you were doing to make the charts not follow the tables, but I made that process automatic. The New Dates macro finds the top date in the table (For example May 2017) and adds a year and a month to it to make it June 2018. It puts this date as a new row on the bottom of the table, and then deletes the old first row. For OverMax it "remembers" the old value since we'll need it for charting.

    There is no change to the Purchase vs. Target chart. That's straightforward.

    To get the conditional charting for the other charts, break the data up to two series: Over and Under. Check out the formulas in each of the tables. Plot these two series and format over to red and under to green. Then set the series overlap to 100%. I set the gap to 200 just because I liked the way that looked.

    You can hide these helper columns but then you will have to got to the Chart, Select Data and tell the chart to display hidden data.

    I leave it to you to clean up the charts and move them to the bar graphs sheet as well as moving the tables back to where they were. Don't forget that OverMax will be writing to a row above the table so leave space for that. This row can be hidden.

    I also destroyed your data with my testing. Copy / Paste values only where you don't have formulas.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    09-20-2011
    Location
    Ballymena, Northern Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    16

    Re: Auto update and conditionally format a chart

    That is fantastic, thank you so much

    Regards

    Stephen

+ 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] conditionally format a bar chart with different values with different colours
    By cyberice in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-28-2017, 05:20 PM
  2. Replies: 1
    Last Post: 01-04-2017, 05:59 PM
  3. [SOLVED] Excel 2007 : Conditionally Format Bar Chart based on another column
    By asavage in forum Excel General
    Replies: 3
    Last Post: 04-03-2012, 03:43 AM
  4. Help Conditionally Colour Format 3D Chart - Excel
    By W2009 in forum Excel General
    Replies: 7
    Last Post: 08-19-2009, 11:21 AM
  5. Can I conditionally format pivot chart totals?
    By thestappa in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-05-2009, 08:09 AM
  6. [SOLVED] How do I conditionally format a chart?
    By Midavalo in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-21-2006, 06:15 AM
  7. How do I conditionally format a chart?
    By Michelle in forum Excel General
    Replies: 1
    Last Post: 04-12-2005, 05:06 PM

Tags for this Thread

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