+ Reply to Thread
Results 1 to 2 of 2

Deleting Entire rows thorughout the whole data set

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    Deleting Entire rows thorughout the whole data set

    Hello,

    Basically I need to remove lots of rows from a transaction report on a regular basis. I have attached an example of how it looks. I do have a macro that I quickly entered but this only seems to remove parts and as a result throws the whole file out of sync.

    I only need to keep the entire row on cases where it has a date in Column A. All relevant data in the next two rows (without a date - and before the next date) are useless to the report I compose so I need the entire workbook to have them removed.

    I have attached a before and after snippet to show how I need it to look. The 'before' attachment is exactly what I receive from our ancient accounts system. The 'Final' attachment is ideally how it needs to look in the end.

    Thankfully the transaction output I get each week is always in the same format - just with varying rows depending on how many transactions are made within a specified time period. So ideally I need a macro that will work regardless of how many rows of data there may be.

    Any help would be greatly appreciated..
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Deleting Entire rows thorughout the whole data set

    It seems that what appear to be blank cells in column A are not blank. They contain spaces which of course are not visible. Therefore, the following macro first removes the spaces and then deletes all the blank lines.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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. Deleting entire rows when a cell in that row contains #N/A
    By colin.dickson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2012, 10:13 AM
  2. VBA for deleting entire rows
    By TheTalentedMrRipley in forum Excel General
    Replies: 3
    Last Post: 11-04-2010, 07:31 PM
  3. Deleting rows based on max value in entire row
    By form in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2010, 09:27 AM
  4. Deleting Entire Rows Containing a Specific Value
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2007, 08:22 PM
  5. Deleting Entire Rows
    By gavsta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2005, 12:45 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