+ Reply to Thread
Results 1 to 7 of 7

remove partial text from cell

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    Johnston, Ia
    MS-Off Ver
    Excel 2003
    Posts
    8

    remove partial text from cell

    I may be barking up the wrong tree but ...

    I am copying text (contest results from another website) and posting into excel. As it is formatted on the original site, it posts the place, followed by a period, then the team name, then a dash, then the score.
    examp ... 4. Smokers Purgatory - 662.2858

    To place it in our database we need the period removed from the place, and the dash and score removed.
    axamp ... 4 Smokers Purgatory

    Is this possible to automate in excel or is there a way to format so that excel seperates the place, team name and score?
    Or should I be looking for a different method?

    (It is not an option to have the original web site change their posted format)

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: remove partial text from cell

    you can do something like this:

    =LEFT(SUBSTITUTE(A1,".",""),FIND(" - ",SUBSTITUTE(A1,".",""))-1)
    where A1 is the text value.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: remove partial text from cell

    You could put this formula in the next column:

    =SUBSTITUTE(LEFT(A1,SEARCH("-",A1)-1),".","")

    and then copy it down. You could also fix the values and then delete the original column.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    10-25-2010
    Location
    Johnston, Ia
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: remove partial text from cell

    Brilliant!
    Thank you very much!

  5. #5
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: remove partial text from cell

    Could you please mark this issue as resolved?

  6. #6
    Registered User
    Join Date
    07-13-2014
    Location
    Singapore
    MS-Off Ver
    Excel for Mac 2011 Ver 14.3.9
    Posts
    4

    Unhappy Re: remove partial text from cell

    Hi guys, I am having the exact same situation except the the value is "11/5/2014 12:46:44 pm".
    I want to remove the date and retain the time.

    I've tried the formula provided by AMDGagnon & AMPete_UK but it's not working. I am not sure where did I go wrong.

  7. #7
    Registered User
    Join Date
    07-13-2014
    Location
    Singapore
    MS-Off Ver
    Excel for Mac 2011 Ver 14.3.9
    Posts
    4

    Re: remove partial text from cell

    Kindly Ignore the last reply from me as I have posted a new thread. Thanks.

    http://www.excelforum.com/excel-gene...from-cell.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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