+ Reply to Thread
Results 1 to 8 of 8

Excel Formula Only Works in First Two Rows

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Excel Formula Only Works in First Two Rows

    I am using the below formula to separate First and Last names from one column into two because the Text to Columns isn't working either for some reason. However, this formula only seems to be working for the first two rows and I get #VALUE! when I attempt to copy it down. Any help is much appreciated.

    =LEFT(A1,FIND(" ",A1)-1)

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Excel Formula Only Works in First Two Rows

    Can you post a sample workbook that demonstrates the issue?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,103

    Re: Excel Formula Only Works in First Two Rows

    Maybe other words don't have space within cell?
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Excel Formula Only Works in First Two Rows

    in changing the sample around to be posted, the cells that i physically typed names into worked but the last two were pasted into the worksheet and they do not work. maybe there's a formatting problem with the pasted cells?
    Attached Files Attached Files

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Excel Formula Only Works in First Two Rows

    What looks like a space in rows 7/8 is a non-breaking space.

    Do find and replace, and in the find box, press and hold the Alt key, and type 0160 on the NUMERIC keypad. In the replace box, enter a space. Replace all.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Excel Formula Only Works in First Two Rows

    Thank you shg. I didn't know there was something called a "non-breaking" space.

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Excel Formula Only Works in First Two Rows

    Is a webpage the source of the text? The "spaces" that don't evaluate are
    actually HTML non-breaking spaces.

    Try this before on the data:

    Edit.Replace
    Find What: [Alt]+0160....That's: Hold down [Alt]…type 0160…release [Alt]
    Replace with: (press the spacebar one time)
    Click: [Replace All]
    Alternatively, you could use this formula:
    C1: =LEFT(A1,FIND(" ",SUBSTITUTE(A1,CHAR(160)," "))-1)
    Does that help?

  8. #8
    Registered User
    Join Date
    09-10-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Excel Formula Only Works in First Two Rows

    I got it working. Thank you all. If either of you can advise me on how I can avoid non-breaking spaces in the future, I'd appreciate it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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