Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
LEFT function
Hello,
What is the formula for obtaining the left-most characters in a phrase up to the first blank space in that phrase? For example, for the phrase, '01 Summary', or '233 Summary', I only would only want to return '01' or '233', respectively. I need to know how to read up to the first blank space and then get the characters to the left of that blank space. Thanks. -- Pat Dools |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
LEFT function
Hi!
Try this: This accounts for cells that may not contain a space and in those cases will leave the formula cell blank instead of returning an error: =IF(ISNUMBER(FIND(" ",A1)),LEFT(A1,FIND(" ",A1)-1),"") If the data you want to apply this to will always contain a space then just this will work: =LEFT(A1,FIND(" ",A1)-1) Biff "Pat Dools" wrote in message ... Hello, What is the formula for obtaining the left-most characters in a phrase up to the first blank space in that phrase? For example, for the phrase, '01 Summary', or '233 Summary', I only would only want to return '01' or '233', respectively. I need to know how to read up to the first blank space and then get the characters to the left of that blank space. Thanks. -- Pat Dools |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to nest a left function within a sumif function? | Excel Worksheet Functions | |||
numerical integration | Excel Discussion (Misc queries) | |||
Vlookup and left function | Excel Discussion (Misc queries) | |||
Varying left criteria based on 1st Letter....If Function? | Excel Discussion (Misc queries) | |||
DATA VALIDATION with LEFT function | Excel Discussion (Misc queries) |