Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Can text in one cell be split into several cells?

I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Can text in one cell be split into several cells?

You can use text to column and split them on the basis of the space between
the city and state.
--
Brevity is the soul of wit.


"Mistie" wrote:

I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Can text in one cell be split into several cells?

Well, actually, I tried that. However, there are some cities that have two
or three names, and they mix with the states that only have one. So, that
doesn't work.

Thank you though.

Mistie

"Dave F" wrote:

You can use text to column and split them on the basis of the space between
the city and state.
--
Brevity is the soul of wit.


"Mistie" wrote:

I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 156
Default Can text in one cell be split into several cells?

Have you tried using text to columns with the other check box selected
and using a space as the delimeter?


Mistie wrote:
I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Can text in one cell be split into several cells?

I tried to do that since there seems to be 3 spaces between the city and
state. But, it did not take 3 spaces (or any spaces) in the other box.

Thank you for trying.

Mistie

"Sandy" wrote:

Have you tried using text to columns with the other check box selected
and using a space as the delimeter?


Mistie wrote:
I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Can text in one cell be split into several cells?

Mistie, is the State a name or a 2 letter code at the end of the text string?
--
Sincerely, Michael Colvin


"Mistie" wrote:

I tried to do that since there seems to be 3 spaces between the city and
state. But, it did not take 3 spaces (or any spaces) in the other box.

Thank you for trying.

Mistie

"Sandy" wrote:

Have you tried using text to columns with the other check box selected
and using a space as the delimeter?


Mistie wrote:
I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Can text in one cell be split into several cells?

It is a letter abbreviation at the end of the text of that cell. It would
not be such a problem except that the cities are different word lengths, so
they do not split correctly. I can write a function to extract the states
into their own column, but then I still have it listed in the other column
still. I am out of ideas. Please help if you can.

Thank you,
Mistie

"Michael" wrote:

Mistie, is the State a name or a 2 letter code at the end of the text string?
--
Sincerely, Michael Colvin


"Mistie" wrote:

I tried to do that since there seems to be 3 spaces between the city and
state. But, it did not take 3 spaces (or any spaces) in the other box.

Thank you for trying.

Mistie

"Sandy" wrote:

Have you tried using text to columns with the other check box selected
and using a space as the delimeter?


Mistie wrote:
I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Can text in one cell be split into several cells?

On Fri, 8 Sep 2006 13:31:01 -0700, Mistie <Mistie @discussions.microsoft.com
wrote:

I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.


Assuming the state is represented by a two letter abbreviation, and your data
is in A1, then

City:

=LEFT(A1,-1+FIND(CHAR(1),SUBSTITUTE(A1," ",
CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

State:

=MID(A1,1+FIND(CHAR(1),SUBSTITUTE(A1," ",CHAR(1),
LEN(A1)-LEN(SUBSTITUTE(A1," ","")))),2)


--ron
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Can text in one cell be split into several cells?

Oh, I knew there had to be a formula for this....I just wasn't smart enough
to figure it out. I put it in and it worked perfectly. Thank you, thank
you, thank you!!

Mistie

"Ron Rosenfeld" wrote:

On Fri, 8 Sep 2006 13:31:01 -0700, Mistie <Mistie @discussions.microsoft.com
wrote:

I have a sheet with about 10,000 names and addresses in it in which the city
and state were entered into one cell. I have tried all day to find a
function or way to split them up. There are no commas in between and they
are not lined up to be able to use text to column. I need help, please?

Thank you.


Assuming the state is represented by a two letter abbreviation, and your data
is in A1, then

City:

=LEFT(A1,-1+FIND(CHAR(1),SUBSTITUTE(A1," ",
CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

State:

=MID(A1,1+FIND(CHAR(1),SUBSTITUTE(A1," ",CHAR(1),
LEN(A1)-LEN(SUBSTITUTE(A1," ","")))),2)


--ron

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Can text in one cell be split into several cells?

On Sat, 9 Sep 2006 19:09:01 -0700, Mistie
wrote:

Oh, I knew there had to be a formula for this....I just wasn't smart enough
to figure it out. I put it in and it worked perfectly. Thank you, thank
you, thank you!!

Mistie


You're welcome. Glad to help. Thanks for the feedback.

--ron


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
Text entries behaving like numbers jkiser Excel Discussion (Misc queries) 12 August 30th 06 09:29 PM
merge several cells with text into 1 cell chum Excel Discussion (Misc queries) 4 July 25th 06 04:30 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
How do you write 2 lines of text in 1 cell rather than use 2 cells !!!help!!! Excel Discussion (Misc queries) 5 September 20th 05 06:05 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


All times are GMT +1. The time now is 07:20 AM.

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

About Us

"It's about Microsoft Excel"