+ Reply to Thread
Results 1 to 7 of 7

Dynamic Name range for charts

  1. #1
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Dynamic Name range for charts

    Morning from ATL!

    I am creating a column chart with a dynamic range that only plots active data and lists active axis values in the legend.

    Column B (Name) has names of employees under a specific team. When team changes, so does Column B list.

    I attempted to create a defined name range and table using offset but royally failed. Without defined name range I get a bunch of blanks (B10 thru B20) which ends up in my plotting field and legend. Any solution to this?

    Note: Months never change. Also for Target I used a line chart which sets a target line across the chart.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic Name range for charts

    It's not at all clear (at least to me) what it is you're trying to achieve. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.
    I see no chart nor defined range name nor understand what you mean by 'target'.

    Remember that when you ask a question in a forum those of us who might be able to help know absolutely nothing about your system and work process or the terminology you use. Unless you have uploaded a workbook we know nothing about how it is laid out and little about what you want done with it or how the results should be presented.

    Whilst these things are second nature to you since you live with the workbook all the working day we start with zero knowledge so you need to take us by the hand and explain in quite precise detail your aims and goals as well as stuff like how your data might look different in other situations.
    Don't assume we are able to "figure it out". We're usually quite good but not prescient.

    Put yourself in our position and think about whether what you've posted makes sense and is unambiguous to someone who's never seen it before.
    You are asking us for help so help us to be able to help you by providing all the information we need, even if that information seems obvious or intuitive to you.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Dynamic Name range for charts

    Did you attach the right sheet?

    there are:

    no charts
    no formulae
    no named ranges

    in the sample file!!
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Re: Dynamic Name range for charts

    My humble apologies to the group for providing limited and fragmented information. I have added the table.

    However I can not recreate my original table. Additional problem is I can not make Column B labels show up in legend.

    So I have 2 distinct issues:

    1. Can not get legend to show actual names instead of series #.
    2. Can not ignore zeros/blank entries from name column (Column B) so they do not plot on chart AND do not show up in legend. I am assuming a dynamic name range is needed by using offset formula so data range adjusts dynamically.........how to go about that?
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Dynamic Name range for charts

    I don't see the relation between the data on Sheet1 and the matrix on Sheet2.
    Assuming that there is a relationship then it may be better to attempt producing a pivot table and pivot chart from the data.
    In the attached copy of the file the matrix on Sheet2 is converted to a table and the resulting chart shows the names instead of series numbers.
    Additionally the Target series can be charted as a line.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Forum Contributor
    Join Date
    01-25-2021
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    144

    Re: Dynamic Name range for charts

    Thanks Jete

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Dynamic Name range for charts

    You're Welcome. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Copy WS to another WB - Including dynamic range charts
    By DJDRU in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2017, 09:22 PM
  2. Update charts with Dynamic range
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2016, 06:10 AM
  3. VBA Plot Multiple Charts Using Loop Through Dynamic Range
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 07:38 AM
  4. Dynamic Charts Partial Range of Dates?
    By tgallag1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-27-2011, 06:19 PM
  5. Workaround needed to use dynamic range as source for charts
    By nholtappels in forum Excel General
    Replies: 0
    Last Post: 10-18-2011, 02:38 AM
  6. Dynamic column range for scatter charts
    By Yoolts in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-25-2010, 05:59 PM
  7. OFFSET for dynamic range and charts
    By ing.davo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-08-2009, 04:48 AM

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