+ Reply to Thread
Results 1 to 8 of 8

Restrict values in dropdown list by IF and Lookup Formulas

  1. #1
    Registered User
    Join Date
    12-11-2018
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    5

    Restrict values in dropdown list by IF and Lookup Formulas

    Hi, I am looking to see if there's any formula that I can add under data validation that can restrict the dropdown list values based on conditions? I would like the dropdown list to show all values under the Name row as long as the 2019-calculated row's values show as either B2 or A1.

    Current data table:

    Capture.JPG

    The drop down list should show 'A' and 'B' as values. What formula can I use under Data Validation? Do I need VBA for this instead?

    Thanks!
    Last edited by mjlhyj; 05-10-2019 at 12:05 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Restrict values in dropdown list by IF and Lookup Formulas

    Can you be more precise please and give us some examples, preferably uploading a workbook along with some notes.

    It's not at all clear to me what values you expect to see and how other rows in your table might affect the drop down
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-11-2018
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    5

    Re: Restrict values in dropdown list by IF and Lookup Formulas

    Hi Richard,
    I've uploaded the file in the attached.

    In the first sheet, I'm planning to have a list of names horizontally to complete the fields below.

    In the 2nd worksheet, under the Internal Successor Name, i wish to have have a dropdown list which shows the list of names that only have the grade B2 or A3 in worksheet 1.

    I've tried to input a Index-Match formula using Data Validation in cell F7, but it only shows 1 value instead of 2.

    Hope this clarifies further.

    Thanks!
    Attached Files Attached Files

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

    Re: Restrict values in dropdown list by IF and Lookup Formulas

    Hello mjlhyj and Welcome to Excel Forum.
    The following proposal, modeled in the attached copy of the file, employs a helper column, header lst_Name, which may be moved and/or hidden for aesthetic purposes.
    The helper column is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The source of the data validation then references the helper column using: =OFFSET('Potential Assessment'!$U$6,0,0,SUMPRODUCT(--('Potential Assessment'!$U$6:$U$8<>"")),1)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Restrict values in dropdown list by IF and Lookup Formulas

    I can't do any better than point you to Debra's Contextures web site where you'll learn all you'll ever need to know about dependent drop down lists - and more besides.

  6. #6
    Registered User
    Join Date
    12-11-2018
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    5

    Re: Restrict values in dropdown list by IF and Lookup Formulas

    Thanks JeteMc, much appreciated!

  7. #7
    Registered User
    Join Date
    12-11-2018
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    5

    Re: Restrict values in dropdown list by IF and Lookup Formulas

    Thanks for your help Richard! Really useful information in that site. That will probably mean I should create a helper column anyway to make use of dependent drop down lists.

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

    Re: Restrict values in dropdown list by IF and Lookup Formulas

    You're Welcome. Thank You for that feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Lookup using a dropdown list
    By jason_auburn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2019, 12:06 PM
  2. Replies: 5
    Last Post: 11-15-2018, 11:02 AM
  3. [SOLVED] LOOKUP with dropdown list
    By Yali in forum Excel General
    Replies: 3
    Last Post: 05-24-2016, 01:30 AM
  4. Dropdown list always shows unique values from a column based on lookup value
    By swood15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2014, 12:46 PM
  5. [SOLVED] VBA for creating dropdown list from dynamic multiple values lookup
    By costin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2013, 05:39 PM
  6. Trying to use formulas incorporating dropdown list
    By UK-Cobra in forum Excel General
    Replies: 6
    Last Post: 03-02-2011, 02:25 PM
  7. Dropdown list and lookup function
    By hasin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2008, 03:41 AM

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