+ Reply to Thread
Results 1 to 3 of 3

Extract text after the LAST special character in a text string

  1. #1
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Extract text after the LAST special character in a text string

    Hi. I've read lots of threads about extracting text from a string in a cell (Left, Right, Mid formulas), but I have an outline text string for which I need to extract all of the text AFTER the last period. For example, I may have

    1.1.1. Section Coffee (just return Section Coffee)
    1.1.12.Section Steeple (just return Section Steeple)
    1.19.* Blue Steel (just return Blue Steel)

    Depending on the level of the outline, I may need to return the text after the 2nd period or after the 3rd period. Also, sometimes there is a space/spaces after the last period, and sometimes there are none. Thanks!

    Frank

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

    Re: Extract text after the LAST special character in a text string

    This should work assuming we are only talking about periods and asterixes.

    =TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE(A1,"*","."),".",REPT(" ",100)),100))
    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
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Re: Extract text after the LAST special character in a text string

    Perfect! Thank you very much!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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