+ Reply to Thread
Results 1 to 6 of 6

Pull left and right until space

  1. #1
    Forum Contributor
    Join Date
    10-30-2008
    Location
    Los Angeles
    Posts
    144

    Pull left and right until space

    I am blanking out. I want to pull the data out until a space (one formula from the left and one from the right). Ithink it's a mid function but not sure...thanks

    Example

    John, Doe

    I would like to get:

    John,

    and

    Doe
    Last edited by maxthebear; 09-11-2009 at 11:33 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Pull left and right until space

    Is this what you want?

    A1: John, Doe

    B1: =LEFT(A1,FIND(",",A1,1))

    C1: =MID(A1,FIND(" ",A1,1)+1,LEN(A1)-FIND(" ",A1,1))

  3. #3
    Forum Contributor
    Join Date
    10-30-2008
    Location
    Los Angeles
    Posts
    144

    AlmostPull left and right until space

    B1 is correct

    For C1 I need just the first letter. In this case D

    thanks

    Max

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Pull left and right until space

    For C1 I need just the first letter. In this case D
    Not per the example in your initial post.

    C1: =MID(A1,FIND(" ",A1,1)+1,1)

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Pull left and right until space

    Hello maxthebear,

    If you aren't looking for a VBA solution to your problem (this is the programming forum) then I'll will move your post to the correct forum.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Forum Contributor
    Join Date
    10-30-2008
    Location
    Los Angeles
    Posts
    144

    which forum

    which forum is that...

+ 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