+ Reply to Thread
Results 1 to 4 of 4

Automatic Chart Update when Cells are inserted in rows above previous data

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    Hogtown
    MS-Off Ver
    Excel 2003
    Posts
    12

    Automatic Chart Update when Cells are inserted in rows above previous data

    Hello
    I am trying to create a named range using the offset function to automatically update values for my chart. I have seen many, many solutions when the new data appears below the previous data set, but none when the newest data appears at the top, below the title. For example, when you have the name "Date" in A1 and ascending dates from A2:A10, and you add new consecutive ascending dates from A11:A20, your formula in the "refers to" section of the Named Range is:

    =OFFSET(Sheet1!$A$2,0,0,COUNTA(Sheet1!$A2:$A30)-1)

    However, my dates are descending and I insert new dates between the title Date in A1 and the previous data below. For example if my last date is 3/31/13, currently in cell A2, I want to insert a new row in A2 for 4/1/13. I want to update my chart automatically. I have tried several formulas, none of which have worked. Here is one:

    =OFFSET(Sheet1!$A$2,COUNTBLANK(Sheet1!$A$2:$A$20),0,20,0)

    Lost. Any help would be appreciated. TIA.
    Last edited by Porkytails; 03-31-2013 at 11:07 PM. Reason: typo

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Automatic Chart Update when Cells are inserted in rows above previous data

    Hi Porkytails,

    Upload a sample workbook and mention what range you need to capture using defined name. Thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Hogtown
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Automatic Chart Update when Cells are inserted in rows above previous data

    I figured it out. All you need to do is to include $A$1 in the series and Row 1 of every series you intend to chart, and excel will automatically skip all the blank cells in between the title in Row 1 and the beginning of the data, for example 10 rows down. If you add a row of data, say, 9 rows down, the chart will automatically update itself.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Automatic Chart Update when Cells are inserted in rows above previous data

    Thats great


    Please mark this thread as [SOLVED].. thx


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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