+ Reply to Thread
Results 1 to 6 of 6

Extracting data between 2 characters in a text string

  1. #1
    Registered User
    Join Date
    07-11-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Extracting data between 2 characters in a text string

    Hi this is my first post -- so be gentle

    I have the data string below:

    Career:25: 1-0-2 $13,765

    I would like to extract the 1 between the : and -
    and as a seperate extraction would like te 2 between the - and the $
    I have tried a few things but end up with the - as the length of the data changes

    Thanks in advance

  2. #2
    Registered User
    Join Date
    07-11-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Extracting data between 2 characters in a text string

    Oops.. I just noticed I last used this 2 years ago.. Please ignore my first line.... be brutal

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Extracting data between 2 characters in a text string

    Try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It just replaces the spaces, semicolons and dashes with 100 spaces and then you can just tell it which part you want and remove the extra spaces. The double negative at the beginning of the formula converts the text into a number. If you are extracting text then you need to remove this because it will cause an error.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    07-11-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Extracting data between 2 characters in a text string

    Brilliant
    Thanks abousetta worked like a treat
    I tried to use it for the string
    Stats LY: 1047: 100-105-99
    as I wanted to get the 100 and the 99 like above but could not quite figure out the correct syntax.
    Your explaination was a great addition in assisting but I must be a bit thick..

    Donga00

  5. #5
    Registered User
    Join Date
    07-11-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Extracting data between 2 characters in a text string

    Thanks for your help I played with the formula and finally figured out where I was going wrong.
    Thanks for the really quick reply and also for the excellent easy solution

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Extracting data between 2 characters in a text string

    Glad I could help. Thanks for the rep and good luck.

    abousetta

+ 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. removing/extracting characters from a string
    By The Monitor in forum Excel General
    Replies: 1
    Last Post: 11-30-2011, 06:19 PM
  2. extracting characters from string
    By johnmerlino in forum Excel General
    Replies: 6
    Last Post: 10-21-2010, 09:56 AM
  3. Extracting data from a text string
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 09-08-2009, 08:12 AM
  4. Extracting characters from a string
    By incognito in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-30-2007, 03:18 AM
  5. [SOLVED] Extracting a character from a string of characters
    By Sue in forum Excel General
    Replies: 6
    Last Post: 10-29-2005, 09:05 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