+ Reply to Thread
Results 1 to 8 of 8

Data Validation when type Yes drop down come 1,2,3

  1. #1
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Data Validation when type Yes drop down come 1,2,3

    Please Show me how to do a data validation that returns to list options ,for example if user selects in cell A1 ,'yes' , column b will contain a drop down list 1,2,3, but if user selects in column A2 ,'no' in column 'b' a drop down list a,b,c Please help for this issue.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Data Validation when type Yes drop down come 1,2,3

    See attached
    farhangul yes no 123 ABC.xlsx
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Data Validation when type Yes drop down come 1,2,3

    gmr4evr1, thanks for reply, but this is not what I need, please see the question what I need. "for example if user selects in cell A1 ,'yes' , then column B2 will contain a drop down list 1,2,3, but if user selects in column A2 ,'no' in column 'B2' a drop down list a,b,c Please help for this issue"

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Data Validation when type Yes drop down come 1,2,3

    Look here....

    http://www.contextures.com/xlDataVal02.html

    Solution already supplied works: change A1 from "Yes" to "No" and you will get a new drop down but you will need to click on dropdown in B1 to invoke changed list..
    Last edited by JohnTopley; 03-27-2016 at 12:04 PM.

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Data Validation when type Yes drop down come 1,2,3

    Thank you John for the verification.

    farhangul, I did what you asked, I just put it in row one instead of row 2...my bad.

  6. #6
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: Data Validation when type Yes drop down come 1,2,3

    john please can you help me here because the link you have given is not opening, I this site is restrict in my country.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Data Validation when type Yes drop down come 1,2,3

    See the reply from "gmr4evr1" in post #2 and my comment in #4..
    Attached Files Attached Files
    Last edited by JohnTopley; 03-27-2016 at 01:21 PM.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Data Validation when type Yes drop down come 1,2,3

    Here's another way.

    If you have many selections available in the top level drop down you wouldn't necessarily want to use a long nested IF formula as the source for the dependent drop down.

    Create a list of the selections and their corresponding items...

    On Sheet2:

    Data Range
    A
    B
    1
    Yes
    1
    2
    Yes
    2
    3
    Yes
    3
    4
    No
    A
    5
    No
    B
    6
    No
    C
    7
    ------
    ------


    Then, if the top level drop down is in A1 on Sheet1...

    Create the dependent drop down in cell B1 on Sheet1.

    As the source use this formula:

    =OFFSET(Sheet2!B$1,MATCH(A1,Sheet2!A$1:A$6,0)-1,,COUNTIF(Sheet2!A$1:A$6,A1))

    Note that if you make a selection in B1 then change the selection in A1 cell B1 will still show the original selection which may be an invalid selection relating to the selection in A1.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 4
    Last Post: 10-28-2015, 12:59 PM
  2. Changing the font type in the data validation drop down list
    By macky18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2014, 07:28 AM
  3. Change chart type by using data validation
    By jeffreybrown in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 11-28-2009, 09:57 AM
  4. data validation-How to validate this type?
    By gopalakrishnarao1 in forum Excel General
    Replies: 7
    Last Post: 10-19-2009, 12:21 PM
  5. Need Validation type drop-down wildcard in Sumproduct
    By megnin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2009, 04:44 PM
  6. Need Validation type drop-down wildcard in Sumproduct
    By megnin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2009, 03:37 PM
  7. multiple data type validation
    By de049 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2008, 05:51 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