+ Reply to Thread
Results 1 to 4 of 4

Extract some characters in a mixed string

  1. #1
    Registered User
    Join Date
    01-16-2020
    Location
    Edmonton, AB
    MS-Off Ver
    2016
    Posts
    7

    Extract some characters in a mixed string

    Hi
    I have a formula to extract what comes after the '/' in a string of text and parse it as a number, please see the 3rd column in the attached Excel sample file. Can someone help me to separately extract what comes before the '/'? It is usually a string in the form of PR0000.0000 (PR then number of four characters, then dot, then number of four characters, but sometimes there are typing errors and the string is different, so I'd need a formula that doesn't care about how many characters are before the '/'. Would be great if I can get the new formula in the E column. Thank you so much, Cris.
    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 (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Extract some characters in a mixed string

    Like this:

    =LEFT(B2,FIND("/",B2)-1)
    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.

  3. #3
    Registered User
    Join Date
    01-16-2020
    Location
    Edmonton, AB
    MS-Off Ver
    2016
    Posts
    7

    Re: Extract some characters in a mixed string

    Love you , AliGW, exactly what I need, thank you so much!
    Cris

  4. #4
    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,916

    Re: Extract some characters in a mixed string

    LOL!!!

    If that takes care of your original question, please select 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 those who have helped you by clicking the small star icon 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 all those who offered help.

+ 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 numbers from a mixed string
    By rayzaware in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-05-2021, 10:33 AM
  2. [SOLVED] Formula to extract text only from mixed string
    By FatKidonaTrampolin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2015, 09:29 AM
  3. Extract Numbers in Mixed Cell (not string)
    By magic789 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-11-2015, 05:37 PM
  4. Extract text from cells with mixed characters
    By sa02000 in forum Excel General
    Replies: 4
    Last Post: 07-15-2014, 02:57 PM
  5. [SOLVED] Extract left characters from string with exception of 2 right characters
    By sweetkel23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2012, 10:45 PM
  6. Replies: 4
    Last Post: 10-17-2011, 03:07 PM
  7. Replies: 2
    Last Post: 08-23-2005, 03:49 AM

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