+ Reply to Thread
Results 1 to 2 of 2

Changing First dropdown list affects the first selcted value in Second dropdown List

  1. #1
    Registered User
    Join Date
    10-11-2021
    Location
    france
    MS-Off Ver
    2013
    Posts
    1

    Changing First dropdown list affects the first selcted value in Second dropdown List

    Hello All,

    I have an excel sheet where I have 3 dropdown lists:

    The first one (A) have value 0 or 1 for example
    Second one (B) has a list of elements
    Third one (C) Has the same list of (B)
    I have a condition to respect :

    If (A)=0 both dropddown (B) and (C) should show the same selection list .
    If (A)=1 DropDown (B) should show the normal list but dropdown (C) should show the same selected value in (B) and only the selected value ( Do not show all the other list values).
    I tried using this condition on the (C) dropdown cell using Data validation :

    Please Login or Register  to view this content.
    But the problem comes up when I select value1 for example in Dropdown C and then change the selection of A=0 to A=1 , and then I select in B Value2 , The Dropdown C still shows Value1 but when I click on it , I find in the list only Value2 ( but what it shows is Value1 eventhough it is not selected).

    How can I solve this situation ? and directly show the correct value in C ? ( Preferebly without using VBA)

    Thank you

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Changing First dropdown list affects the first selcted value in Second dropdown List

    Hello FrameExcel and Welcome to Excel Forum.
    To my knowledge there is not a way to do what you want, although perhaps it could be done using VBA (of which I know too little to help).
    This is a partial work around.
    The data validation source for cell A1 is: short, long
    The data validation source for cell B1 is: V1, V2
    The data validation source for cell C1 is: =INDIRECT(A1)
    The refers to for the named range "short" is: =Sheet1!$B$1
    The refers to for the named range "long" is: =Sheet1!$L$1:$L$2 (where V1 and V2 occupy cells L1:L2)
    The following conditional formatting formula is applied to cell C1 is: =AND(A1="short",C1<>B1) (such that when A1 = short and C1<>B1 the font is white which hides the value in C1)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 5
    Last Post: 12-11-2019, 04:37 AM
  2. Replies: 5
    Last Post: 11-15-2018, 11:02 AM
  3. Replies: 6
    Last Post: 02-02-2016, 04:26 PM
  4. Replies: 0
    Last Post: 08-22-2012, 03:52 PM
  5. Changing the value of a dropdown list automatically
    By Richmate in forum Excel General
    Replies: 3
    Last Post: 06-11-2010, 04:07 AM
  6. Replies: 21
    Last Post: 12-02-2009, 03:27 PM
  7. Date dropdown list and a Time dropdown list in outlook
    By L_ter in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2009, 02:33 AM

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