+ Reply to Thread
Results 1 to 3 of 3

Compare Two Worksheets and give the Difference

Hybrid View

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    every where
    MS-Off Ver
    Excel 2003
    Posts
    34

    Compare Two Worksheets and give the Difference

    Hello Everybody
    I want to compare the two worksheets and after comparison it must gives the difference in the third worksheet, Although its the cross post because i need it really badly, the cross post link is here, http://www.ozgrid.com/forum/showthread.php?t=170048
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    860

    Re: Compare Two Worksheets and give the Difference

    Try it,

    Sub hsv()
    Dim cl As Range, c As Range
    With Sheets(1)
     For Each cl In .Range("C4:C" & .Cells(Rows.Count, 3).End(xlUp).Row).SpecialCells(12)
       Set c = Sheets(2).Columns(3).Find(cl, , xlValues, xlWhole)
        If c Is Nothing Then
       Sheets(3).Cells(Rows.Count, 2).End(xlUp).Offset(1) = cl
        End If
       Next cl
     End With
    End Sub
    Last edited by HSV; 09-23-2012 at 04:49 PM. Reason: Visible cells
    Harry.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Compare Two Worksheets and give the Difference

    option, please check attachment, press Run
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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