+ Reply to Thread
Results 1 to 5 of 5

Find and remove text from the rows in whole excel sheet except specific text

  1. #1
    Registered User
    Join Date
    03-21-2022
    Location
    India
    MS-Off Ver
    Microsoft version 2201
    Posts
    22

    Find and remove text from the rows in whole excel sheet except specific text

    Hello,
    I want to find and remove text from the rows in whole excel sheet except specific text after decimal (dot).
    Example: Except "Ax.Frameworks.Name" and "Ax.Frameworks.Header", Remove anything after 2nd dot i.e, in excel if it is "Ax.Frameworks.ID" , then remove "ID" and change it to "Ax.Frameworks".
    Note: ID will be replaced with many other texts
    Please somebody provide vba/macros.
    Last edited by MohammedAsif10000; 03-21-2022 at 02:56 PM.

  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: Find and remove text from the rows in whole excel sheet except specific text

    Hi and welcome to the forum.

    In the adjacent column then use

    =SUBSTITUTE(A1,".ID","")

    If necessary copy this column and paste as Values back on top of the original.
    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
    Registered User
    Join Date
    03-21-2022
    Location
    India
    MS-Off Ver
    Microsoft version 2201
    Posts
    22
    Quote Originally Posted by Richard Buttrey View Post
    Hi and welcome to the forum.

    In the adjacent column then use

    =SUBSTITUTE(A1,".ID","")

    If necessary copy this column and paste as Values back on top of the original.
    Thanks, but ID will be replaced by many other texts, so I'm looking for vba/macros.

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,377

    Re: Find and remove text from the rows in whole excel sheet except specific text

    Please Login or Register  to view this content.

  5. #5
    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: Find and remove text from the rows in whole excel sheet except specific text

    It's important when you post an example to be quite clear whether it tells the whole story.

    You should also upload a workbook that truly represents your data. One example simply isn't good enough.

    An Excel function is still available. Simply use

    =IF(ISERROR(MATCH(RIGHT(A1,LEN(A1)-FIND("^",SUBSTITUTE(A1,".","^",2))),"exclude_items_range",FALSE)),A1,LEFT(A1,FIND("^",SUBSTITUTE(A1,".","^",2))-1))

    where "exclude_items_range" is a range of cells that should be ignored.

+ 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] Remove specific text from same cell in each sheet
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2022, 03:56 AM
  2. [SOLVED] VBA amendment to remove rows/cells containing specific text
    By Spoonman667 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2021, 09:57 PM
  3. Find row with specific text and copy the 10 rows below to another sheet
    By babyfufu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2020, 07:12 AM
  4. [SOLVED] Remove specific text rows and move to a separate sheet in a workbook
    By leebird in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2015, 07:27 AM
  5. Finding specific text, remove a row and add two rows inbetween
    By Louisa Venter in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-21-2015, 07:11 AM
  6. Remove specific text from all Sheet names
    By jdkoeppen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-18-2011, 05:06 PM
  7. loop to find text and remove rows
    By ruoh_htxi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2005, 07:05 AM

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