+ Reply to Thread
Results 1 to 2 of 2

Chart with dynamically adjusting chart area

  1. #1
    Registered User
    Join Date
    12-01-2020
    Location
    Stuttgart
    MS-Off Ver
    365 ProPlus
    Posts
    1

    Chart with dynamically adjusting chart area

    Hello,

    i am heavily struggling with a current excel-project. I need a graph that visualizes certain values for every worday of the current week + the average values of the last 2 weeks. I managed to get the values in a certain order and the list itself can be updated daily without much effort. The problem now is, that the list is updating automatically every day, adding a new workday to the current week or "jumping" into a new week. With my solution the graph area has to be adjusted manually every day to allow for these changes. Due to the fact that the final project will have a lot of different graphs, i now need a chart that dynamically adjusts to these changes in my list.

    I added an example of my logic as attachement and tried to add a better explanation of my problem + comments of my formulas and logics.

    I would really appreciate any help i can get.

    PS:i tried to use the "=OFFSET(XXX)" solution but i got nowhere with that.

    Thanks in advance.
    Siewi
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Chart with dynamically adjusting chart area

    Try following the below steps on your example file. Once the setup below is done you only need to remember step 10 to refresh.
    It doesn't make things automatic but it is easier than altering your chart range every day. Might be other ways to does this and will be keeping an eye out for any other solutions myself in case a simpler method is available.


    Instructions below are also provided on the attached file which has been modified already.

    1. Add column with formula to determine if row should be included in chart (see attached which has this in place)
    2. convert the data area to an Excel Table
    do this by highlighting the whole area D4:I32 then hit Ctrl+T to convert to a table (make sure you tick the box to use first row as headers)
    3. with any cell in the table selected head to Data>From Table/Range
    4. A new window will appear with a copy of your table in view. Next the the heading name click on the little icon to change the data type.
    5. Right-Click on the Values heading and choose replace errors. type 'null' and click ok
    6. Filter the Include? column to Y only. This is you chart data range
    7. Close the window and save and changes (keep). a new table will appear on a new sheet in excel.
    8. Apply date formats to the required columns.
    9. Create your chart from this new table.
    10. When the original table is updated you just right-click on the new table and choose refresh (or from the Ribbon: Data>Refresh)
    The chart should update
    Attached Files Attached Files
    Say thanks, click *

+ 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: 5
    Last Post: 12-09-2015, 12:41 PM
  2. River Cross Section Chart - Area Chart Multiple series
    By ppdominic in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-15-2014, 06:01 AM
  3. Plot 3 sets of data in scatter chart and area chart in one
    By geoffs52 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-24-2009, 04:42 AM
  4. Replies: 2
    Last Post: 08-07-2006, 09:45 PM
  5. Adjusting the Chart area
    By Mr_Mani in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2006, 06:45 AM
  6. Coloring Chart Area Dynamically?
    By silver23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2005, 12:05 AM
  7. Have chart lines take up full area of chart from left to right
    By Roger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2005, 04:05 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