+ Reply to Thread
Results 1 to 5 of 5

Delete all rows containing a particular cell value.

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    Lake Geneva, WI USA
    MS-Off Ver
    2007
    Posts
    16

    Delete all rows containing a particular cell value.

    I would like to remove all rows that have the text "contest" in column D.

    Thanks for any help,
    Doug

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Delete all rows containing a particular cell value.

    Hi,

    Simplest way is to filter the column for the word 'contest' in column D, select all the rows, hit the delete button and remove the filter.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Delete all rows containing a particular cell value.

    You may try the following code to follow what Richard has suggested to you.....
    Please Login or Register  to view this content.
    Hope this helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    03-12-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Delete all rows containing a particular cell value.

    Hello Doug24,

    Rename the sheet name as appropriate and paste the below code on a fresh module.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-01-2014
    Location
    Lake Geneva, WI USA
    MS-Off Ver
    2007
    Posts
    16

    Re: Delete all rows containing a particular cell value.

    Thanks for all the help. The first two suggestions worked great and I'm going to try the "code" right now.

    Doug

+ 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] Find row cell containing specific text, then delete all rows ABOVE that cell
    By ks100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2013, 02:02 PM
  2. [SOLVED] Delete rows if any cell in Sheet 1 rows matches any cell in Sheet2 column
    By newbie88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2012, 10:26 AM
  3. Delete Rows by Cell Value - Delete sheets w/out prompt
    By Jimmydageek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2010, 02:03 PM
  4. Delete rows where active cell is selected without hardcoding cell
    By alexfortin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-19-2009, 06:58 PM
  5. Delete Rows based on cell value and then Insert rows alternatively with a formula
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2008, 04:27 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