+ Reply to Thread
Results 1 to 2 of 2

Deleting a row with a specified value

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Deleting a row with a specified value

    Hey,

    I'm trying to save time from having to sort through a large excel document and manually delete rows that contain a specified value.

    For example, if I want to delete the row in which the world "love" appears how would I do that efficiently?

    I've tried researching the answer and most answers suggest to implement a (macro?)code however I have no idea how to do that. If someone could provide a working code with instructions that would be greatly appreciated.

    FYI I'm using Excel 2003.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Deleting a row with a specified value

    Assuming this is a database, title in row1, data in rows2 downward with no blank rows in between anywhere, then this is actually very easy to do.

    1) Click on row1
    2) Turn on the Data > Filter > AutoFilter
    3) Use the drop down for the correct column to do a Custom filter for "contains love"
    4) All the rows without "love" in that column will hide.
    5) Highlight and delete all the remaining rows.
    6) Turn off the autofilter


    AutoFilter is one of those "game-changing" features, once you start fiddling with it and see all it can help you with, many things change for you, for the better.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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