+ Reply to Thread
Results 1 to 4 of 4

Using VLOOKUP to compare values in two workbooks and get a TRUE/FALSE in third

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2016
    Posts
    24

    Using VLOOKUP to compare values in two workbooks and get a TRUE/FALSE in third

    Hello,
    I am trying to compare values in two workbooks (weekly output from two different systems) to compare the values and give me a Match/No Match in third. The first column has the unique identifier and there are a number of fields which are compared individually and finally give me a match when all values are identical. The attached file has a manually identified field values, but I'm hoping this can be done with a formula.
    Thank you in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Using VLOOKUP to compare values in two workbooks and get a TRUE/FALSE in third

    in B2
    =IF(VLOOKUP($A2,SheetA!$A$2:$D$1000,COLUMN(),0)=VLOOKUP($A2,SheetB!$A$2:$D$1000,COLUMN(),0),"","No ")&"Match"
    copy across to column D and down
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

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

    Re: Using VLOOKUP to compare values in two workbooks and get a TRUE/FALSE in third

    since I worked on this, I'll post my solution but it may not be needed ...
    IF(VLOOKUP($A2,SheetB!$A$2:$D$6,COLUMN(B$1),FALSE)=VLOOKUP($A2,SheetA!$A$1:$D$6,COLUMN(B$1),FALSE),"Match", "No Match")
    can be dragged right and down.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

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

    Re: Using VLOOKUP to compare values in two workbooks and get a TRUE/FALSE in third

    @Special-K, like that version of
    COLUMN()
    see how it is used and like it better than my version - where it is appropriate of course.

+ 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/Contrast numbers to return True/False?
    By Frozin_Ice in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2018, 01:30 PM
  2. Replies: 3
    Last Post: 08-16-2018, 06:07 AM
  3. Replies: 5
    Last Post: 05-11-2016, 12:09 AM
  4. Compare dates and return true or false
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2014, 04:00 PM
  5. Replies: 6
    Last Post: 11-13-2014, 11:26 AM
  6. Two lists to compare in one worksheet and requiring a True/False Outcome
    By laura21_1983 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2012, 12:23 PM
  7. Compare two excel files and display true or false
    By sravanthi009 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-01-2011, 11:36 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