+ Reply to Thread
Results 1 to 7 of 7

delete/filter specific names terminations rows

  1. #1
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    delete/filter specific names terminations rows

    Hello

    I would like to delete a specific rows which contain certain names or termination names.

    This is what i have:
    photo 1.PNG


    and this is what i'd like to have:

    photo 2.PNG

    as you can see i'd like to delete for exemple all names that have the name 'amide' but also names that have 'amine' termination etc... so i'd like to delete the rows + the UTI and REF for each.

    Its basically filtering names and deleting them with their respective informaiton.


    Thank you i hope it was clear.

    please find attached the excel file
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: delete/filter specific names terminations rows

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: delete/filter specific names terminations rows

    it worked thank you!

    How can i add more names to delete ? for exemple i tried to add in the line :

    If LCase$(Cells(x(i) + 2, 1)) Like "*amide*" , "*amine*", "*formyl*", Then etc but it showed an error...

    Thanks

  4. #4
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: delete/filter specific names terminations rows

    Also, i'd like to delete all rows that contain "nitro", "yne", "ene" etc i've tried to write :

    If LCase$(Cells(x(i) + 2, 1)) Like "*amide*" Then
    ElseIf LCase$(Cells(x(i) + 2, 1)) Like "*amine*" Then
    ElseIf LCase$(Cells(x(i) + 2, 1)) Like "*yne*" Then
    etc...

    But it didn't work . I'd like to delete more names, not only the ones that contain 'amide'

    Thanks again !

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: delete/filter specific names terminations rows

    Try change to
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: delete/filter specific names terminations rows

    Thank you! it worked for me

  7. #7
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: delete/filter specific names terminations rows

    Sorry i might have another question. Now that i have this script :

    Please Login or Register  to view this content.
    Now instead of deleting all the terminations i'd like to keep then only them and deleting the rest with their respective Reference and UTI

    Thanks a lot
    Last edited by rosamoreno; 03-04-2021 at 11:26 AM.

+ 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. How to find specific work and delete next two rows also select range with specific words
    By priyadharshane in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2019, 03:08 AM
  2. [SOLVED] Delete Specific Names in Workbook with Loop
    By delaing in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-10-2016, 06:27 PM
  3. Delete rows of varying length in sheets with specific names
    By k0st4din in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-02-2015, 03:44 PM
  4. Delete specific suffixes from a list of company names
    By bsmizzle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2014, 08:09 AM
  5. Loop to search specific names in column and delete other rows
    By EJ_2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2013, 01:28 PM
  6. Delete Rows hidden by either Auto Filter and Advanced Filter
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:29 AM
  7. Delete & Merge Columns,Delete Rows with filter, etc
    By traderindia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2009, 02:12 AM

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