+ Reply to Thread
Results 1 to 9 of 9

Add new items to a drop down list

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Add new items to a drop down list

    A have a drop down list, with all the items help on a separate tab.

    Is there a way to add new items to the list by just typing them in and they will be added to the list or do i need to enter them in my original list first?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Add new items to a drop down list

    You can make that named range dynamic, so that it automatically adjusts to new data being added to the bottom. Use Name Manager on the Formulas tab to see what the Refers To range is, and copy it into a post here, so that we can see which sheet and which column your data is in (or attach a sample Excel workbook as described in the yellow banner at the top of the screen), and the we can suggest a suitable formula to use.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,997

    Re: Add new items to a drop down list

    Named ranges or structured tables.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor GWteB's Avatar
    Join Date
    12-13-2021
    Location
    GMT +1
    MS-Off Ver
    2013
    Posts
    136

    Re: Add new items to a drop down list

    You could convert your list to a table. A table extends its range automatically when data is added. In the Data Validation dialog you need to refer to your table using the INDIRECT worksheet function.
    For example: your table is called "Table2" and has a header called "MyItems", then enter the following in the "Source" field on the Settings tab of the DV dialog:
    Formula: copy to clipboard
    =INDIRECT("Table2[MyItems]")

  5. #5
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Re: Add new items to a drop down list

    Ok Thanks everyone for the advice.

    I have uploaded an example.

    It has the sites tab and entry as a name table "Sites" the dropdown list links to these cells on the sites tab within the box.

    It works ok for selecting from the list, I am still struggling to get it to be able to add new entries that would then be added to the sites list for future use, preferably in alphabetic order.

    Any help much appreciated.
    Attached Files Attached Files

  6. #6
    Forum Contributor GWteB's Avatar
    Join Date
    12-13-2021
    Location
    GMT +1
    MS-Off Ver
    2013
    Posts
    136

    Re: Add new items to a drop down list

    A table is dynamic by design so don't use its address like $A$1:$A$20
    See file attached.

    EDIT: try entering a fifth city at the bottom of the table and watch what's happening with both table and dropdowns on the other worksheet.
    Attached Files Attached Files
    Last edited by GWteB; 12-16-2021 at 03:16 PM.

  7. #7
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Re: Add new items to a drop down list

    Quote Originally Posted by GWteB View Post
    A table is dynamic by design so don't use its address like $A$1:$A$20
    See file attached.

    EDIT: try entering a fifth city at the bottom of the table and watch what's happening with both table and dropdowns on the other worksheet.
    Thank You, that looks like what i need. In the revised version I have uploaded.

    Can I ask a couple of questions on this.

    Do I need to update the table with the sites, or is it possible to type in the box and have the site table updated, it is fine if i need to update the site table first, i am just interested to know.

    Also I have added a site number, i get this by using xlookup, is that the best way?
    Attached Files Attached Files
    Last edited by gjjh25; 12-16-2021 at 04:08 PM.

  8. #8
    Forum Contributor GWteB's Avatar
    Join Date
    12-13-2021
    Location
    GMT +1
    MS-Off Ver
    2013
    Posts
    136

    Re: Add new items to a drop down list

    Glad to help.

    Quote Originally Posted by gjjh25 View Post
    Do I need to update the table with the sites, or is it possible to type in the box and have the site table updated, it is fine if i need to update the site table first
    I'm not sure what you mean by this. Just to be sure, the table named Table1 on the worksheet named Sites is the source of and contains the elements for the data validation drop downs that you use in column B of the worksheet named Order.


    Quote Originally Posted by gjjh25 View Post
    I have added a site number, i get this by using xlookup, is that the best way?
    It looks like there's a relationship between the site name and the site number. In that case I would keep the XLOOKUP.

  9. #9
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Re: Add new items to a drop down list

    Thank for the help, much appreciated.

+ 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. Replies: 10
    Last Post: 07-18-2021, 06:31 PM
  2. Replies: 4
    Last Post: 11-26-2020, 01:51 PM
  3. comments for drop down list items?
    By zoneblitz61 in forum Excel General
    Replies: 8
    Last Post: 03-25-2020, 03:19 PM
  4. Hide Used Items in Drop Down List
    By fffleague15 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-05-2015, 12:10 PM
  5. Replies: 0
    Last Post: 04-22-2014, 11:03 PM
  6. List all items depending on Drop-list Value
    By ioloroberts in forum Excel General
    Replies: 1
    Last Post: 03-01-2013, 07:43 AM
  7. Items used from a drop down list
    By vanmeterkj in forum Excel General
    Replies: 3
    Last Post: 05-17-2012, 01:50 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