+ Reply to Thread
Results 1 to 3 of 3

MACRO or FUNCTION that deletes entire rows, if containing specific words.

  1. #1
    Registered User
    Join Date
    04-03-2017
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    94

    Unhappy MACRO or FUNCTION that deletes entire rows, if containing specific words.

    I have this big excel-sheet with a lot of rows and coloumns. I need to delete specific rows, if they contain specific words.

    Ex.

    I need to delete all rows containing the words "jep" and "elp". Is this possible through either a function or a macro? Is there a way to do it, so it doesnt mess with the format of the other cells, now that there are rows missing? (I have a lot of functions in all of the cells)

    A B C D E F G H I J
    1 jep
    2 jep
    3 alp
    4 elp
    5 felp
    6
    7
    8 felp
    9 telp
    10 elp


    THANKS!

  2. #2
    Registered User
    Join Date
    04-03-2017
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    94

    Re: MACRO or FUNCTION that deletes entire rows, if containing specific words.

    If Im going to use VBA, I need the button to be in ex sheet1, but the rows that have to be deleted is in sheet2

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

    Re: MACRO or FUNCTION that deletes entire rows, if containing specific words.

    In your sample would "telp" and "felp" rows be deleted?

+ 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. Is there a formula or function that deletes a set of words?
    By jtmann in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-16-2017, 10:45 AM
  2. [SOLVED] Delete entire row for specific words
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-01-2015, 07:43 PM
  3. [SOLVED] Macro delete rows containing specific words
    By mcranda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2013, 05:14 PM
  4. [SOLVED] How to write a macro that deletes specific rows?
    By Kristof088 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2013, 09:11 AM
  5. Replies: 1
    Last Post: 07-13-2012, 08:17 AM
  6. Creating Excel Macro That Deletes Entire Row with Specific Text
    By Efar68 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2011, 04:33 AM
  7. Useful code that deletes entire rows based on formatting
    By Ralfie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2007, 01:02 PM

Tags for this Thread

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