Results 1 to 6 of 6

Thread: Dynamically Update Chart With Latest X Columns Of Data As New Data Is Updated

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    9
    Rep Power
    0

    Dynamically Update Chart With Latest X Columns Of Data As New Data Is Updated

    I have a set of charts (10) that rely on new data each week.

    Each chart uses the latest 12 columns of data and the range does not grow dynamically.

    It is always the latest 12 columns of data.

    The data range is a moving 12 columns of data, i.e. moving to the right with the addition of a new column of data each week.

    The current week's data range (12 weeks of data) is:

    =SERIES(Data!$D$13,Data!$DK$4:$DV$4,Data!$DK$80:$D V$80,1)

    Next week's data range (12 weeks of data) will be:

    =SERIES(Data!$D$13,Data!$DL$4:$DW$4,Data!$DL$80:$D W$80,1)

    From the above example, the data is populated in columns in the worksheet by adding a new column of data each week.

    The new column is added after the last populated column.

    I need some code that will update the moving data range (12 columns only) so the charts will automatically update
    and refresh.

    Thanks

  2. #2
    Junior Member
    Join Date
    Sep 2011
    Posts
    9
    Rep Power
    0
    Would this work?

    If I used "offset" to define my chart data range and delete the reference column each week, containing data to the left of my range that I no longer need.

    Would the range advance and update automatically, given that is is defined by the number of columns to the right of the reference cell?
    Last edited by Admin; 07-21-2014 at 07:32 AM.

  3. #3
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Can be done with a few simple formulas and named ranges. Here's a sample. Post back if you need clarity on how to use it.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #4
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,122
    Rep Power
    10
    That would work. But be careful, deleting columns may cause some REF error. So better would be hiding those columns.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #5
    Junior Member
    Join Date
    Sep 2011
    Posts
    9
    Rep Power
    0
    Quote Originally Posted by Admin View Post
    That would work. But be careful, deleting columns may cause some REF error. So better would be hiding those columns.
    Thank you! I will try that when I get to the office tomorrow.

    Will let you know the results.

    Larry T

  6. #6
    Junior Member
    Join Date
    Sep 2011
    Posts
    9
    Rep Power
    0

    VBA for chart data range update (12 cols of data) that moves to the right

    Quote Originally Posted by Excel Fox View Post
    Can be done with a few simple formulas and named ranges. Here's a sample. Post back if you need clarity on how to use it.
    Excel Fox, Thank you. Looking at the code, I believe this will work. Will try it with the charts tomorrow.

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2014, 05:34 PM
  2. Replies: 10
    Last Post: 02-18-2014, 01:34 PM
  3. Compare Date Columns In Excel And Pull The Latest Date
    By marentette010 in forum Excel Help
    Replies: 1
    Last Post: 07-31-2013, 11:56 PM
  4. Update All Tables With Newly Added Data
    By redja71 in forum Access Help
    Replies: 5
    Last Post: 07-16-2013, 07:06 AM
  5. Moving Current Latest Data To New Workbook
    By Terry in forum Excel Help
    Replies: 1
    Last Post: 01-19-2013, 12:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •