+ Reply to Thread
Results 1 to 4 of 4

Find number and delete until tje number is not found above it

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Find number and delete until tje number is not found above it

    I want a macro to search column K for the number 0 (it has to search from the bottom up) and when it finds the last instance of 0 in that column then look at the row directly above it and if it contains 0 as well then delete the cells contents. When it then finds a cell above it that does not contain 0 I want it to delete the 0 and then stop the macro.
    Last edited by ScabbyDog; 02-24-2013 at 02:57 PM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Find number and delete until tje number is not found above it

    Give this a try:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Find number and delete until tje number is not found above it

    Thanks!!! Works great.

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Find number and delete until tje number is not found above it

    Thank you for the feedback!

    Have a Great Day!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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