+ Reply to Thread
Results 1 to 2 of 2

Graph Auto-Update with Dynamic Date Range

  1. #1
    Registered User
    Join Date
    12-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    28

    Graph Auto-Update with Dynamic Date Range

    Hello,

    I'm trying to create an injury tracker where a custom Location, Contractor, Start Date and End Date can be selected and a number of graphs will automatically update according to the selection. I've attached a small example file that works similarly to my full file, but my full file is going to look at a number of years of data while this sample file only has a few months.

    I've successfully laid out the file so that the graph data is calculated correctly (Dashboard Data sheet) and I can get it so a graph automatically updates correctly for a short time, but it seems that anytime I save and close the file, when I open it up the next time the date range won't automatically update and shows the entire maximum possible date range. What I'm hoping I can learn from the Excel community is how to better create a dynamic graph like this so it always reflects the selected date range.

    To explain how I'm creating the graph, I have injuries in the Injury worksheet from 1/1/2021 - 8/14/2021. In the Dashboard Data worksheet, I have a couple checks in columns L - W to see if the data exists and then columns Y - AC only pull data that meet the selected criteria on the Dashboard sheet. To create the graph, I enter the maximum date range on the Dashboard worksheet, then create a bar chart with Y2:AC10 selected. When I then change the selection on the Dashboard sheet, it works properly. However, it eventually reverts to the full max date range, even if data only exists for the selected date range from the Dashboard sheet.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Graph Auto-Update with Dynamic Date Range

    May I suggest using PivotTable? First, I have converted your data in Injury sheet to Table so that the PivotTable range can expand automatically when new data is input.

    Using Filters, you can filter data by Injury Location and Contractor. To filter Date, you can either do the filtering in the PivotTable itself or via Timeline (if this feature is available in your Excel version).

    Remember to refresh your PivotTable whenever new data is updated. Right-click anywhere in your PivotTable and select Refresh.

    I have selected Refresh data when opening the file > Right-click anywhere in PivotTable > PivotTable Options > Data > Refresh data when opening the file.

    P/s: Please update your profile if your current Excel version is not Excel 2007.
    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. Replies: 3
    Last Post: 04-02-2021, 09:23 AM
  2. [SOLVED] Dynamic date range selection from pull down menu and auto chart update HELP
    By bmaness in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-09-2020, 10:02 AM
  3. [SOLVED] Dynamic Range Graph Update - Help!
    By k7s41gx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-10-2018, 12:21 PM
  4. Dynamic Date Range for a line graph
    By TexasBobcat in forum Excel General
    Replies: 2
    Last Post: 02-13-2018, 02:22 PM
  5. [SOLVED] Chart date labels don't update (using dynamic named range)
    By s80NL in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-04-2013, 11:35 AM
  6. [SOLVED] Auto update cell for given date range in next sheet
    By yogananda.muthaiah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 05:07 AM
  7. Automatically update graph range based on date in column
    By basalisbury in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2012, 12:03 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