+ Reply to Thread
Results 1 to 6 of 6

delete after specific value in column

  1. #1
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    delete after specific value in column

    Hi,

    I am trying to delete all rows below a specific point in my data. I would like a macro to find the last value in column I that is greater than 0 and then delete all rows that follow that value. Can it be done?

    Thanks

    Z

  2. #2
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: delete after specific value in column

    May be:
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: delete after specific value in column

    For what its worth it would be more efficient to start at the last row and go up until you find the first value > 0.

    Edit: You can also do this without a loop
    Please Login or Register  to view this content.
    Last edited by stnkynts; 08-04-2016 at 10:31 AM.
    If you are happy with my response please click the * in the lower left of my post.

  4. #4
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    Re: delete after specific value in column

    Thanks both, I have moved on a little since this post and tried to combine two macros so that the copy and paste is done first then delete out anything below the last value that is greater than 0 in column I. Any idea how to combine the two?

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: delete after specific value in column

    @stnkynts, Brilliant idea.
    @zak.horrocks, you could use this.
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: delete after specific value in column

    You can append this code below your code
    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. [SOLVED] How to delete specific row that has no specific column data? Help!
    By windtalkers26 in forum Excel General
    Replies: 1
    Last Post: 11-11-2015, 01:23 PM
  2. Delete Rows with specific text in specific column
    By love2waltz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2015, 10:16 AM
  3. Delete rows with specific text in column
    By danieldaniel1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2013, 12:47 PM
  4. [SOLVED] Delete Row with Certain Value in Specific Column
    By lsteinbach in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2013, 01:50 PM
  5. Find and delete non specific text in a column
    By John Brooks in forum Excel General
    Replies: 2
    Last Post: 12-06-2011, 11:53 AM
  6. How to delete a specific column ?
    By Bobster0007 in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 09-28-2011, 09:45 PM
  7. Delete Row if Specific Word in Column A
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2009, 07:39 AM

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