+ Reply to Thread
Results 1 to 4 of 4

Pull Text Before and After Colon?

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Pull Text Before and After Colon?

    Hello,

    I have a list of varying strings:

    ItemParent1:ItemName1
    ItemParent2:ItemName2

    How would I write a formula to pull ItemName1 only? Essentially, how do I pull the text after the colon?

    What if I wanted to ItemParent1? Essentially, how do I pull the text before the colon?
    Thank You,

    EnigmaMatter

  2. #2
    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: Pull Text Before and After Colon?

    Hello

    Try.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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.

  3. #3
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: Pull Text Before and After Colon?

    Hey, it worked great! I ended up doing a little research and found the exact formula on the internet. However, simply replacing RIGHT with LEFT did not work for me...I had to use:

    Please Login or Register  to view this content.
    I am not sure how that worked exactly, but it did.

  4. #4
    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: Pull Text Before and After Colon?

    As an alternative you can also use this one in B1

    =TRIM(RIGHT(SUBSTITUTE(A1,":",REPT(" ",25)),25))

    Row\Col
    A
    B
    1
    ItemParent1:ItemName1 ItemName1
    2
    ItemParent2:ItemName2 ItemName2
    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

+ 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] Adding a Colon in a text string
    By dwhite30518 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2013, 03:04 PM
  2. Extract text after the last colon from start
    By itsmesunilb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2013, 01:28 AM
  3. Strip Excess Semi-Colon from Text File
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2011, 01:30 PM
  4. Random colon delimitation help - Remove colon delimiter?
    By ebahr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2008, 03:33 PM
  5. Insert colon in text in cell
    By Phoenix in forum Excel General
    Replies: 4
    Last Post: 02-03-2006, 05:25 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