+ Reply to Thread
Results 1 to 5 of 5

Changing Dropdown list based on inputs

Hybrid View

  1. #1
    Registered User
    Join Date
    03-08-2023
    Location
    Clearwater, Fl
    MS-Off Ver
    16.70
    Posts
    3

    Unhappy Changing Dropdown list based on inputs

    Apologies for being a noob.

    I need some help with changing a dropdown list based on input(s) from other cells.

    I have 4 columns: A, B, C, and Size

    A, B, and C are dropdown lists using Data Validation and can be Y, N, or blank
    Size is a dropdown list using Data Validation and can be XS, S, M, L, XL, blank

    I want the Size dropdown to change based on Y's in A, B, and C

    So if A, B, or C = 'Y' the Size list no longer shows XS and only has S, M, L, XL, blank
    If two of the 3, A and B or B and C or A and C = 'Y' the Size list no longer shows XS or S and is only M, L, XL, blank
    And if all 3 = 'Y' the Size list no longer shows XS, S, M and only shows L, XL, blank

    I've tried a bunch of variations of IF(OR) and IF(AND) but can't seem to make it work fully.

    Any help would be huge.

    Thanks

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Changing Dropdown list based on inputs

    based on your rules...

    one option: enter the following list into a vertical range, in order: XS, S, M, L, XL -- name this range something like _Sizes

    in the Size DV cell, assumed to be D2 in the below example (with A2:C2 holding A, B & C results), enter the following formula:

    Formula: copy to clipboard
    D2 DV custom rule:
    =OFFSET(_Sizes,COUNTIF($A2:$C2,"Y"),0,ROWS(_Sizes)-COUNTIF($A2:$C2,"Y"),1)
    as you adjust A2:C2 so the options in D2 will adjust accordingly.

    note: whilst OFFSET is Volatile it has no bearing here given DataValidation use case - i.e. will only be invoked when the DV cell is activated.

    for more complex solutions you would want to research dependent DataValidation -- Debra Dalgleish's site will offer good examples of this (Contextures)

  3. #3
    Registered User
    Join Date
    03-08-2023
    Location
    Clearwater, Fl
    MS-Off Ver
    16.70
    Posts
    3

    Re: Changing Dropdown list based on inputs

    Thank you.

    That formula worked for the 1 and 2 of them being Y's but not when all 3 are Y's; when all 3 are Y's it still shows the M-XL
    Attachment 820979

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Changing Dropdown list based on inputs

    that link isn't valid -- attached is a working illustration (which will only return L + XL for 3 Ys)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-08-2023
    Location
    Clearwater, Fl
    MS-Off Ver
    16.70
    Posts
    3

    Re: Changing Dropdown list based on inputs

    Not sure what I messed up the first time, like I said I'm a noob, but it works now.

    Can't thank you enough!

+ 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: 10-14-2021, 11:47 AM
  2. [SOLVED] SOLVED Changing percentages in a column based variable inputs
    By Kuecker2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-12-2019, 10:53 PM
  3. Changing other cell values based on Dropdown list
    By FransB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2014, 04:00 AM
  4. Replies: 1
    Last Post: 06-20-2014, 05:21 AM
  5. Changing number of days in a month based on month chosen from a dropdown list.
    By st_judeu@yahoo.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-08-2013, 02:26 PM
  6. Reset Dropdown Lists based on Other inputs / cells
    By jonreynolds in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-12-2009, 12:20 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