+ Reply to Thread
Results 1 to 3 of 3

Data Validation Hide Previously Used Items in Dropdown Based on 2 Columns/Criteria

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Quezon City, Philippines
    MS-Off Ver
    Excel 2010/2013
    Posts
    83

    Data Validation Hide Previously Used Items in Dropdown Based on 2 Columns/Criteria

    Hi:

    I need help on how to hide previously used item in a dropdown list based on 2 columns/criteria.

    I have input names namely George, Dylan, Linda, Leader in Column A (Names). In another sheet (Sheet 2) I have a list their in Column A (Sessions), Session 1 - Session 25 (for data validation purposes); I also have in Column B (Type), Ongoing, and Completed.

    Basically, what will happen is that
    1. Once I input George in Column A (Names) and I selected in the dropdown list (lets say in Column B of the same Sheet) Session 1, we won't be seeing anymore the Session 1 option.
    2. After which, if I add another name Dylan in Column A, I will see Session 1 again along with Session 2 to Session 25 and so on in the drop down list.
    3. If I selected Completed in Column C with the same Name (George) and it so happens it ended only in Session 3 (selected in drop down list in Column B). I will have a new set of Session 1 to Session 25 in the drop down list once I input George's name again in Column A.

    I checked the website,
    HTML Code: 
    and I get how it is done on hiding the previously used items in drop down list. However, what if it is based on a column with different names? and another column? How can it be done?


    Kindly see attached file for a sample output for your reference. Thanks in advance.
    Last edited by dylanrose; 03-07-2018 at 02:31 PM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Data Validation Hide Previously Used Items in Dropdown Based on 2 Columns/Criteria

    =OFFSET(x!$H$2,,MATCH(l!$A2,x!$H$1:$K$1,)-1,COUNTIF(OFFSET(x!$H$2,,MATCH(l!$A2,x!$H$1:$K$1,)-1,300,),">"""),)
    the rest are in the file
    Last edited by tim201110; 03-08-2018 at 01:00 PM.

  3. #3
    Registered User
    Join Date
    03-24-2013
    Location
    Quezon City, Philippines
    MS-Off Ver
    Excel 2010/2013
    Posts
    83

    Re: Data Validation Hide Previously Used Items in Dropdown Based on 2 Columns/Criteria

    Quote Originally Posted by tim201110 View Post
    =OFFSET(x!$H$2,,MATCH(l!$A2,x!$H$1:$K$1,)-1,COUNTIF(OFFSET(x!$H$2,,MATCH(l!$A2,x!$H$1:$K$1,)-1,300,),">"""),)
    the rest are in the file
    Almost what I need! The names column is input based -- names will be added (like a customer Sheet). If there are new names added, more columns must be added also in Sheet x?
    What I meant is it won't always be George, Dylan, Linda and Leader. It might have 10~100 more names and so on depending on who will arrive something like customers availing a product.


    For example, 5 new customers will arrive so it means 5 names will be input in the names column in Sheet l.

+ 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. Data Validation Hide Previously Used Items in Dropdown
    By cheddarthief in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 07-10-2020, 10:57 PM
  2. Data Validation Hide Previously Used Items in Dropdown
    By Abal1977 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-01-2017, 05:01 PM
  3. [SOLVED] Placement of [previously used dropdown box] based on data
    By dwheggen1 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 04-07-2015, 08:51 AM
  4. [SOLVED] Hide/Unhide columns based on Data Validation
    By Kinez101 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-05-2013, 05:41 AM
  5. Data Validation hide previously used dropdown list
    By Fred Tan in forum Excel General
    Replies: 0
    Last Post: 10-01-2010, 07:44 AM
  6. Hide previously used items from multiple drop lists
    By ron in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-25-2006, 02:55 PM
  7. Hide previously used items from multiple drop lists
    By ron in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-22-2006, 02:45 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