+ Reply to Thread
Results 1 to 3 of 3

Formula for Extracting text between several backlashes...

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    64

    Formula for Extracting text between several backlashes...

    I have a column: Column D with cells which look like any of the following:

    D12: Europe/Asia/North America/Australia
    D13: Europe/Latin America/Australia
    D14: Asia/Australia

    What I am trying to do is that when I type in a search word in cell _C8, it searches for those cells in column D which contain that search word. So if I type in "Asia" in cell C8, it will search through column D for all the rows which have the string "Asia". I tried using the LEFT function (shown in Formula A), but that only works if my search word is the leftmost word before the "/". If I type in "Asia" in C8, only D14 will show up and not D12, which also contains that string. I tried using the MID function in conjunction with the find function (Formula B), but that only works for one backlash.
    Formula A
    LEFT(D12, LEN(_C8)) = _C8

    Formula B
    MID(D14, FIND("/", D14)+1, LEN(_C8)) = _C8

    Any help would be appreciated!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for Extracting text between several backlashes...

    =ISNUMBER(SEARCH(_C8,D12)) returns TRUE if the word in _C8 is in D12. Is that what you want? You could use it in conditional formatting to color all cells containing that word.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-07-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Formula for Extracting text between several backlashes...

    Thank you so much! That worked!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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