+ Reply to Thread
Results 1 to 10 of 10

Find date and delete all below 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 date and delete all below it

    I have the below which doesn't work for some reason. I want it to find the date in P1 in column B and when it finds the date that will be in P1 to delete that row it finds it on and all rows below it.

    Please Login or Register  to view this content.
    Last edited by ScabbyDog; 03-25-2013 at 12:41 PM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find date and delete all below it

    Maybe:

    Please Login or Register  to view this content.

  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 date and delete all below it

    Thanks for the quick reply John. Doesn't work though. Does the fact that P1 is a formula matter?

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

    Re: Find date and delete all below it

    It runs John. But it only deletes one row one row instead of all the rows below.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find date and delete all below it

    No it shouldn't matter. Can you post a spreadsheet with some sample data to test on?

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

    Re: Find date and delete all below it

    sample.xlsm

    There you go.

    Thanks.

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find date and delete all below it

    I tried it on your sample, and it doesn't work either. When I created some data it worked. I think it may have problems with your custom formats. I can't figure this one out.

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

    Re: Find date and delete all below it

    You can alter column B and set it to whatever format you want, same with P1. Does that help?

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

    Re: Find date and delete all below it

    Anyone else know why the sample sheet above does not work?

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find date and delete all below it

    This seems to work, but it messes up the formula's you have in Column I.

    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)

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