+ Reply to Thread
Results 1 to 10 of 10

Compare Sheets and find missing Rows

  1. #1
    Registered User
    Join Date
    12-21-2014
    Location
    chennai
    MS-Off Ver
    2010
    Posts
    37

    Compare Sheets and find missing Rows

    Hi Team,

    I need to compare two sheets on same workbook and find missing rows on which sheet and need to write in log (example : text file).

    Please advice how to do it?

    Thanks
    Anand R

  2. #2
    Registered User
    Join Date
    12-21-2014
    Location
    chennai
    MS-Off Ver
    2010
    Posts
    37

    Re: Compare Sheets and find missing Rows

    Sorry to add one info..


    if row count is not matches in any of the sheet then i need to write a log in text file on which sheet the rows are missing

    Please advice how to do it?

    Thanks
    Anand R

  3. #3
    Registered User
    Join Date
    12-21-2014
    Location
    chennai
    MS-Off Ver
    2010
    Posts
    37

    Re: Compare Sheets and find missing Rows

    hi team,

    Any luck?

    Thanks
    Anand R

  4. #4
    Registered User
    Join Date
    12-21-2014
    Location
    chennai
    MS-Off Ver
    2010
    Posts
    37

    Re: Compare Sheets and find missing Rows

    Hi Team,

    I have attached the excel document in this reply.

    Thanks
    Anand R
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Compare Sheets and find missing Rows

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-21-2014
    Location
    chennai
    MS-Off Ver
    2010
    Posts
    37

    Re: Compare Sheets and find missing Rows

    Hi,

    Thanks for you code.. it is working fine...

    But my requirement is that i need to get the missed rows and log into text files and saying that DB2 or Teradata rows are missing.

    Thanks
    Anand R

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Compare Sheets and find missing Rows

    Sorry I'm a little confused. Can you post a sample of what your Compare sheet should actually look like when the macro is run? Or am I still not getting it?

  8. #8
    Registered User
    Join Date
    12-21-2014
    Location
    chennai
    MS-Off Ver
    2010
    Posts
    37

    Re: Compare Sheets and find missing Rows

    Hi John

    PFA my sample document. In our scenerio, we have dynamic columns in each workbook and not specified to fixed number of columns. So we need dynamic used range columns to validate.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Compare Sheets and find missing Rows

    If sheets DB2 and TD will always have the same amount of columns then maybe this will work for you?

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    12-21-2014
    Location
    chennai
    MS-Off Ver
    2010
    Posts
    37

    Re: Compare Sheets and find missing Rows

    Hi John,

    BTW, how to log missing rows in text file for the above scenario?

    as per my understandings for the above code, you are comparing the 2 sheets TD and DB2 with value and assigning the value to compared sheet. But my requirement is that i need to get the missed rows and log into text files and saying that DB2 or Teradata rows are missing.

    Can you help on this?

    Thanks
    Anand R
    Last edited by anandrajagopal; 01-17-2015 at 11:01 AM.

+ 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. how to compare rows to find missing rows?
    By monkfunk in forum Excel General
    Replies: 14
    Last Post: 12-09-2013, 08:00 PM
  2. [SOLVED] Compare 2 sheets and add missing data from sheet2 to sheet 1 before certain row value
    By Risto85 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-03-2013, 09:40 AM
  3. [SOLVED] Compare Sheets Find Missing Data
    By ClarkKent88 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-08-2012, 01:51 AM
  4. compare and extract missing data from 2 sheets
    By BIGIFA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-29-2011, 11:40 AM
  5. compare cols to find missing IDs
    By TopDogDave in forum Excel General
    Replies: 5
    Last Post: 11-15-2010, 06:08 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