+ Reply to Thread
Results 1 to 8 of 8

Excel formula to function to find multiple texts in a text string

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    67

    Excel formula to function to find multiple texts in a text string

    Hi

    Appreciate help with a excell funcion or formula (like SEARCH , FIND) where if particular texts (multiple texts) are fould in a cell then copy the value in a adjacent coloumn to a new coloumn.

    I have attached a sample excel file giving more details about the issue and have manually worked out the desired result

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Excel formula to function to find multiple texts in a text string

    One way in C3 and copy down.

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,898

    Re: Excel formula to function to find multiple texts in a text string

    I don't think that's quite what the OP wants.

    In D3 copied down:

    =IF(SUM(--ISNUMBER(SEARCH({"ab";"be"},B3))),C3,"")

    and in E3 copied down:

    =IF(SUM(--ISNUMBER(SEARCH({"vu";"gi"},B3))),C3,"")
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Excel formula to function to find multiple texts in a text string

    An alternative means with power query

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Excel formula to function to find multiple texts in a text string

    In D4 and copied to full range
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note the changes in headings.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Excel formula to function to find multiple texts in a text string

    or in d3
    =IF($B3=SUBSTITUTE(SUBSTITUTE($B3,"ab",""),"be",""),"",$C3)
    e3
    =IF($B3=SUBSTITUTE(SUBSTITUTE($B3,"vu",""),"gi",""),"",$C3)

  7. #7
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    67

    Re: Excel formula to function to find multiple texts in a text string

    Thank you everyone , much appreciated.

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Excel formula to function to find multiple texts in a text string

    You are welcome.

+ 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. Replies: 8
    Last Post: 12-01-2021, 08:11 AM
  2. [SOLVED] Replace a formula to find multiple partial text string and list all
    By A440 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2021, 06:57 PM
  3. Replies: 11
    Last Post: 04-09-2019, 09:50 AM
  4. [SOLVED] Formula or function to separate string of text in a cell to multiple columns
    By Chris McGlothen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-29-2016, 12:10 PM
  5. Replies: 10
    Last Post: 09-18-2014, 09:36 AM
  6. excel formula to grab first text in a string of texts
    By ewong in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2012, 07:08 PM
  7. [SOLVED] How to Find and Replace a string if cell does not contain certain texts.
    By windcloud2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2012, 01:04 PM

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