+ Reply to Thread
Results 1 to 7 of 7

Change graphs automatically when a row is inserted

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    68

    Change graphs automatically when a row is inserted

    I want the 2 graphs in "Graph" worksheet to change automatically when a row is inserted in "Data" worksheet . Every time i have to change the graph manually to contain the latest 20 days value. I want some offset or something which can be put in the range provided below to do the work.


    Chart Data Range =Data!$A$1:$A$22,Data!$F$1:$F$2,Data!$L$1:$L$20

    Legend entries (Series) -
    Series Name
    =Data!$F$1 ( this will remain constant everyday as this is a header field)

    Series Values
    =Data!$F$2:$F$22 ( this should contain last 20 days range, for example if a next row is inserted tomorrow then
    it should automatically change to =Data!$F$3:$F$23)

    Legend entries (Series) -
    Series Name
    =Data!$L$1 ( this will remain constant everyday as this is a header field)

    Series Values
    =Data!$L$2:$L$22 ( this should contain last 20 days range, for example if a next row is inserted tomorrow then
    it should automatically change to =Data!$L$3:$L$23)

    Horizontal (Category) axis series -
    Axis Label Range
    =Data!$A$2:$A$22 ( this should contain last 20 days range, for example if a next row is inserted tomorrow then
    it should automatically change to =Data!$A$3:$A$23)

    Sheet attached. Please help me as i am a newbie.

    Devicess.xlsx
    Last edited by aakhan2011; 05-26-2014 at 12:54 AM. Reason: solved

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Change graphs automatically when a row is inserted

    Hi, aakhan2011,

    the answer here would be the same I posted at http://www.excelforum.com/excel-prog...ml#post3708737 without getting any response from your side on what isnīt working on that thread.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    01-16-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: Change graphs automatically when a row is inserted

    Quote Originally Posted by HaHoBe View Post
    Hi, aakhan2011,

    the answer here would be the same I posted at http://www.excelforum.com/excel-prog...ml#post3708737 without getting any response from your side on what isnīt working on that thread.

    Ciao,
    Holger
    The url that you provided in the above post of mine , does not provide me enough information to solve my problem.

    Any help will be great. Even if you can help me with the last comments in previous thread.

    Thanks in Advance. :-)

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Change graphs automatically when a row is inserted

    Try this. I have converted your data to a Table, as a new row is added, the formulae will automatically copy down. Your column headers are a bit of a nightmare - way too long!!

    There were a large number of entries in your calciulation columsn which were NOT calculations, but which were manually typed in. They are all now correctly formatted as calculations.

    Anyway, in columns o - r I have created a list of the most recent 20 entries. The graphs automatically update as you add data. I have done this only for one graph. Try and set the other one up yourself & let me know how you get on.

    In the finished product, you can either hide the helper table, or (as I tend to do) put the graph on top fo the helper table.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    01-16-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: Change graphs automatically when a row is inserted

    Quote Originally Posted by Glenn Kennedy View Post
    Try this. I have converted your data to a Table, as a new row is added, the formulae will automatically copy down. Your column headers are a bit of a nightmare - way too long!!

    There were a large number of entries in your calciulation columsn which were NOT calculations, but which were manually typed in. They are all now correctly formatted as calculations.

    Anyway, in columns o - r I have created a list of the most recent 20 entries. The graphs automatically update as you add data. I have done this only for one graph. Try and set the other one up yourself & let me know how you get on.

    In the finished product, you can either hide the helper table, or (as I tend to do) put the graph on top fo the helper table.
    Your are awesome . But the axis title in your excel sheet shows 0.00% 2.00% 4.00% etc and in my sheet attached above shows 0.00% 0.20% 0.40% etc . Can you please check it once more.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Change graphs automatically when a row is inserted

    Hi, that's because I added two extra rows to test it out. I didn't delete them. Is this more like what you expected? You'll see that the first row of the graph's data is an error (#N/A). This is because, so far, you only have 19 points in your dataset. It'll disappear when you add another day and thereafter the graph will display only the latest 20.

    If this answers your Q, please mark the thread as closed and (ideally) say thanks by clicking the ADD REPUTATION button at the foot of my post.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-16-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: Change graphs automatically when a row is inserted

    Quote Originally Posted by Glenn Kennedy View Post
    Hi, that's because I added two extra rows to test it out. I didn't delete them. Is this more like what you expected? You'll see that the first row of the graph's data is an error (#N/A). This is because, so far, you only have 19 points in your dataset. It'll disappear when you add another day and thereafter the graph will display only the latest 20.

    If this answers your Q, please mark the thread as closed and (ideally) say thanks by clicking the ADD REPUTATION button at the foot of my post.
    Thanks , It worked . :-)

+ 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: 1
    Last Post: 04-04-2012, 03:39 PM
  2. Need values to be automatically inserted
    By Francoise in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-09-2011, 07:42 PM
  3. How to have rows automatically inserted with the tab key
    By friend11_6 in forum Excel General
    Replies: 0
    Last Post: 07-19-2009, 09:02 PM
  4. Automatically Update An Inserted Object
    By Chard in forum Excel General
    Replies: 3
    Last Post: 05-21-2007, 06:23 AM
  5. How can I get inserted lines to automatically appear in a linked .
    By Excel-erator in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2006, 12:55 PM

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.6.0 RC 1