+ Reply to Thread
Results 1 to 4 of 4

How To Compare Two Excel Sheets & Get Desired Result In Third Sheet!!

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    BMI
    MS-Off Ver
    Excel 2003
    Posts
    10

    Question How To Compare Two Excel Sheets & Get Desired Result In Third Sheet!!

    Hi All,
    I have two excel sheets in one excel workbook and it has the following data. I like to compare them in such a way that if their "First Name" and "Last Name" Columns match then I need to get 3rd Columns (Instance & Device Columns) from both files in one file and ignore the names whose "First Name" and "Last Name" did not match

    The only caveat I have is that "Last Name" column in one file has "hyphen -, Apostrophe' " AND other file does not have it but I need those names in my final file since they are exactly the same name its just one file has "hyphen -, Apostrophe" and other file does not have it.
    I was thinking of making up a Unique key by picking up the name in the "First Name" Column + "first three letters" from Last Column

    Enclosed file is attached with the sample Sheets
    Sheet 1 & Sheet 2 has the data and Sheet 3 has the final result


    I will really appreciate your help

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-27-2013
    Location
    BMI
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: How To Compare Two Excel Sheets & Get Desired Result In Third Sheet!!

    Also putting the sample in the thread itself

    Sheet 1
    FirstName LastName Instance
    Ray Allen bic1
    Steve Smith bic2
    Ian MacDonald bic1
    Jean DyeLand bic3
    Mike Aaron bic3

    Sheet 2

    FirstName LastName Device
    Ray Allen Computer
    Steve Smith Laptop
    Ian Mac-Donald Iphone
    Jean Dye'Land Ipod
    Tim Mark Samsung

    Desired Result Sheet 3


    FirstName LastName Instance Device
    Ray Allen bic1 Computer
    Steve Smith bic2 Laptop
    Ian MacDonald bic1 Iphone
    Jean DyeLand bic3 Ipod

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    BMI
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: How To Compare Two Excel Sheets & Get Desired Result In Third Sheet!!

    Also putting the sample in the thread itself

    Sheet 1
    FirstName LastName Instance
    Ray Allen bic1
    Steve Smith bic2
    Ian MacDonald bic1
    Jean DyeLand bic3
    Mike Aaron bic3

    Sheet 2

    FirstName LastName Device
    Ray Allen Computer
    Steve Smith Laptop
    Ian Mac-Donald Iphone
    Jean Dye'Land Ipod
    Tim Mark Samsung

    Desired Result Sheet 3


    FirstName LastName Instance Device
    Ray Allen bic1 Computer
    Steve Smith bic2 Laptop
    Ian MacDonald bic1 Iphone
    Jean DyeLand bic3 Ipod

  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
    53,050

    Re: How To Compare Two Excel Sheets & Get Desired Result In Third Sheet!!

    Take a look at the attached and see if this is something you can work with?
    Attached Files Attached Files
    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

+ 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. Two sheets compare multiply and give result
    By ursanil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 08:58 AM
  2. Compare sheets with highlighting result (pls. Help with the source)
    By mariposa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2011, 08:38 PM
  3. Replies: 0
    Last Post: 07-14-2011, 11:21 AM
  4. Compare multi Columns in Different Sheets and Post it result on a 3rd sheet
    By steven.demei in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2011, 07:18 AM
  5. wud like 2 open the w.book of 12 sheets with my desired sheet?
    By Shariq in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2006, 12:55 AM

Tags for this Thread

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