+ Reply to Thread
Results 1 to 4 of 4

Dependent dropdown data validation

  1. #1
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Dependent dropdown data validation

    Hi,

    In my added example I have a red table with an item code, warehouse code and a warehouse location code.
    In the blue table I have two lookup lists with unique warehouses and warehouse locations, that I retrieved from an SQL database.

    I would need a dependent data validation for the grey cells in column G, so that in G3 I can only choose from [001] and [002], since they belong to warehouse 1.
    How would I do that ?

    Thanks for helping me out here..

    Example dependent dropdown.xlsx

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Dependent dropdown data validation

    In data validation use Allow -- List and in 'source' use

    =OFFSET(INDEX($C$3:$C$9,MATCH(F3,$B$3:$B$9,0)),0,0,COUNTIF($B$3:$B$9,F3))

    Also ensure that your Warehouse numbers in Column B are numbers and not text
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Re: Dependent dropdown data validation

    Thanks for your answer...
    I have been trying for about an hour now, but I cannot get it to work.

    I have tried it in data validation, but I get the message it results in an error (2042)
    The same goes for pasting the formula in a normal cell.
    I also resetted all of the cell formatting to 'Standard',

    The thing is that I do not get the syntax behind the formula that you have sent me, so troubleshooting is somewhat difficult.

    Do you have any idea what could be wrong?

  4. #4
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Re: Dependent dropdown data validation

    Hi,
    Just to finish this thread...
    I have started on a new sheet and now everything seems to work fine.
    Probably some left over text formatting that got in my way...
    Thanks again for helping me out...

+ 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] Dependent Dropdown Validation Lists
    By Root River Hardwoods in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2014, 05:30 PM
  2. [SOLVED] VBA data validation, dependent dropdown list
    By revzephyr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-13-2014, 11:47 PM
  3. [SOLVED] Dependent dropdown validation - dependent data is string
    By jnewby in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 07:50 PM
  4. 4 way dependent dropdown/data validation
    By Cidona in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-19-2012, 06:58 AM
  5. Excel 2007 : Dependent Dropdown (Data Validation)
    By mtpr220 in forum Excel General
    Replies: 16
    Last Post: 08-10-2011, 12:58 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