+ Reply to Thread
Results 1 to 5 of 5

Extract specific text following a specific character from right to left

Hybrid View

  1. #1
    Registered User
    Join Date
    12-12-2022
    Location
    Hamburg
    MS-Off Ver
    365
    Posts
    6

    Extract specific text following a specific character from right to left

    Hello,

    I'm interested in finding a function that will help me extract a specific text that sits just before a specific character. However, the challenge is that my text strings are of various sizes and it would require identifying the last "#" and extracting the value that sits just before that character.

    As an example:
    Screenshot 2024-02-14 103153.png


    From the example above, I will need to extract the values that are in green.

    Any ideas how to tackle this one?

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Extract specific text following a specific character from right to left

    You have not provided expected results, but try this:

    =TEXTAFTER(TEXTBEFORE(C4:C9,"#",-1),"#",-1)

    Or, if you want numbers and not text:

    =--TEXTAFTER(TEXTBEFORE(C4:C9,"#",-1),"#",-1)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-12-2022
    Location
    Hamburg
    MS-Off Ver
    365
    Posts
    6

    Re: Extract specific text following a specific character from right to left

    That's incredible, the first formula works just fine for me. Thanks a lot!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Extract specific text following a specific character from right to left

    I added a workbook with a spill version - look at that. The second would be the better option if you want to use those results in calculations.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  5. #5
    Registered User
    Join Date
    12-12-2022
    Location
    Hamburg
    MS-Off Ver
    365
    Posts
    6

    Re: Extract specific text following a specific character from right to left

    Have done so, thanks again!

+ 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. HOW TO extract 10 digit character after specific text in excel
    By dchew in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2023, 02:16 PM
  2. Value on the right and on the left of a specific character
    By trustseller23 in forum Excel General
    Replies: 4
    Last Post: 03-16-2022, 08:26 AM
  3. [SOLVED] Extract Text After The Last Instance Of A Specific Character
    By bjnockle in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-22-2020, 06:45 PM
  4. Code to delete text left of a specific character
    By Yoshi64 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-21-2014, 05:38 AM
  5. [SOLVED] Find text left or right of a specific character in a text string
    By Locopete99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2014, 05:55 AM
  6. [SOLVED] Extract text left and right of character
    By stuartm4h in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2013, 07:32 AM
  7. extract numbers with specific text from right or left
    By darkhangelsk in forum Excel General
    Replies: 2
    Last Post: 08-15-2009, 02:38 PM

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