+ Reply to Thread
Results 1 to 8 of 8

Auto update a list I can select from

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Auto update a list I can select from

    Hello,

    In column A, i have city names e.g. London, Paris, Rome, New york
    The list will continue to grow as I visit new cities.

    I would like in cell B1 to be able to select a city from column A.
    I would like this selection feature to update automatically and recognise when new cities are added in column A.

    however, there are a couple of barriers.
    the drop down list feature in data validation cannot be used because there is a character limit in that and i dont want there to be a limit to the amount of cities i can visit.
    also, the filter cannot be used because I am using it elsewhere on the sheet. its a long story, but the filter simply cannot be used.

    any ideas?

    thanks

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Auto update a list I can select from

    You need to create a dynamic named range for that purpose. So assuming that you have cities listed in col. A with A1 as header (City), go to Formulas Tab in the menu bar --> Define Name --> In the Name box write City --> then in the Refers to: box type the formula given below and click OK.

    Please Login or Register  to view this content.
    Now go to Data tab --> Data Validation --> Allow: --> List --> click in the Source box --> Press F3 --> and select City named range from the available named ranges --> OK

    Hope that helps.

    ** In the formula above it is assumed that your sheet name is Sheet1 (default), so if you have different sheet name, you need to change it in the formula.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Auto update a list I can select from

    Hi,

    First you will need a Dynamic Named Range in Column A. This will grow (or shrink) depending on how many rows of data you have in column A.
    Read about DNRs at http://www.bettersolutions.com/excel...G820716330.htm

    Then you can't have Filters or Validation so I'd lean toward the Search or Find features and VBA.

    Record a macro that selects column A and then runs the Find (or Search) command from VBA. Then hang this macro behind the Sheet in an Event procedure of On_Change.

    I hate these problems with so many constraints... See if you can work with the above.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Auto update a list I can select from

    ive lost you both.
    ive attached a workbook - can you show me please.

    thank you
    Attached Files Attached Files

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Auto update a list I can select from

    See the attachment.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Auto update a list I can select from

    great stuff. thank you

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Auto update a list I can select from

    You're welcome. Thanks for the feedback.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Auto update a list I can select from

    Using your example workbook, I inserted a table for the cities. In column B starting in B1 and going down the column a ways is DV that will expand as you add cities to the table.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Pivot Filter Macro - Auto Update to select previous 30 days.
    By rocksolid77 in forum Excel General
    Replies: 2
    Last Post: 11-26-2012, 01:46 PM
  2. Auto extend and update list
    By Jactey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2012, 04:21 AM
  3. [SOLVED] Update the data list enter in form1 to select form2
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2011, 04:10 PM
  4. Auto select from a list
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 04-07-2006, 05:45 AM
  5. Auto Update A Validation List
    By Dmorri254 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2005, 04:06 PM

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