+ Reply to Thread
Results 1 to 6 of 6

Dynamic Charts - help setting up with named ranges

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Dynamic Charts - help setting up with named ranges

    Hi,

    I am new to posting on here as I usually find the answers I need by searching. However I'm coming up blank this time so I'm hoping someone can help me out.

    I have data which I'm trying to chart. The numbers of rows in my data changes from month to month but the columns remain fixed. I have attached an example showing my data and to the right of it the chart. Currently the chart is set up with the data range specified as C2:O21. I want my chart to dynamically update when new rows of information are added.

    I have searched and found lots of examples using the OFFSET function and I can create named ranges using this function (you will see some in the Name Manager). However I am having trouble applying these named ranges to my chart. The horizontal axis must be the column headings (year/period) and these never change, however when it comes to plotting the vertical axis I'm having trouble working out how to specify the category shown in column C and the values for each year/period.

    A lot of the examples I have viewed have the data set up in a different way to mine and I can't work out how (if it's possible) to do what I need.

    Any help much appreciated and I hope I've posted enough information.

    Thanks,
    Alex
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Dynamic Charts - help setting up with named ranges

    Hello
    It's difficult to add a series to a chart dynamically the way your data is set up. If you're happy to create an Excel Table then you can produce a chart which updates automatically but it requires the date to be pivoted round. Take a look at the attached file, on the Table tab the chart updates as you add new columns. It also allows you to filter the data and chart.

    Hope this helps.
    DBY
    Attached Files Attached Files

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Dynamic Charts - help setting up with named ranges

    As DBY says the easiest way to have dynamic series, rather than extending data points, is to use a Table.

    But there is no need to alter you existing table, other than Header row in single row rather than over 2 rows.
    You can simple switch the data so rows are used as series.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Thumbs up Re: Dynamic Charts - help setting up with named ranges

    Thanks Andy
    I just couldn't get it to work without pivoting the data around. Happy to learn from the Master.

    Regards
    DBY

  5. #5
    Registered User
    Join Date
    06-08-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Dynamic Charts - help setting up with named ranges

    Hi,

    Thank you for both of your replies.

    The table appears to work well however I have a couple of problems with it. I am unsure which version of Excel this report/chart will be run on, it could potentially be used in 2003 and I didn't think the table would work in this version?

    Also my header row with the year/period numbers are formulas. Using them in a table removes the formulas doesn't it?

    Lastly, the number of rows changes each time the report is run and has the potential to become shorter (less rows) than previously. Does this cause any issues with tables and charting from a table?

    Thank you for all your help.

    Alex

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Dynamic Charts - help setting up with named ranges

    In xl2003 tables are called lists.
    Correct, you can not use formula as column headers.
    If the table is resized the chart will reflect this. If you overwrite the top part of the table only then previous information will still be included.

    You could use a pivot table/chart. whilst this would be dynamic in terms of series, once the table was refreshed, the labelling of categories would required a manual change.

    Or you could use VBA to auto the process.

+ Reply to Thread

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