+ Reply to Thread
Results 1 to 6 of 6

Dynamic Validation List using a qualifier column in Excel 2016

  1. #1
    Registered User
    Join Date
    11-20-2020
    Location
    Chicago, IL USA
    MS-Off Ver
    Office 2016 & 2019
    Posts
    3

    Post Dynamic Validation List using a qualifier column in Excel 2016

    I'm creating a template that will have a Validation List drop-down.

    What formula can I put in the Validation filed that will list the items in Column B only if its respective column has an "x" in it?

    COLUMN A
    1: x
    2: x
    3: x
    4: x
    5: x
    6: x
    7:
    8:
    9:

    COLUMN B
    1: Lettuce
    2: Carrot
    3: Potato
    4: Apple
    5: Pear
    6: Banana
    7: Sofa
    8: Dining Table
    9: Coffee Table
    Last edited by CharlzNine; 11-20-2020 at 05:37 PM. Reason: Making it look better since there's no table design

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Dynamic Validation List using a qualifier column in Excel 2016

    If the option
    1: x
    2: x
    3:
    4: x
    5: x
    6: x
    7:
    8:
    9:
    is possible then you have to create extra range with dynamic list.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Dynamic Validation List using a qualifier column in Excel 2016

    Here is an implementation. The first two columns are like what you posted. The third column is a helper column. The fourth column is the dynamic list. The yellow cell is the cell with data validation.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-20-2020
    Location
    Chicago, IL USA
    MS-Off Ver
    Office 2016 & 2019
    Posts
    3

    Re: Dynamic Validation List using a qualifier column in Excel 2016

    Wow, that works great! I may reply with questions as to how it works after I look at it more closely.

    Thanks 6StringJazzer!

  5. #5
    Registered User
    Join Date
    11-20-2020
    Location
    Chicago, IL USA
    MS-Off Ver
    Office 2016 & 2019
    Posts
    3

    Re: Dynamic Validation List using a qualifier column in Excel 2016

    Quote Originally Posted by 6StringJazzer View Post
    Here is an implementation. The first two columns are like what you posted. The third column is a helper column. The fourth column is the dynamic list. The yellow cell is the cell with data validation.
    Wow, that works great! I may reply with questions as to how it works after I look at it more closely.

    Thanks 6StringJazzer!

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Dynamic Validation List using a qualifier column in Excel 2016

    Sure.
    The helper column counts the number of X's up to that row. The first x will be assigned 1, the second x is 2, etc.
    The dynamic list looks up the number that is the same as its own row number, so in the first row it looks for (the first occurrence of) 1, the second row it looks for 2, etc. Then it returns the value of column B in the same row where it found the number.
    The data validation list just looks at that final list. It also uses the OFFSET function to take advantage of using the "height" argument to specify how many items are actually in the list. That way you don't get a few items followed by a bunch of blank lines.

+ 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: 1
    Last Post: 09-18-2017, 08:27 AM
  2. [SOLVED] VBA Excel adding dynamic validation list to multiple cells
    By Lokesh3_14 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2016, 11:20 AM
  3. [SOLVED] Invalid Qualifier to a Valid Qualifier (Application)
    By exceltabz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2014, 11:31 AM
  4. Replies: 0
    Last Post: 04-15-2013, 09:22 AM
  5. [SOLVED] Dynamic range from every nth value in a column in a data validation list
    By Xaoc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-08-2013, 08:47 AM
  6. Dynamic dropdown list via data validation in Excel
    By ronin21 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-22-2012, 07:01 AM
  7. Replies: 3
    Last Post: 08-21-2011, 08:22 PM

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