+ Reply to Thread
Results 1 to 8 of 8

Compare and move

  1. #1
    Registered User
    Join Date
    11-02-2007
    Posts
    29

    Compare and move

    Hello, I have a spreadsheet where I need to move unique data that exists on Sheet2 that doesn't exist on Sheet1. It is a spreadsheet to keep track of RMA's and the unique identifier is located in Column A on both sheets.

    I do have code from another workbook that compares cells existing on 2 worksheets and then highlights the cell that is unique yellow or not unique to Red. How can I change the code to move the unique cell to the other sheet instead of highlighting it. Thanks.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Compare and move

    HI,

    This code is based on the "Sample" workbook you provided.
    Copy to a module.

    Please Login or Register  to view this content.
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Registered User
    Join Date
    11-02-2007
    Posts
    29

    Re: Compare and move

    Hi Charles, thanks for replying. The code you provided works for when the 2 sheets have a matching cell, is there anyway to change this so when a cell does not match it will copy the data over to the other worksheet?

    thanks again!

  4. #4
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Compare and move

    Hi,

    Are you wanting to move data if match as well as no match?

  5. #5
    Registered User
    Join Date
    11-02-2007
    Posts
    29

    Re: Compare and move

    Quote Originally Posted by Charles View Post
    Hi,

    Are you wanting to move data if match as well as no match?
    Only if it doesn't match.

  6. #6
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Compare and move

    Hi,

    This code goes down the list in the Maste to see if the data is in the base if not copy master to base.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-02-2007
    Posts
    29

    Re: Compare and move

    One word BRILLIANT.

    That is awesome, thank you very much!!!!!

  8. #8
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Compare and move

    You are welcome, and thanks for letting me know.

+ 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