+ Reply to Thread
Results 1 to 3 of 3

Search and find corresponding values between worksheets

Hybrid View

Rumplestiltskin Search and find corresponding... 01-10-2010, 06:40 PM
DonkeyOte Re: Search and find... 01-10-2010, 07:21 PM
Rumplestiltskin Re: Search and find... 01-10-2010, 07:45 PM
  1. #1
    Registered User
    Join Date
    01-10-2010
    Location
    Marietta, GA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Search and find corresponding values between worksheets

    Ok, here's the situation. I have a worksheet that is a master list of all employees with certain employee attributes in one worksheet. In another worksheet, I want to paste a list of employees with some other employee attribute, and then have it find those employees in the master employee worksheet and copy over certain bits of info from that row into this smaller subset worksheet.

    For example:

    Master worksheet - each row contains Employee name, department, office #, and SSN.

    Working sheet - I paste in employee name, manager name.

    It then finds each row in the master where the name matches, and grabs department and office# and copies them to the adjacent cells.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Search and find corresponding values between worksheets

    Could you not use a Pivot Table (Master Worksheet as source) - set those fields you wish to use as Filters as Report Filter fields - set other fields you wish to view as Row Labels etc...

    If in doubt - post a sample file (dummy confidential info likes names & tel. nos etc...) - outline desired results.

    EDIT: on re-reading your post I don't think the PT will suffice given you have pre-determined ee list for whom you wish to retrieve info... apologies
    Last edited by DonkeyOte; 01-10-2010 at 07:28 PM.

  3. #3
    Registered User
    Join Date
    01-10-2010
    Location
    Marietta, GA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Search and find corresponding values between worksheets

    No worries, I started working on my search capabilities instead of my Excel function capabilities and found a thread that gave me what I needed. I'm not much of an Excel user, but sometimes I know it will do what I need, as long as I can find the right functions/macros. What I really wanted to do was compare two attributes from the two worksheets, and just have some sort of flag if the two didn't match. So given a particular employee entry in worksheet 1, I wanted to copy over a particular attribute from the master to the working worksheet, then compare those two cells.

    This copies it over:
    =IF(ISNA(VLOOKUP(A2,Master!$A$2:$C$23,3,FALSE)),"No match",VLOOKUP(A2,Master!$A$2:$C$23,3,FALSE))


    And then I compare:
    =IF(B2=D2,TRUE,FALSE)

    I then sort the temp spreadsheet and work the with exceptions to fix the issue. It's not the most elegant solution, but it gets the job done.
    Last edited by Rumplestiltskin; 01-10-2010 at 07:53 PM.

+ 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