+ Reply to Thread
Results 1 to 4 of 4

Chart based on Named Range which changes size

  1. #1
    Registered User
    Join Date
    06-09-2017
    Location
    Ireland
    MS-Off Ver
    Office 2010
    Posts
    3

    Chart based on Named Range which changes size

    I have two questions regarding this please

    I want to create a chart based on a named range which changes size depending on 2 cell values. I have created the named range which varies in size using =OFFSET(Results!$B$1,0,0,Results!$A$2,Results!$A$3). The named range is either B1:C3 or B1:I3. I am trying to create a chart but the Chart Data Range keeps changing from the named range to the actual cell range if that makes sense. I have to go back in and change it to the named range each time.

    Once I have this cracked then I need to change the chart type depending on the named range i.e. if it is B1:C3 then Column Chart, if it is B1:I3 then Pie chart.

    Any suggestions please?

  2. #2
    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: Chart based on Named Range which changes size

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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

  3. #3
    Registered User
    Join Date
    06-09-2017
    Location
    Ireland
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Chart based on Named Range which changes size

    Thanks, See attached sample spread sheet. When Overall is selected it should appear as it is in the spread sheet. When NCB is selected it should appear like the attached image. The correct Chart Data Range is =Results!ResultsRange
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-09-2017
    Location
    Ireland
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Chart based on Named Range which changes size

    Is there further info I should provide to make this easier or maybe it is in the wrong forum? Thanks

+ 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: 0
    Last Post: 03-08-2016, 02:25 PM
  2. Replies: 3
    Last Post: 06-04-2011, 10:56 AM
  3. chart title based on Named Range
    By Hammer_757 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-05-2009, 07:34 PM
  4. Changing a named ranged based on array size on a form
    By Wanderer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2006, 08:15 AM
  5. Replies: 1
    Last Post: 06-03-2006, 10:55 PM
  6. [SOLVED] increasing the size of a named range and saving it back to the spreadsheetI
    By ross_smith@csaa.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2006, 07:10 PM
  7. [SOLVED] Cannot Expand Named Range - when size of the Range exceeds
    By Snig in forum Excel General
    Replies: 1
    Last Post: 07-07-2005, 09:05 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