+ Reply to Thread
Results 1 to 2 of 2

compare two columns and extract the information

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    compare two columns and extract the information

    Hi

    I have a project where i have 2 spreadsheets with clients names on and i want to compare both sheets and see if the same names appear on both sheets and if so i then want to get the information from sheet 1 into another sheet.

    So sheet 1 has the following information

    Cell E - First Name
    Cell G - Surname
    Cell AO - First line of address
    Cell AP - Second line of address
    Cell AQ - Third line of address
    Cell AS - Postcode
    Cell AT - Contact Number 1
    Cell AU - Contact Number 2
    Cell AV - Email.
    and a few other info i need to take and put into a spreadsheet in a certain order.

    So the first part of the problem i have is that i need to compare the names from sheet 1 and sheet 2

    Sheet 2

    Cell B has the clients name on combined.

    Can somebody help me with this.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: compare two columns and extract the information

    it sounds like you'll need a couple helper columns for that. For one, if your names appear on sheet2 as First Last, you can combine cells F1 and G1 this way =F1&" "&G1 then using this vlookup =IF(IFERROR(VLOOKUP(AZ1,'Sheet2'!B:B,1,FALSE),"")="","name not in sheet2",VLOOKUP(AZ1,'Sheet2'!B:B,1,FALSE)) this makes assumptions that you put the concatenate in col AZ of sheet1 and your names for comparison are in Sheet2 col B.
    (not tested but you can adjust it)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. [SOLVED] Compare information and extract if changed
    By bertrand82 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2012, 02:56 AM
  2. using VLOOKUP to compare 2 columns to find new information
    By Jessica in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. using VLOOKUP to compare 2 columns to find new information
    By Jessica in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. using VLOOKUP to compare 2 columns to find new information
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] using VLOOKUP to compare 2 columns to find new information
    By Jessica in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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