+ Reply to Thread
Results 1 to 6 of 6

Dynamic Dropdown list based on the value entered in the adjacent cell

  1. #1
    Registered User
    Join Date
    02-24-2023
    Location
    India
    MS-Off Ver
    365
    Posts
    9

    Dynamic Dropdown list based on the value entered in the adjacent cell

    Hi there!

    I need help in populating a dropdown list based on a value entered in an adjacent cell

    In the sample workbook attached, I have sheets - Employee, Location, and License.

    The employee Details are added manually in the Employee sheet. Then For each employee ID, one or more locations are added manually in the Location Sheet.

    Now, what I am trying to achieve is - when I select an employee ID in License Tab A2, then in the cell B2, the dropdown list should show only those locations which are available for the employee ID selected (as per employee-location mapping done in Location sheet).

    Thank you so much for your help!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-08-2013
    Location
    Zambia
    MS-Off Ver
    MS365 64-bit
    Posts
    18

    Re: Dynamic Dropdown list based on the value entered in the adjacent cell

    Please see attached, is this what you had in mind?

    I used a FILTER formula to bring back the relevant locations.

    Cheers
    Nico

    Andrews_Sample filtered.xlsx

  3. #3
    Registered User
    Join Date
    10-08-2013
    Location
    Zambia
    MS-Off Ver
    MS365 64-bit
    Posts
    18

    Re: Dynamic Dropdown list based on the value entered in the adjacent cell

    Sorry, didn't read properly. I see you want the result as a dropdown list.

    The easiest is to use the FILTER formula in the workbook, then link the data validation to where that formula is located.

    Here is the formula:
    Please Login or Register  to view this content.
    And use the following value as the source for the dropdown list:

    Please Login or Register  to view this content.
    With E2 being the cell containing the FILTER formula.

    Andrews_Sample filtered fixed.xlsx

    Cheers
    Nico
    Last edited by caycoo; 02-20-2024 at 08:52 AM. Reason: Added the FILTER formula ot the actual post, not just in the workbook.

  4. #4
    Registered User
    Join Date
    02-24-2023
    Location
    India
    MS-Off Ver
    365
    Posts
    9

    Re: Dynamic Dropdown list based on the value entered in the adjacent cell

    Thanks, Nico! Your solution works but only if there is one employee ID being added.
    In case a different employee ID is selected in 2nd row, then the dropdown list needs to be updated to according to the employee ID.
    Last edited by adyrockstar; 02-20-2024 at 09:29 AM.

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    Zambia
    MS-Off Ver
    MS365 64-bit
    Posts
    18

    Re: Dynamic Dropdown list based on the value entered in the adjacent cell

    Sorry, couldn't tell from your post that you needed multiple lookups.

    I've fixed it, it ain't pretty, but it works

    Cheers
    Nico

    Andrews_Sample filtered fixed again.xlsx


    "I didn't have time to give you a simple formula, so I gave you a complex formula." - Mark Twain / Cicero / Blaise Pascal

  6. #6
    Registered User
    Join Date
    02-24-2023
    Location
    India
    MS-Off Ver
    365
    Posts
    9

    Re: Dynamic Dropdown list based on the value entered in the adjacent cell

    Thanks, Nico. This solved my problem.

+ 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. [SOLVED] TradingJournal - Dynamic cell reference formula based on dropdown list selection
    By ecronic in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-04-2023, 02:24 PM
  2. [SOLVED] Dynamic dropdown list based on Cell Value
    By Kevin Rush in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-08-2022, 11:50 AM
  3. Replies: 3
    Last Post: 11-21-2017, 01:52 AM
  4. Replies: 3
    Last Post: 11-13-2015, 05:10 AM
  5. Remove Dropdown List if Text in adjacent cell
    By brent_milne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2014, 05:28 PM
  6. Dynamic dropdown list selection based on combo box
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2012, 10:55 AM
  7. Populating numerical values in adjacent cell from using a dropdown list
    By up_and_under in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-30-2010, 10:30 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