+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    Hainesport NJ
    MS-Off Ver
    Excel 2007
    Posts
    11

    Question Auto Update 7 Day Historical Chart

    So close on this one.

    I have a file (attached), with a Date Range in Column A, and a Defects figure in Column B. I want the resulting chart to be a 7 day historical bar chart of the defects.

    Currently I use

    'OFFSET(Sheet1!$A$2,0,0,COUNTA(Sheet1!$A:$A)-1)'
    and
    'OFFSET(Sheet1!$B$2,0,0,COUNTA(Sheet1!$B:$B)-1)'

    as named ranges in the chart source data to auto update the chart every time a new value is added in columns A and B. How can I modify these formulas (or create new ones) to ONLY include the new value, and the previous 6?

    Thanks in advance!
    `Engineers08
    Attached Files Attached Files

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Auto Update 7 Day Historical Chart

    Define the Date range like this:

    =OFFSET(Sheet1!$A$2,COUNTA(Sheet1!$A:$A)-8,0,7)

    and the Defects range like this

    =OFFSET(Date,0,1)

    There's no need to do the whole offset calculation again for the second range. In fact, if you ever need to change your offset parameters, you only need to apply the changes to the Date range and the Defects range will pick up the same start row and height etc.

    hth
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Registered User
    Join Date
    09-29-2009
    Location
    Hainesport NJ
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Auto Update 7 Day Historical Chart

    Thank you!

    SOLVED!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0