+ Reply to Thread
Results 1 to 6 of 6

Compare multiple columns in two different spreadsheets

  1. #1
    Registered User
    Join Date
    09-11-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    3

    Compare multiple columns in two different spreadsheets

    I have two spreadsheets and each has three columns in particular in column: User, Section and Department. On one sheet there might be cases where the section and department associated with the user don't match with the section and department associated with the user on the other sheet. Fore example:
    Sheet A (correct info)

    User Section Department
    John Smith IT Customer Service

    Sheet B (Incorrect info)
    John Smith IT Infrasctructure

    I need to find a way to run a comparison between the two sheets so I can find where the discrencies are. Is there a formula that will do this? Any help you give would be appreciated. Thank you.

  2. #2
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Compare multiple columns in two different spreadsheets

    I'd use a VLOOKUP on this, for columns B and C
    i.e. (IN COLUMN D)
    =IF(OR(VLOOKUP(A1,SHEET2!A1:C500,2,FALSE)<>B1,VLOOKUP(A1,SHEET2!A1:C500,3,FALSE)<>C,"ERROR","")

    This will check each on and let you know which have errors.

    Hope this helps.

    -Z

  3. #3
    Registered User
    Join Date
    09-11-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    3

    Re: Compare multiple columns in two different spreadsheets

    Thank you for the formula but I'm apparently messing it up. I'm not much of an excel person and this was just dumped on me. Here are samples from the spreadsheets in question. Can you help clarify?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Compare multiple columns in two different spreadsheets

    Look at the formulae in added columns C and E.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-11-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    3

    Re: Compare multiple columns in two different spreadsheets

    Thank you! it worked beautifully!

  6. #6
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Compare multiple columns in two different spreadsheets

    Glad I could be of service.

    -Z

+ 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. Replies: 0
    Last Post: 07-17-2014, 10:06 AM
  2. VBA multiple criteria compare: 2 spreadsheets each with 3 columns
    By g0nz0 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2012, 06:03 PM
  3. Macro to compare multiple columns between 2 spreadsheets based on a single reference
    By chandra79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2012, 11:13 AM
  4. Replies: 5
    Last Post: 01-06-2012, 04:15 AM
  5. compare 3 columns from two spreadsheets
    By naeem12 in forum Excel General
    Replies: 1
    Last Post: 03-02-2010, 10:00 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