+ Reply to Thread
Results 1 to 4 of 4

Need Macro which compares the values between the rows in excel

  1. #1
    Registered User
    Join Date
    12-10-2011
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    56

    Need Macro which compares the values between the rows in excel

    Hi All,

    I need a macro which compares the values between the rows in excel and produce the output which contains only the different values. Please refer the excel sheet for more details.
    Attached Files Attached Files

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need Macro which compares the values between the rows in excel

    This can be done without a macro.

    With Sheet2
    In A2
    Please Login or Register  to view this content.
    Drag/Fill Down

    In B2
    Please Login or Register  to view this content.
    Drag Across to Column G, then Down as required.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor
    Join Date
    04-14-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Need Macro which compares the values between the rows in excel

    Hi Marcol,

    I dnt really see what your solution is doing,
    I thought only the difference will be displayed?
    What exactly are you comparing?

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need Macro which compares the values between the rows in excel

    @ slxia1
    I thought only the difference will be displayed?
    That is what I think it does.

    It takes the IDs from Sheet1 into Sheet2, then compares the differences in the rows in Sheet1 where there are duplicate IDs.
    If there are differences, they are returned for each row, if not the cell is blank.
    Last edited by Marcol; 04-14-2012 at 06:50 AM.

+ 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