+ Reply to Thread
Results 1 to 7 of 7

Can't choose correct DropList based on cell value

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Can't choose correct DropList based on cell value

    Should be simple, but can't work it out.

    Have two DropLists which are independent, not linked to the other in any way.
    Using row 2 as example. If A2 OR B2 OR C2 are "yes", then D2 should show DropList 1.
    If A2, B2 and C2 all say "No", then Col D should show DropList 2

    Any solutions, suggestions or alternatives welcome as ever.

    Ochimus

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,813

    Re: Can't choose correct DropList based on cell value

    Do you mean that you want to show all the values from the appropriate DropList down column D, or just the first item (or even just the text "DropList x") ?

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't bother trying to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Can't choose correct DropList based on cell value

    Pete,

    Appreciate the prompt response, and apologise that the explanation did not seem clear.

    This is not about linking "Dependent" DropLists, but having a cell content drive the selection of different DropLists that are not "derivative" from each other.

    As shown on the attached, Rows 2 - 8 have permutations of "Yes" or "No".

    Cells D2 - D8 should contain the Stage 2 DropList in Col J, because at least one cell in Cols A - C of the row says "Yes".

    D9, however, should contain the STAGE 1 DropList, as none of the cells in A9 - C9 say "Yes".

    Look forward to hearing from you

    Ochimus
    Attached Files Attached Files

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Can't choose correct DropList based on cell value

    Select the cells in column D, add data validation, choose List, then enter:

    =IF(COUNTIF($A2:$C2,"Yes"),STAGE_2,STAGE_1)

    in the source.
    Remember what the dormouse said
    Feed your head

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,112

    Re: Can't choose correct DropList based on cell value

    How about using
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    beaten2it

  6. #6
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Can't choose correct DropList based on cell value

    Apologies for delay in responding but was "In the Field" yesterday. Many thanks to both for "seeing the wood for the trees".

    Works perfectly, so can now mark this as "Solved", and move on to the next challenge which I'm posting now!

    Ochimus

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,112

    Re: Can't choose correct DropList based on cell value

    Glad we could help & thanks for the feedback

+ 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. How to make the macro to choose the correct cell
    By Superlan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2017, 05:04 AM
  2. Replies: 2
    Last Post: 09-14-2015, 10:10 PM
  3. [SOLVED] Choose the correct row
    By fulldeen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2014, 03:51 AM
  4. Replies: 4
    Last Post: 08-08-2014, 10:31 PM
  5. Replies: 2
    Last Post: 02-18-2014, 08:18 PM
  6. How to choose a cell based on number
    By nigo75 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2013, 08:41 AM
  7. Choose a value based on 2 cell Critieria
    By raghuram_g in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-26-2011, 12:12 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