#1   Report Post  
Posted to microsoft.public.excel.misc
Pat Dools
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to nest a left function within a sumif function? LisaK Excel Worksheet Functions 2 April 23rd 23 11:46 AM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Vlookup and left function Corey Osborn Excel Discussion (Misc queries) 3 March 23rd 06 06:36 PM
Varying left criteria based on 1st Letter....If Function? seve Excel Discussion (Misc queries) 2 November 25th 05 10:15 PM
DATA VALIDATION with LEFT function Gabe Excel Discussion (Misc queries) 2 May 6th 05 06:37 PM


All times are GMT +1. The time now is 06:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"