+ Reply to Thread
Results 1 to 5 of 5

Pull from left until Blank (Space)

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

    Pull from left until Blank (Space)

    I'm looking for a formula that pulls the text from a cell unti it hits a space.

    I'm using the formula below but keep getting #VALUE results


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


    I know it's not that hard but can't figure it out.

    thanks for the help

    max
    Last edited by maxthebear; 01-05-2010 at 03:01 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Pull from left until Blank (Space)

    Try

    =LEFT(A1,FIND(" ",A1)-1)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    perfect

    It worked like a charm. thanks I'll mark it solved and rate you. Strange how my earlier formula used to work now it doesn't..

    max

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Pull from left until Blank (Space)

    Your first formula is looking for a comma, not a space... and then it would include the comma, so you have to subtract 1 from the Find() result to go back one space...
    Last edited by NBVC; 01-05-2010 at 03:06 PM.

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

    Re: Pull from left until Blank (Space)

    That's right. I was using it for something else and forgot about the comma. thanks again.......

    Max

+ 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