+ Reply to Thread
Results 1 to 2 of 2

Using data validation to populate an area with the contents of a named range for charting

  1. #1
    Registered User
    Join Date
    09-07-2018
    Location
    Wiltshire
    MS-Off Ver
    2007
    Posts
    1

    Using data validation to populate an area with the contents of a named range for charting

    Hi,

    Apologies, I couldn't find an exact home for this post so have put it in general.

    I may be approaching this in the wrong way but I am doing dynamic charting using lookups as determined by a choice in a cell with data validation called 'Selection', e.g. =VLOOKUP(SELECTION,DATA,2) where I can change the column based on the cell I am populating, all fairly straightforward...

    The problem comes in that one set of data is a bit more complicated that the rest e.g.

    Food Type Plan Actual
    Cheese Cheddar 12 4
    Cheese Stilton 5 3
    Cheese Wensleydale 4 4
    Bread White 10 5
    Bread Wholemeal 2 1

    You get the gist.

    The data validated list contains each Food e.g. Cheese, Bread etc. I have also made each change in food its own named range e.g. A2:D4 'Cheese' and A5:D6 'Bread' as for some reason I thought this would help. You may also notice that 'Cheese' has three variants and 'Bread' only has two. What I want to do is using my pick list, populate the cells that my chart is looking at with the contents of the named range. Am I over complicating this or am I just missing that magic formula that will populate the cells? I'd rather not have multiple charts if this can be avoided.

    Thanks,

    Mark

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Using data validation to populate an area with the contents of a named range for char

    You can define some names (Press Ctrl+F3 and see definition of axis_labels and series _data and few helper names) and then use these names as a source data for your chart. right-clik on chart, select edit data and then select edit labels or edit one of (well here is just one) of series

    PS. On this forum, one workbook is worth thousand words :-)
    Attached Files Attached Files
    Best Regards,

    Kaper

+ 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. Populate Listbox1 with data from a named range when opening userform
    By mhamm26 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-04-2017, 09:40 AM
  2. Populate ListBox with data from named range
    By kaseyleigh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2016, 12:06 PM
  3. [SOLVED] Count items not included in a data validation range sourced from named range
    By L plates in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-10-2015, 01:05 PM
  4. Help with Data Validation with Named Range
    By deejay220989 in forum Excel General
    Replies: 2
    Last Post: 06-16-2014, 04:42 AM
  5. [SOLVED] Add Data Validation With Named Range
    By ezrizer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2014, 12:28 AM
  6. Using a named Range in Data Validation
    By Befuddled in forum Excel General
    Replies: 2
    Last Post: 02-11-2010, 11:07 PM
  7. Data Validation & Named Range
    By Dylan&Hayden in forum Excel General
    Replies: 5
    Last Post: 05-10-2008, 05:23 PM

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