+ Reply to Thread
Results 1 to 3 of 3

Compare 2 work sheets and return YES or NO

  1. #1
    Registered User
    Join Date
    05-08-2018
    Location
    Chennai
    MS-Off Ver
    365
    Posts
    34

    Compare 2 work sheets and return YES or NO

    Hi Need a help,
    Apply Vlook between sheet 1 and Sheet 2
    compare col J in both sheets
    If there is matching record, enter "yes" in column X(Flag) of Sheet1. If not matching , enter "No"
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,964

    Re: Compare 2 work sheets and return YES or NO

    If you compare column J in both sheets you will get a 'No' in every row as column J contains very different data between the two sheets.
    Also, 'Flag' in your example workbook is column V not X as stated. However, if you enter the below formula in V2 on Sheet1 and copy down you will get your desired outcome:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    BSB

  3. #3
    Forum Contributor
    Join Date
    03-28-2018
    Location
    Houston, TX
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    127

    Re: Compare 2 work sheets and return YES or NO

    Please take a look at your sheets, because there is no fair comparison between column J in both sheets. Maybe you mean column I in Sheet1 and column K in Sheet2. Also, the flag is in column V instead of X. It sounds like you just want an =IF(ISERROR(VLOOKUP())) formula. It will look something like this (but you will need to correct the columns): =IF(ISERROR(VLOOKUP(J2,Sheet2!$J:$J,1,0)),"No","Yes")

    You would put this formula (with corrected column references) in cell V2 and then paste it down.

+ 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. compare 2 work sheets and return value
    By marimuthuravi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-01-2018, 04:26 AM
  2. [SOLVED] compare 2 work sheets and return YES or NO
    By marimuthuravi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-26-2018, 07:24 AM
  3. Compare two work sheets
    By malarvel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2016, 07:36 AM
  4. Replies: 1
    Last Post: 08-25-2016, 11:19 AM
  5. Look up and compare value in two work sheets
    By wintheranders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2013, 04:43 AM
  6. Replies: 7
    Last Post: 02-28-2009, 06:19 PM
  7. compare text and update different work sheets
    By mailboxsurya in forum Excel General
    Replies: 0
    Last Post: 05-06-2005, 10:31 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