+ Reply to Thread
Results 1 to 5 of 5

Delete the rows if condition match

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Delete the rows if condition match

    hello
    i have data in range A1:A200, i want to delete the entire rows if condition met

    i want if cell("P2").value = < 43 than delete the entire rows from a51:a200

    i want if cell("P2").value = < 85 than delete the entire rows from a100:a200

    i want if cell("P2").value = < 127 than delete the entire rows from a149:a200


    thanx alot

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

    Re: Delete the rows if condition match

    A value of 5 is less than 43. It is also less than 85 and less than 127. Or do you mean this?

    Please Login or Register  to view this content.

  3. #3
    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 the rows if condition match

    Please Login or Register  to view this content.

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

    Re: Delete the rows if condition match

    Maybe:

    Please Login or Register  to view this content.
    Question what does Range("A1:200") have to do with the rows deletion if the condition is P2?

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Delete the rows if condition match

    hello ALL OF You

    all method is working

    thanx a lot all

    will add reputation

+ 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] Delete Rows with condition
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2014, 05:12 PM
  2. [SOLVED] delete certain rows VBA - with condition and containing zero
    By kamran_ijazz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2012, 06:08 AM
  3. [SOLVED] Delete the entire row if condition didn't match
    By sunheroj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2012, 04:08 PM
  4. Delete Rows If condition not met
    By Pasha81 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-17-2009, 02:48 PM
  5. [SOLVED] how do I delete all rows that match a condition?
    By djhs63 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2005, 12:06 PM

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