+ Reply to Thread
Results 1 to 8 of 8

[Google Sheets] using named ranges in a drop down

  1. #1
    Registered User
    Join Date
    05-05-2019
    Location
    Detroit, Michigan
    MS-Off Ver
    2013
    Posts
    13

    [Google Sheets] using named ranges in a drop down

    I am trying to create a chart showing the most sold items in each aisle in a grocery store. I could easily create a different chart for each aisle using index and match or VLOOKUP, But I would prefer creating a single chart that can be changed using a drop down list. I figured I could make the drop down list contain the name of each aisle, and rename the appropriate range to correspond ( IE: if the information in aisle 1 is A1:A9, i could define that range to be called aisle1). When i attempt to set the range of the VLOOKUP function to my drop down list it says it is evaluating to an out of bounds range. If i go directly into my chart and set the range to "aisle1" then the formula works with no problems. Is there a way for my drop down list to contain "aisle1,asile2,asile3,...." If i define each aisles data to its corresponding name, and then for my VLOOKUP range for each cell in my chart just = the cell where my drop down is?

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: [Google Sheets] using named ranges in a drop down

    are you able to upload a text file, containing a link to a copy of your g-sheet (that, where necessary, has confidential information removed and replaced with sample data).. with edit privilege given to anyone with the link (because it is a copy, not the original).

  3. #3
    Registered User
    Join Date
    05-05-2019
    Location
    Detroit, Michigan
    MS-Off Ver
    2013
    Posts
    13

    Re: [Google Sheets] using named ranges in a drop down

    I have an example sheet made up that has my problem in it, but Its not allowing me to post links "You are not allowed to post any kinds of links, images or videos until you post a few times." is there anyway around this?

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: [Google Sheets] using named ranges in a drop down

    yes, as mentioned in #2, upload a text file that has the link.
    do this by following the instructions in the yellow banner above your first post.

  5. #5
    Registered User
    Join Date
    05-05-2019
    Location
    Detroit, Michigan
    MS-Off Ver
    2013
    Posts
    13

    Re: [Google Sheets] using named ranges in a drop down

    ah i see, thank you.
    Example Problem GS.txt

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: [Google Sheets] using named ranges in a drop down

    by changing your data into a table (preferred option as easier to craft solutions ), you can use an INDEX MATCH combination (which is a somewhat preferred method over VLOOKUP), like this in cell K2:

    Please Login or Register  to view this content.

    Screen Shot 2021-11-12 at 10.10.53 pm.png

    please see your G-Sheet, i have created this on its own tab

  7. #7
    Registered User
    Join Date
    05-05-2019
    Location
    Detroit, Michigan
    MS-Off Ver
    2013
    Posts
    13

    Re: [Google Sheets] using named ranges in a drop down

    Thats great! thank you very much for your help

  8. #8
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: [Google Sheets] using named ranges in a drop down

    i have just added in the named ranges for Stores, Aisles, and StoreData.

    click on the result boxes K2 to O2 (row presentation) and K5 to K9 (column presentation) to see the formulas using the named ranges, and also look at the data validation for cells I2 and J2 which also using the same named ranges.

    so now when you want to expand the range, you wont need to edit the formulas or data validation themselves, you will only need to expand the range of the named ranges

+ 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. [SOLVED] Named Ranges - Navigation drop Down
    By wizmaster in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-30-2021, 10:00 PM
  2. Replies: 9
    Last Post: 06-13-2020, 10:05 AM
  3. 2 Named Ranges For 1 Drop Down List
    By bj90 in forum Excel General
    Replies: 6
    Last Post: 08-07-2019, 10:50 PM
  4. Drop down lists/Named ranges
    By creed1101 in forum Excel General
    Replies: 1
    Last Post: 09-07-2011, 09:31 AM
  5. Data drop down with named ranges
    By excellentexcel in forum Excel General
    Replies: 1
    Last Post: 01-18-2009, 07:54 AM
  6. Drop down boxes and Named ranges
    By Harry_Potter in forum Excel General
    Replies: 5
    Last Post: 01-09-2008, 07:05 PM
  7. Drop-down-list with Named ranges
    By Chootje in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2006, 07:55 AM

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