+ Reply to Thread
Results 1 to 10 of 10

Macro to match 2 sets of data cell by cell

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Macro to match 2 sets of data cell by cell

    Morning,

    I have 2 sets of data in seperate sheets, i need to create a macro to check the data is the same in both sheets and any data that doesn't match to highlight the data. I have attached the sample data.

    I need the macro to;

    - Use 'Stock' column to identify the data
    - Run a check on the data across both files and ensure each case contains the same data like for like.
    - Create a summary of rows checked & number of rows on the data
    - Create a new sheet of cases that don't match and highlight the cells of data that haven't matched.

    Is anybody able to help on this at all or give me some pointers?

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Macro to match 2 sets of data cell by cell

    'bump - no repsonse'

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro to match 2 sets of data cell by cell

    How do we handle this? -
    Run a check on the data across both files and ensure each case contains the same data like for like.
    After stock column is checked in both files, which are the other columns to be checked? Both the data sets have different kind of info other than the stock column.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Macro to match 2 sets of data cell by cell

    The column headers in row 1 are all the same across both spreadsheets.

  5. #5
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Macro to match 2 sets of data cell by cell

    bump - no response

  6. #6
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Macro to match 2 sets of data cell by cell

    Is anyone able to advise on this at all, is it possible?

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro to match 2 sets of data cell by cell

    Quote Originally Posted by kenadams378 View Post
    The column headers in row 1 are all the same across both spreadsheets.
    The headers in both the files that you attached are different from each other.

  8. #8
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Macro to match 2 sets of data cell by cell

    They are in a different order but the header text will be the same across both files in row 1

  9. #9
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Macro to match 2 sets of data cell by cell

    Do you need the column headers to be in the same order?

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro to match 2 sets of data cell by cell

    If that can be done, it will make the copy paste very easy.

    Even if the order is not the same, the macro can be created but it will be a lil longer one, since we have to copy column by column.

+ 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