+ Reply to Thread
Results 1 to 5 of 5

Extract text between last and one before last occurrences of a character

  1. #1
    Forum Contributor
    Join Date
    09-10-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    176

    Extract text between last and one before last occurrences of a character

    Hi team,

    I am trying to figure out formula which return me text between the last used slash & one before - penultimate used slash. Refer to 2 examples (lets say from cells A1 & A2), where I need to extract red text

    Example A1: G/L ADJ W/VAR 1H/23 / This I need / Expected Clearing Date: 5-2024
    Example A2: Technology / Machines - February & March 2024 /This I need/Expected Clr Date 2025

    Thank you in advance

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,987

    Re: Extract text between last and one before last occurrences of a character

    You could use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    09-10-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 365
    Posts
    176

    Re: Extract text between last and one before last occurrences of a character

    Works perfectly!
    Hmmm, I expected something more complicated, I spent 2 hours trying to build something with using FIND, SUBSTITUTE formulas ... :-) . This "easy one" is really what I was looking for. Thank you very much, my friend.

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: Extract text between last and one before last occurrences of a character

    you have no-break spaces in these strings (char 160). If you don't have them in your real file;

    Edit: late to the party

    Please Login or Register  to view this content.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,987

    Re: Extract text between last and one before last occurrences of a character

    Glad we could help, and thanks for the rep.

+ 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. [SOLVED] Extract distinct text values with number of occurrences of each
    By Prabhakar1 in forum Excel General
    Replies: 7
    Last Post: 02-03-2021, 11:52 AM
  2. How-to: Extract, count and rank text occurrences
    By BijanK in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-16-2019, 12:10 PM
  3. Extract text between a character
    By Jake_1 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-27-2018, 01:57 PM
  4. Replies: 13
    Last Post: 08-28-2014, 08:00 PM
  5. Replies: 4
    Last Post: 08-13-2014, 11:03 PM
  6. [SOLVED] Need Help: how to count occurrences of a text character in a range
    By leemanns in forum Excel General
    Replies: 7
    Last Post: 05-05-2012, 01:51 PM
  7. Extract Text up to Character
    By finlain in forum Excel General
    Replies: 2
    Last Post: 08-26-2009, 12:13 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