Results 1 to 21 of 21

Remove words by substring list

Threaded View

  1. #20
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Remove words by substring list

    @rorya great point.

    Xpath length at 1024 character

    if you need to remove 30+ substrings then use nested FilterXML
    where F2:F39 are lower case substrings


    =IFERROR(TEXTJOIN(" ",,FILTERXML("<x><m>"&SUBSTITUTE(TEXTJOIN(" ",,FILTERXML("<x><m>"&SUBSTITUTE(A2," ","</m><m>")&"</m></x>",
    "//m"&"[not("&TEXTJOIN("or ",,IF($F$2:$F$20="","","contains(translate(.,'"&UPPER($F$2:$F$20)&"','"&$F$2:$F$20&"'),'"&$F$2:$F$20&"')"))&")]"))," ","</m><m>")&"</m></x>",
    "//m"&"[not("&TEXTJOIN("or ",,IF($F$21:$F$39="","","contains(translate(.,'"&UPPER($F$21:$F$39)&"','"&$F$21:$F$39&"'),'"&$F$21:$F$39&"')"))&")]")),"")
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to Remove Certain words automatically from Excel
    By drp99246 in forum Excel General
    Replies: 1
    Last Post: 03-16-2019, 01:34 AM
  2. [SOLVED] Find matching words in a text string and return one of four words
    By alecoute in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2018, 12:33 PM
  3. Replies: 6
    Last Post: 10-19-2018, 02:44 PM
  4. remove words and get result in other cell in excel
    By notbanme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2016, 05:31 AM
  5. [SOLVED] Macro to remove 650 stop words from excel text
    By PiaHarrison in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-18-2016, 03:56 PM
  6. [SOLVED] Remove duplicate rows by matching values across columns in Excel 2007
    By guest2013 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2013, 12:00 AM
  7. [SOLVED] Find matching words in 10 columns and add row numbers of matching words
    By zeke 29 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-03-2012, 09:57 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