Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
Thanks for the help. How would I write this formula so that it avoids errors if the referenced cell is blank? =TRIM(LEFT(B50,FIND(" ",B50)-1)) Thanks Jim |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this...
=TRIM(LEFT(B50,FIND(" ",B50&" ")-1)) -- Biff Microsoft Excel MVP "Jim" wrote in message ... Hello, Thanks for the help. How would I write this formula so that it avoids errors if the referenced cell is blank? =TRIM(LEFT(B50,FIND(" ",B50)-1)) Thanks Jim |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
There are two conditions that would give you an error.
1. Blank cell 2. Non-blank cell but no spaces. If you sure there will only be a blank cell or text string containing a space then =IF(B50="","",TRIM(LEFT(B50,FIND(" ",B50)-1))) Elsewise =IF(ISERROR(TRIM(LEFT(B50,FIND(" ",B50)-1))),"",TRIM(LEFT(B50,FIND(" ",B50)-1))) Gord Dibben MS Excel MVP On Thu, 14 Jan 2010 13:56:02 -0800, Jim wrote: Hello, Thanks for the help. How would I write this formula so that it avoids errors if the referenced cell is blank? =TRIM(LEFT(B50,FIND(" ",B50)-1)) Thanks Jim |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Looking good Biff
Why can't I do things like that? If I had to build a house I would de-forest the country<g Gord On Thu, 14 Jan 2010 17:09:47 -0500, "T. Valko" wrote: Try this... =TRIM(LEFT(B50,FIND(" ",B50&" ")-1)) |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If I had to build a house I would de-forest the country<g
Yeah, but I'll bet you'd have a very sturdy house! -- Biff Microsoft Excel MVP "Gord Dibben" <gorddibbATshawDOTca wrote in message ... Looking good Biff Why can't I do things like that? If I had to build a house I would de-forest the country<g Gord On Thu, 14 Jan 2010 17:09:47 -0500, "T. Valko" wrote: Try this... =TRIM(LEFT(B50,FIND(" ",B50&" ")-1)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Find" a wildcard as a place marker and "replace" with original va | Excel Discussion (Misc queries) | |||
=SUMPRODUCT(--(TRIM(A1:A10)<"")), what does the "--" mean? | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
How to change the default in Excel from "find next" to "find all" | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) |