+ Reply to Thread
Results 1 to 5 of 5

Seperate Text from String

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Seperate Text from String

    Hi,

    I am trying to seperate a string of text but everything i've tried isn't work.

    Here are a few examples of what type of text i need to seperate:

    JanActual2014SP East - Duluth, GA MBI
    JanActual2014JP - Little Rock, AR MBI
    JanActual2014JP - Florence, AL Wallboard


    Thanks,
    Kali

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Seperate Text from String

    It is not all clear of what exactly needs to be separated.
    Could you please show an example and desired outcome?
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Seperate Text from String

    So for your first example the expected result is??:

    JanActualSP East - Duluth, GA MBI
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Seperate Text from String

    Here is what I'd like it to look like in excel:

    And really if i could figure out a formula to just caputure EVERYTHING after 2014 i can use Mid and Left funcitons to get the first three but i can't figure out how to capture everything after the year 2014. Does this make sense?

    Column A Column B Column C Column D
    Jan Actual 2014 JP - Hornlake, MS
    Jan Actual 2014 SP - East Duluth, GA MBI
    Jan Actual 2014 JP - Little Rock, AR MBI

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Seperate Text from String

    Maybe like this

    in B1 and copy down


    =TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ","|",1),"|- ","|"),"|",REPT(" ",255)),255))


    A
    B
    1
    JanActual2014SP East - Duluth, GA MBI East - Duluth, GA MBI
    2
    JanActual2014JP - Little Rock, AR MBI Little Rock, AR MBI
    3
    JanActual2014JP - Florence, AL Wallboard Florence, AL Wallboard
    Last edited by AlKey; 09-25-2014 at 10:45 AM.

+ 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 data from variable text string into seperate columns
    By kinnywayne in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2014, 04:43 PM
  2. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  3. How can I seperate numbers followed by a comma from a string
    By jaymullasseril in forum Excel General
    Replies: 2
    Last Post: 07-30-2011, 01:36 AM
  4. Seperate cell string into individual cells
    By ERudy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2006, 02:50 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