+ Reply to Thread
Results 1 to 5 of 5

Deleting non absolute rows of data...

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Deleting non absolute rows of data...

    Hi All,

    My first post so hopefully I will get the information I require

    I have been updating a report weekly for over 7 months, however one section of the report takes me just over an hour to complete, I will try my best to explain it below (with supporting image)

    I grab a data dump which is approx 4000 rows long, however in order to prepare the data for the pivot table I need to delete 3 rows of data in between the multiple teams, (Total Sum, TM Name1, Title (highlighted in yellow)) so at present I am basically highlighting the 3 rows, right clicking and deleting the cells so they join up with no blank rows present.

    I would be able to create a macro however that would only depend if the data dump lines up correctly from the previous extract, and WoW it doesn't as the teams are alligned by low to high %'s, so the cells will always change, hence the macro will be deleting the wrong data.

    Does anyone know a way in which I can perform this task?

    untitled.PNG

    Thanks,
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by longie1985; 07-03-2013 at 03:43 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Deleting non absolute rows of data...

    Longie,
    It could be done by a macro(code). Please attach a sample book, not a picture as I can not test the code on picture. To attach a sample, go to advance then attachment.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Deleting non absolute rows of data...

    Hello and welcome to Ogrid.

    In future threads, always post a sample workbook (fake data) to make it easier to provide an accurate solution.

    Try adapting this and always test code on a back up copy of the workbook.
    This code uses a helper column to facilitate autofilter by testing if values in column-A contain any of the three criteria you mentioned. If they do, then the formula returns TRUE and is the fitler criteria.

    Note: this code *IS NOT* tested.

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    11-06-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Deleting non absolute rows of data...

    Hi Both,

    I have attached the test data, and also attached an image of the error code I received back from the code above, your support is very much appreciated on this,

    Thanks
    Longie1985

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Deleting non absolute rows of data...

    Since you do not have heading in row 1, the code first insert a blank row for filtering. If your actual data have a header we need to delete that line
    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)

Tags for this Thread

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