+ Reply to Thread
Results 1 to 6 of 6

Extracting Text

  1. #1
    Registered User
    Join Date
    10-14-2015
    Location
    norfolk,uk
    MS-Off Ver
    2010
    Posts
    8

    Unhappy Extracting Text

    If I have text in cell A1 with lets say ABC on the end that I do not want, how can I get the text without the ABC into B1. The lengths of the strings will very.

    So for example

    a sueabc I want sue
    b fredabc I want fred
    c georgeabc I want george

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Extracting Text

    =left(a1,len(a1)-3)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    10-14-2015
    Location
    norfolk,uk
    MS-Off Ver
    2010
    Posts
    8

    Re: Extracting Text

    Thank you for your help

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Extracting Text

    To avoid string without "abc" is cut last 3 characters , i.e "axyz"->"a"

    =IF(RIGHT(A1,3)="abc",LEFT(A1,LEN(A1)-3),A1)
    Quang PT

  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: Extracting Text

    Try this

    =SUBSTITUTE(A1,"abc","")

    Data Range
    A
    B
    1
    sueabc
    sue
    2
    fredabc
    fred
    3
    georgeabc
    george
    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

  6. #6
    Registered User
    Join Date
    08-25-2015
    Location
    Egypt
    MS-Off Ver
    2007
    Posts
    1

    Re: Extracting Text

    Great Idea

+ 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. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  2. Extracting certain text from text string
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2012, 11:29 AM
  3. [SOLVED] Extracting Text from a string of Text & Digits of variable length
    By hastex in forum Excel General
    Replies: 6
    Last Post: 06-06-2012, 09:11 AM
  4. Extracting portion of text text
    By speedbird168 in forum Excel General
    Replies: 4
    Last Post: 02-10-2012, 02:21 AM
  5. Extracting Text from a string of text between brackets
    By easty in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 12-02-2009, 11:29 AM
  6. Extracting strings of text from Columns of data(text)
    By welshmagic69 in forum Excel General
    Replies: 9
    Last Post: 04-23-2007, 02:50 PM
  7. Extracting text from text string
    By Emile in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2006, 03:50 PM
  8. Extracting Text in a string of text
    By walkerdayle in forum Excel General
    Replies: 5
    Last Post: 12-19-2005, 04:27 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