+ Reply to Thread
Results 1 to 2 of 2

how to display the values ​​of a drop-down list thanks to the selection of another drop-do

  1. #1
    Registered User
    Join Date
    02-15-2023
    Location
    Benin
    MS-Off Ver
    2016
    Posts
    1

    how to display the values ​​of a drop-down list thanks to the selection of another drop-do

    Hello dear all, I have a workbook that has 2 excel sheets.
    On the 1st sheet, I have an excel spreadsheet which includes the list of teachers by line and the classes they keep. So on my second sheet, I created a dropdown list of teacher names as well as a second dropdown which will be responsible for retrieving each time the list of classes kept by this teacher. Do you have any idea how it works?

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: how to display the values ​​of a drop-down list thanks to the selection of another dro

    Try the attached using 'structured tables' - all the data and choices you make stay within the confines of the table - there is no need to extend the data validation this occurs dynamically as the tables expand/contract.
    Look in the 'name manager' to understand the process - the teacher name list is taken from the table headers - then a relationship is established between each column and an index is established to determine which column is read into the subject list.
    Refer to the data validation setup and you will see the reference names that are called for the list of each validation.
    To start the table first put a 'full stop' (point) in cell 'A2' move to 'B2' and back to 'A2' then make your two choices - to extend the table repeat in 'A3'>'B3'>'A3'
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

+ 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. Adding All Values ​​Entered Separately In Excel In A Single Cell
    By t3qnee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2021, 10:45 AM
  2. [SOLVED] Code option of placing multiple values ​​in one cell (via a list box)
    By Prangendevraag in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-29-2020, 02:58 AM
  3. Register dynamic values ​​in static values ​​via VBA
    By edneipaula in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2019, 08:57 AM
  4. [SOLVED] Show values ​​in the list
    By andrugrasu in forum Excel General
    Replies: 5
    Last Post: 02-14-2014, 12:22 PM
  5. Grading list of unique values​​
    By fidelski in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2013, 09:35 AM
  6. Grading list of unique values​​
    By fidelski in forum Excel General
    Replies: 1
    Last Post: 04-20-2013, 08:28 AM
  7. [SOLVED] VBA to sum values ​​based on the values ​​in column
    By young_86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2012, 11:49 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