Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Spilting Data in the same cell

I have a Excel Spreadsheet that contacts both the names and addresses in the
same cell. I want to separate these to items making one cell for the name
and another for the street address, city, state, zip. Is there a way to do
this without having to redo the data by moving it to another cell one record
at a time.

Example:

-Before- -After-
Name Name Address City State Zip
Address

Thanks for any help.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Spilting Data in the same cell

Hi

I don't think the DataText to columns will help you (at least not
directly).
Your present layout suggests that the address appears below the name. Is
it just one cell of address, or multiple rows of address? Also is the
layout consistent - is there the same number of rows between each Name?

If the data is in the form
Roger Govier
Somehouse
Sometown
Somecounty
John Doe
His house
His Town
His County.

(NB Work on a copy of your data - just in case all goes horribly
wrong!!!)

then in cell B2 enter the following
=IF(MOD(ROW()+3,4)=0,INDEX($A:$A,COLUMN()+ROW()-1,1),"")
Copy across through cells C2:D2, then copy B2:D2 down for the extent of
your data.
This is for data in the format of 4 rows per person. If it is more rows,
then change +3,4 to +4,5 etc.
Similarly if it is fewer rows, then reduce to +2,3 etc.

Having done this, copy the whole block of data, and Paste SpecialValues
to "fix" the data and change the formula to actual addresses.
Now, mark the top row, DataFilterAutofilteruse dropdown on column
BSelect (Blanks)
Mark the block of visible rowsDelete

If your data is a name, followed by a row with all of the address in a
single cell, then carry out the above with
=IF(MOD(ROW()+1,2)=0,INDEX($A:$A,COLUMN()+ROW()-1,1),"")
just to column B and copy down.
Having "fixed" the data and deleted blank rows, then mark column B and
use the Text to columns wizard.
--
Regards

Roger Govier


"xwdpuzzler" wrote in message
...
OK I went there but I didn't know how to use the wizard. I will
figure it
out, I will not let this defeat me :) Thanks for your help

"paul" wrote:

check out the data menu;text to columns
--
paul

remove nospam for email addy!



"xwdpuzzler" wrote:

I have a Excel Spreadsheet that contacts both the names and
addresses in the
same cell. I want to separate these to items making one cell for
the name
and another for the street address, city, state, zip. Is there a
way to do
this without having to redo the data by moving it to another cell
one record
at a time.

Example:

-Before- -After-
Name Name Address City State Zip
Address

Thanks for any help.



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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Cell data format falloutx Excel Discussion (Misc queries) 1 February 10th 06 01:46 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


All times are GMT +1. The time now is 02:34 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"