+ Reply to Thread
Results 1 to 12 of 12

Lookup list, populate cells

  1. #1
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Lookup list, populate cells

    I want start entering a name in COL A, and it looks up the name list on SHEET2 - then populates SHEET1 A,B,C with the results.
    The name list on sheet2 is sorted, but may have the SAME NAME, but a different state, so I want to be able to select either.

    EX: I type "JOH", and it displays "JOHNSON,PAT TX", "JOHNSON, PAT WA"

    Attached sample...
    Attached Files Attached Files
    Last edited by x65140; 12-05-2013 at 05:21 PM. Reason: SOLVED

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Lookup list, populate cells

    I am not sure where the results are copied, but I copied them in to column F.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Lookup list, populate cells

    If you want to display the result in column A

    Change the F in to A in this line

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Lookup list, populate cells

    1 way could be something like this.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Re: Lookup list, populate cells

    Can't get it to work. Maybe I didn't explain it well enough. I'm uploaded another sheet (called NEWLOOKUP) with what I hope is a better explanation.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Lookup list, populate cells

    You have not explained why my code does not work the way you wanted it.
    It has displayed all the search cells, but I am not sure when you say, I choose? How do you choose out of the options?

  7. #7
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Re: Lookup list, populate cells

    I opened your workbook. Typed JOH in cell A1 and nothing happened. What am i doing wrong? (apologize for my ignorance)

    When I type JOH in cell A1, I was thinking that a list would appear, and maybe i could click on the name i wanted.
    Then the cells A thru C on sheet 2 would populate A1:C1 on sheet 1

    Then, I want to type a new search name in A2, then A3, etc....

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Lookup list, populate cells

    Well, I know the issue. The first attached had row 2, not row1, so my search was based on A2, not A1.
    No problem, I will adjust the code.
    One more question. The search finds over two options, where do you want to list them? Is it A2:C2 and the rest?
    Last edited by AB33; 12-05-2013 at 04:58 PM.

  9. #9
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Re: Lookup list, populate cells

    if the search finds more than one option, is there a way for me to click on the one i want? if not, just return the first option to A1:C1

    This code will have to work for all of column A.

    THANKS!

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Lookup list, populate cells

    The code assumes the search value is in A1, it then list all found items starting from A1. Which means it is going to erase A1,once the search value is found
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Lookup list, populate cells

    Here you go.. This works.. Check sheet 2
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Re: Lookup list, populate cells

    appreciate all of your help...thanks.

+ 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. Auto-populate lookup formula based on previous cells
    By Homeslice01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 11:09 PM
  2. Replies: 2
    Last Post: 02-03-2013, 02:43 AM
  3. Removal of 000's and a lookup formula to populate cells
    By YoungExcel in forum Excel General
    Replies: 0
    Last Post: 01-11-2012, 11:57 AM
  4. Lookup Value based off Data Validation List / Populate Form
    By snake10 in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 03-22-2009, 02:57 PM
  5. [SOLVED] how to automatically populate cells using lookup tables
    By felipe in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 04:05 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