+ Reply to Thread
Results 1 to 7 of 7

Searching, matching & retrieving info from list to autofill other cells when match found

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Searching, matching & retrieving info from list to autofill other cells when match found

    Hi: This is my first post, and hope that I can explain my problem clearly.

    I have a list of 64 bowlers with ID numbers, names, and bowling averages in cells A1:A64 (ID#s) , B1:B64 (Names), and C1:C64 (Averages) in an Excel list. I have another worksheet with blank cells starting with cells A75 (ID#); B75 (Name); and C75 (Avg) that needs to have the correct information for each bowler automatically fill cells B75 (name) and C75 (average) when the bowler's ID number is entered in cell A75. Please help me with a formula that will search for the ID# that matches the ID# entered into ID# cell of the blank worksheet, and when the matching ID number is found, the name and average of that particular bowler will automatically fill the corresponding cells.

    I have tried Vlookup and If/Then, but can't make them work correctly. The next sentence helps explain what I need the formula to achieve:

    If the ID# entered into cell A75 = "1", then bowler #1's name and average information is retrieved from the bowlers' list and fills in cells B75 and C75. If the ID# entered does not = "1", then search the list for the matching ID# of "2", or "3", ... "64" until a match is found. When the matching bowler's ID# is found, the name and average information for this bowler is retrieved and fills in their respective cells.

    I really hope this is clear! Thank you in advance to all who work on this formula. Jan

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Searching, matching & retrieving info from list to autofill other cells when match fou

    vlookup WILL work for this, if the player ID is to the very left of your data. if its not, then try using index/match. vlookup works as follows...

    =VLOOKUP(what-you-want-to-find,range-to-search-in,column-that-contains-the-match,FALSE) FALSE is for finding an exact match

    if you still cant get it to do what you want, upload the workbook (or a sample) and i will help you onto the right track
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Searching, matching & retrieving info from list to autofill other cells when match fou

    Thank you so much for your reply. Please tell me in which cell I need to place the Vlookup formula. I want to be able to type in the ID# and have the additional information fill in automatically, so I have tried to put the formula in the same cell where I would type in the ID# I want matched; but, obviously, this did not work. I have attempted to put the formula in the name cell and the average cell, but this isn't right either. I tried putting the formula in a completely separate cell unattached to my draft worksheet just to try and get it to work, but to no avail.

    Am I taking the wrong approach here?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Searching, matching & retrieving info from list to autofill other cells when match fou

    in B75, try this....
    =VLOOKUP(A75,$A$1:$C$64,2,FALSE) that should give you the name
    in C75
    =VLOOKUP(A75,$A$1:$C$64,3,FALSE) that should give you the average

    if that doesnt work for you, please upload a sample workbook so i can see your data?

  5. #5
    Registered User
    Join Date
    08-03-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Searching, matching & retrieving info from list to autofill other cells when match fou

    Hi: I guess you know that you are my new hero!!

    Ok, I have been able to make the formula work for the first person's name and average; however, I cannot retrieve any other bowler's information. Will you please advise how to upload the worksheets so you can see what I am doing wrong?

    Thank you. Jan

  6. #6
    Registered User
    Join Date
    08-03-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Searching, matching & retrieving info from list to autofill other cells when match fou

    Thank you, FDibbins and EXcel Forum!! My draft worksheet works perfectly! I could not have completed this and had it work so well without your help. Thank you again!! Jan

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Searching, matching & retrieving info from list to autofill other cells when match fou

    @ Jan Cole

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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