+ Reply to Thread
Results 1 to 2 of 2

Macro to clear row data then shift remaining data up to empty rows.

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Macro to clear row data then shift remaining data up to empty rows.

    Tried searching for this but not sure if it was ever attempted. I'm looking for advice on the following: I'd like to have a sheet with multiple columns of data (say A thru K for instance.). Id like to reserve column A for ONLY imputing an X. The rest of the columns b-K would have data in the cells. I'd like to have a macro that when it saw an X in column A, would copy all of the data in cells B-K in that row, paste it into the next empty row of a second sheet (for history tracking), then go back to the original sheet and continue looking for additional "X"'s and repeat. Once all of the X's were copied, it would "clear" (Not delete because some of the cells would have formulas in them that would need to remain for future use.) the cells based on the "X" then finally move all of the remaining data up to the empty rows to fill in the empty rows. This last piece would be more for esthetics to have a clean looking sheet. Does anyone have any ideas on this that they could share?

  2. #2
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Macro to clear row data then shift remaining data up to empty rows.

    Try this...

    1) It copies all "x" rows to Sheet2
    2) It deletes all "x" rows from Sheet1

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 7
    Last Post: 11-15-2013, 08:18 AM
  2. Macro To Copy Data And Shift Rows Up Of Multiple Colums
    By kany in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2013, 04:21 AM
  3. [SOLVED] Macro to sort data in spreadsheet but maintain empty rows between data.
    By vzc8 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-12-2012, 12:31 AM
  4. Delete empty cells and shift remaining left
    By kiboodez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2010, 02:17 PM
  5. Shift data into empty cells?
    By rdoty in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2010, 02:01 PM

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