+ Reply to Thread
Results 1 to 6 of 6

Can I remove the first part of a string of text and keep the second part?

  1. #1
    Registered User
    Join Date
    02-12-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2013
    Posts
    11

    Can I remove the first part of a string of text and keep the second part?

    Hi Everyone,

    Is there any way to remove the first part of a string of text in a cell and save the second part?

    The first part of the text string is a team code that has a variable number of numbers, capital letters and sometimes spaces. The second part of the text string is a variable number of words in a team name that all start with a capital letter and have lower case letters. Every line has a different team code and team name.

    The original spreadsheet also has a column with just team code. Is there a way of using this column to ‘subtract’ the team code from the text string to just leave the team name?

    Thanks in advance for your help.

    Example:
    Attached Images Attached Images

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Can I remove the first part of a string of text and keep the second part?

    can this go into a new column ?
    also a spreadsheet attached rather than an image would be better


    =RIGHT(B1,LEN(B1)-LEN(A1)-1)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    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: Can I remove the first part of a string of text and keep the second part?

    Try this formula in C2

    =TRIM(SUBSTITUTE(B2,A2,""))
    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

  4. #4
    Registered User
    Join Date
    02-12-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Can I remove the first part of a string of text and keep the second part?

    Thanks, Etaf and Allkey!

    Both solutions worked. Y'all have saved a bunch of time.

    Cheers!
    Whoop92

    ps. Sorry about the image, I'll do better next time.

  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: Can I remove the first part of a string of text and keep the second part?

    You're welcome and thank you for the feedback!

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Can I remove the first part of a string of text and keep the second part?

    your welcome and thanks for the rep too

+ 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. Remove Part of String
    By Astrodude11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2012, 03:24 AM
  2. Replies: 9
    Last Post: 11-12-2010, 05:51 AM
  3. Remove Part of text string
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2008, 07:09 PM
  4. Remove part of string
    By Desi_bhai in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-27-2007, 01:47 PM
  5. [SOLVED] remove last part of string
    By Mitch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2005, 02: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