+ Reply to Thread
Results 1 to 4 of 4

need a formula that reads contents of cell up to a blank space

  1. #1
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    need a formula that reads contents of cell up to a blank space

    A B
    10255.01399 10X32X1 =LEFT(S20,11) RETURNS THE VALUE 10255.01399
    10255R011036 10X36X1 =LEFT(S21,11) RETURNS THE VALUE 10255R01103 (I need 10255R011036)
    10255.01199 11.25X13.25X1 What formula would read the characters from the left of the cell and stop at the space?
    10255.01399 11X30X1
    10255D01499 11X44X1
    10255.01399 12X27X1

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: need a formula that reads contents of cell up to a blank space

    Try this one

    =LEFT(A1,FIND(" ",A1)-1)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    Re: need a formula that reads contents of cell up to a blank space

    ALKEY, yes that worked. I have some cells that only contain the the first value like 10255.01816
    And when the formula is used it returns #VALUE!

    What modification would correct this

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: need a formula that reads contents of cell up to a blank space

    If you using Excel 2007 or higher

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

    for older versions

    =IF(ISERROR(LEFT(A1,FIND(" ",A1)-1)),A1,LEFT(A1,FIND(" ",A1)-1))
    Last edited by AlKey; 03-26-2014 at 10:48 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 08-16-2011, 07:45 PM
  2. Leading Space in Contents of Cell
    By rockstar89 in forum Excel General
    Replies: 7
    Last Post: 04-06-2011, 02:09 PM
  3. If it's not a space, return the cell contents.
    By Gee... in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2006, 07:55 PM
  4. [SOLVED] Getting rid of extra space after cell contents?
    By achidsey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2005, 09:05 PM
  5. Replies: 1
    Last Post: 02-21-2005, 01:06 PM

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