+ Reply to Thread
Results 1 to 3 of 3

Conditional deleting and copy and pasting

  1. #1
    Registered User
    Join Date
    01-14-2011
    Location
    Gig Harbor, WA
    MS-Off Ver
    Excel 2010
    Posts
    24

    Conditional deleting and copy and pasting

    I've got a tricky project going on. I am importing sorting and analyzing real estate properties. The attached file will give you a good idea of what it looks like. Sample.xlsx This is an ongoing project so I have started with a list of all active properties I want to analyze. The next day I import any properties that have had changes to them. Some have gone pending (received an offer), some have had price changes, etc. I end up with several duplicates. Some of which need to be updated and some of which need to be deleted all together.

    What I need is a macro to recognize that if column A and B are the same in rows 1 and 2, then cut and paste row 2 columns A through T to row 1 columns A through T. Then do the same for rows 3 and 4 etc. If Column A is not the same and Column B is the same (See rows 5 and 6 in the Sample) then I need it to delete rows 5 and 6, columns A through T.

    What do you think!!!???

    Thanks in advance!
    Last edited by redkilner; 08-08-2013 at 06:55 PM. Reason: More thorough explanation.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Conditional deleting and copy and pasting

    Hi,
    If I understood correctly, this should work.
    Code will copy result in sheet2 (create sheet first) or remove the comments at the end of the code to replace data in sheet 1

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-14-2010
    Location
    Macau
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Conditional deleting and copy and pasting

    Hi,
    Please try this !
    Please Login or Register  to view this content.

+ 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. copy pasting a conditional formula for calculating time
    By jellyfish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-18-2012, 10:46 PM
  2. Copy & Pasting & Conditional Formatting
    By Barking_Mad in forum Excel General
    Replies: 2
    Last Post: 09-15-2009, 05:15 AM
  3. Copy & Pasting Conditional Formats (Excel 07)
    By flib in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2008, 04:12 PM
  4. Selecting Active Rows after autofiltering copy, pasting and deleting
    By mopatz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2008, 12:41 PM
  5. Conditional copy and pasting
    By maxwell13 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 06-13-2007, 10:02 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