+ Reply to Thread
Results 1 to 10 of 10

Creating Dynamic Drop-Down

  1. #1
    Registered User
    Join Date
    03-08-2023
    Location
    Noblesville, IN
    MS-Off Ver
    Windows 10 Pro
    Posts
    5

    Creating Dynamic Drop-Down

    Spreadsheet with Drop-Downs.xlsm

    I am having difficulty creating a dynamic drop-down on one tab based on values on another tab (which could range from 0 - 44). Just using the range of the entire column, the drop-down, when clicked, open at the first blank below the last value in the list.

    I am using MS Excel 2016 and apparently "Unique" isn't available. I've tried using "Offset" but it doesn't work. I've tried using "Indirect" w/ the values in a table but found that when the table expands on one occasion but then later has null values in the expanded list the drop-down includes the blank values in the drop-down.

    I could use Indirect with the table for the column if I could figure out how to dynamically change the size of a table in a macro.

    Any assistance that one can supply would be greatly appreciated.Spreadsheet with Drop-Downs.xlsm

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,751

    Re: Creating Dynamic Drop-Down

    Change the definition of named range Song_Leader_01 to

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: Creating Dynamic Drop-Down

    if you use a 'structured table' far shorter formula and the list expands dynamically.

    =INDIRECT("Table1")
    Attached Files Attached Files
    Torachan,

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

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Creating Dynamic Drop-Down

    Please review my post in signature, it's may help.

    Regards.

  5. #5
    Registered User
    Join Date
    03-08-2023
    Location
    Noblesville, IN
    MS-Off Ver
    Windows 10 Pro
    Posts
    5

    Re: Creating Dynamic Drop-Down

    Torachan,

    I tried this and it works but if the table is expanded for more entries, and then subsequently the values in that table are reduced, there are blanks in the drop-down below the valid entries. Is there a way to dynamically change the column table length to match the number of entries in that column table so that these blanks do not show in the drop-down?

    Jeff

  6. #6
    Registered User
    Join Date
    03-08-2023
    Location
    Noblesville, IN
    MS-Off Ver
    Windows 10 Pro
    Posts
    5

    Re: Creating Dynamic Drop-Down

    My apologies for not properly attaching the spreadsheet. I am new to this forum.

    I tried using that formula in the drop-down, adjusting "$B$2" to be the first entry in the column, but the drop-down still opened with a blank with the entries above. And, there are blanks in the drop-down for the entire column where the data is housed with no data in those cells. Besides using a structured table is there a way so that only non-blank values in the column appear in the drop-down and the drop-down starts at the top value in the data column that it accesses?

    Jeff

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

    Re: Creating Dynamic Drop-Down

    if you are removing the unwanted entries in the proper manner the table will adjust accordingly and there will be no blanks anywhere - do not extend the table with blank rows manually.
    to delete right click on respective entry and select 'delete table rows'. I offered the 'structured table' option as it is the most simplistic and does not need complex formula to determine source data size.

  8. #8
    Registered User
    Join Date
    03-08-2023
    Location
    Noblesville, IN
    MS-Off Ver
    Windows 10 Pro
    Posts
    5

    Re: Creating Dynamic Drop-Down

    Thank you menem!

  9. #9
    Registered User
    Join Date
    03-08-2023
    Location
    Noblesville, IN
    MS-Off Ver
    Windows 10 Pro
    Posts
    5

    Re: Creating Dynamic Drop-Down

    Torachan,

    Is there a way to dynamically properly delete entries in the table, as in a macro?

    Jeff

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

    Re: Creating Dynamic Drop-Down

    You can, however you will still need to make a selection in some manner, thus adding more complexity, (rather use the 'KISS' method, no need for a 'hammer to crack a walnut')

+ 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] Need help on creating dynamic drop down menus
    By Richmond88 in forum Excel General
    Replies: 3
    Last Post: 08-25-2022, 01:00 AM
  2. [SOLVED] Help creating dynamic drop down list
    By MCDERMOTT5588 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-29-2021, 06:06 AM
  3. [UPDATED] Creating a 3-Tiered Dynamic Drop-Down List (NOT VBA)
    By Kogen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2020, 01:01 PM
  4. Replies: 3
    Last Post: 12-14-2020, 12:36 PM
  5. Creating a 3-Tiered Dynamic Drop-Down List with VBA
    By Kogen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2020, 05:33 AM
  6. Replies: 4
    Last Post: 01-16-2019, 10:20 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