Formula to return characters in a cell before a specific character

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Formula to return characters in a cell before a specific character

  1. #1
    Board Regular
    Join Date
    Nov 2002
    Location
    Tri-Cities, WA
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Formula to return characters in a cell before a specific character

     
    I have a field that is not a fixed length. It contains characters before and after a colon (":") (including spaces). I need to eliminate all of the characters after the ":" and just return the characters and spaces before the ":". The number of characters before the ":" varies (or I would just use Left()). Would someone please help me with a formula to return only the characters before the ":"?
    Thank you.
    "God does arithmetic."
    -Karl Friedrich Gauss (1777-1855)

  2. #2
    MrExcel MVP
    Moderator
    Inactive
    Richard Schollar's Avatar
    Join Date
    Apr 2005
    Location
    UK
    Posts
    23,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Formula to return characters in a cell before a specific character

    Hi

    You can use Left:

    =LEFT(A1,FIND(":",A1&":")-1)
    Richard Schollar

    Using xl2013

  3. #3
    Board Regular
    Join Date
    Nov 2002
    Location
    Tri-Cities, WA
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Formula to return characters in a cell before a specific character

    Thank you! I feel kinda dumb because that is a very simple formula. I just could not remember how to identify a spacific character. Thank you so much for taking the time to reply to my banal post.
    "God does arithmetic."
    -Karl Friedrich Gauss (1777-1855)

  4. #4
    New Member
    Join Date
    Oct 2015
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Formula to return characters in a cell before a specific character

      
    Really useful, shame you're Inactive, would like to ask another question

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com