+ Reply to Thread
Results 1 to 8 of 8

Adding new data to a drop down list

  1. #1
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Adding new data to a drop down list

    I have a drop down list already made and works fine. What I need to happen is to add a new entry if it is not on the drop down list, without updating my validation rule.

    Example:
    Validation Rule is E1:E3.
    Apple
    Orange
    Grapes

    Drop down list in A1, I need to enter Peach, but add it to e1:e3 without updating the validation list. I have it where I can enter Peach, but it want show up in the drop down list for future entries.

    Can this be done?

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Adding new data to a drop down list

    rlkerr,

    Use a dynamic named range
    http://support.microsoft.com/kb/830287
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,605

    Re: Adding new data to a drop down list

    Create a dynamic named range called "Fruit", without quotes. The refers to formula would be:

    =$E$1:INDEX($E:$E, COUNTA($E:$E))

    Then your validation rule becomes "=Fruit", again, no quotes.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Re: Adding new data to a drop down list

    I followed the instructions, but when I try to type in Peach is gives me the error "The value you entered is not valid."

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,605

    Re: Adding new data to a drop down list

    Probably best to post a sample workbook.

    Regards, TMS

  6. #6
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Re: Adding new data to a drop down list

    I have attached a very simple plain example of my spreadsheet, so you can see my drop down list I already have.

    What I am looking for is in E6, B11, and B12 drop downs is to be able to type in a new location and have it add it to the list so it will be there for next time. I don't know if this can be done or not, I just thought it would be great if it could.
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,605

    Re: Adding new data to a drop down list

    That's not the way Data Validation works. The basic idea is that you can only select something that already exist in a list somewhere.

    The information provided will enable you to create a dynamic named range ... but you would still have to add entries to that list before they will appear in the DV selection list.

    I posted this recently in the Tips and Tutorials forum. It might be what you are looking for:

    http://www.excelforum.com/tips-and-t...tion-list.html


    Regards, TMS

  8. #8
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Re: Adding new data to a drop down list

    Thank you for your help. I need to mark this solved, but I can't see the solved button. My apologies, I thought I followed the instruction.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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