A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Splitting Data in Cell



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2009, 07:07 PM posted to microsoft.public.excel.worksheet.functions
[email protected]
external usenet poster
 
Posts: 3
Default Splitting Data in Cell

I have a database that lists addresses in the following format:
111 Maple Dr.

I want to split the street number from the Street name so that I can
sort on the street name only. Is this possible?
  #2  
Old June 16th, 2009, 07:17 PM posted to microsoft.public.excel.worksheet.functions
Bob Umlas[_3_]
external usenet poster
 
Posts: 197
Default Splitting Data in Cell

helper column:
=MID(A1,FIND(" ",A1)+1,255)
fill down
sort on this column
Bob Umlas
Excel MVP

wrote in message
...
I have a database that lists addresses in the following format:
111 Maple Dr.

I want to split the street number from the Street name so that I can
sort on the street name only. Is this possible?



  #3  
Old June 16th, 2009, 07:26 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Splitting Data in Cell

Maybe this:

A1 = 111 Maple Dr

B1 formula:

=MID(A1,FIND(" ",A1)+1,100)

Then sort on column B.

--
Biff
Microsoft Excel MVP


wrote in message
...
I have a database that lists addresses in the following format:
111 Maple Dr.

I want to split the street number from the Street name so that I can
sort on the street name only. Is this possible?



  #4  
Old June 16th, 2009, 08:36 PM posted to microsoft.public.excel.worksheet.functions
[email protected]
external usenet poster
 
Posts: 3
Default Splitting Data in Cell

Thanks Bob, That did the trick. Just for my enlightenment, can you
explain why it [=MID(A1,FIND(" ",A1)+1,255) ] is writtrn in that
format and how it works?

On Tue, 16 Jun 2009 14:17:26 -0400, "Bob Umlas"
wrote:

helper column:
=MID(A1,FIND(" ",A1)+1,255)
fill down
sort on this column
Bob Umlas
Excel MVP

wrote in message
.. .
I have a database that lists addresses in the following format:
111 Maple Dr.

I want to split the street number from the Street name so that I can
sort on the street name only. Is this possible?


  #5  
Old June 16th, 2009, 09:23 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Splitting Data in Cell

The MID function returns substrings located in larger strings of text. The
first argument is the string of text you want to pull the substring out of;
the second argument is the position within the string of text you want to
start at when pulling out the substring and the third argument is the number
of characters making up your substring. The second argument in Bob's formula
uses the FIND function to locate the first blank space which is located
between your number and the street name (FIND returns the position number of
the character(s) you are trying to find)... the 1 is added to it because you
don't want to start pulling your substring out at the space, you want to do
that from the character after the space. The 255 that Bob used as his third
argument is just a number that is assumed to be bigger than the total number
of characters that could possibly make up a street name (that way, you get
all the text after the first space).

--
Rick (MVP - Excel)


wrote in message
...
Thanks Bob, That did the trick. Just for my enlightenment, can you
explain why it [=MID(A1,FIND(" ",A1)+1,255) ] is writtrn in that
format and how it works?

On Tue, 16 Jun 2009 14:17:26 -0400, "Bob Umlas"
wrote:

helper column:
=MID(A1,FIND(" ",A1)+1,255)
fill down
sort on this column
Bob Umlas
Excel MVP

wrote in message
. ..
I have a database that lists addresses in the following format:
111 Maple Dr.

I want to split the street number from the Street name so that I can
sort on the street name only. Is this possible?



  #6  
Old June 17th, 2009, 01:09 PM posted to microsoft.public.excel.worksheet.functions
[email protected]
external usenet poster
 
Posts: 3
Default Splitting Data in Cell

Thanks Rick,

The explanation will help me immensely in the future.

On Tue, 16 Jun 2009 16:23:35 -0400, "Rick Rothstein"
wrote:

The MID function returns substrings located in larger strings of text. The
first argument is the string of text you want to pull the substring out of;
the second argument is the position within the string of text you want to
start at when pulling out the substring and the third argument is the number
of characters making up your substring. The second argument in Bob's formula
uses the FIND function to locate the first blank space which is located
between your number and the street name (FIND returns the position number of
the character(s) you are trying to find)... the 1 is added to it because you
don't want to start pulling your substring out at the space, you want to do
that from the character after the space. The 255 that Bob used as his third
argument is just a number that is assumed to be bigger than the total number
of characters that could possibly make up a street name (that way, you get
all the text after the first space).

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:14 PM.


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