+ Reply to Thread
Results 1 to 3 of 3

Removing everything to the right of the first period.

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Portland Oregon
    MS-Off Ver
    Excel 2007
    Posts
    11

    Removing everything to the right of the first period.

    I’m looking for a formula that will look at a string and remove everything to the right of the first period, including the period itself.

    Here’s an example of the text I’m working with. I’d like to remove the “....26.00”
    AIR FILTER....26.00

    And make it look like this:
    AIR FILTER

    I thank you

  2. #2
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Removing everything to the right of the first period.

    Try this:

    Please Login or Register  to view this content.
    Docendo discimus.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Removing everything to the right of the first period.

    you dont need formula just find .* replace with nothing
    =LEFT(A2,SEARCH(".",A2)-1) doesnt work if there are 3 or more periods
    you need to use
    =LEFT(A15,SEARCH(".",A15)-2)
    if you want to use
    =LEFT(A2,SEARCH(".",A2)-1)
    you need to delete ... from your autocorrect options
    then again maybe if it was imported as text........something it will work fine anyway
    Last edited by martindwilson; 08-21-2012 at 07:44 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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