View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default can you sort a bunch of tables going vertically?

Cleaning up data like this can be a challenge.

Since you've already created a table with a bunch of cells in MSWord, you could
sort there. But it will sort in alphabetical order based on the first name
(first set of characters in the cell).

If I wanted more control, I'd copy and paste into column A of a new worksheet.
And then try to put each group on a single row (column A is name, column B is
the first #, C holds the next, ...)

Then comes the more difficult part.

Is each group exactly 4 rows deep?

Or is each group separated by an empty row?

Or is it even worse--no gap between groups and no set number of rows per group?

If it's the last (ughh) version, can you pick out an indicate that holds true
for each group--maybe the first row in a group always starts with a letter (not
a number).

Depending on your responses, a macro could be written that does some of the
work.

And after you split the name into its own column, you'll want to put the first
name in one column and the lastname in another. If there are only 2 names (no
Sammy Davis, Jr MD), in the name field, then data|Text to columns could be used.

I guess you have a lot of inspecting to do??

Markus wrote:

Hi there everyone. A customer of mine recently sent me a word document full
of names and phone numbers. There is no unique and consistent method for how
he did this, and it is very disorganized. It also is not in alphabetical
order..

It's basically setup like this:

Joe Shmoe
123-123-1234
123-123-1235 office
123-123-1236 cell

etc..etc.. And there are hundreds of names in there.. I copied and pasted
the word document directly in to Excel..

It would seriously take hours if not days to reorganize this whole list in
to a proper list, so I'm wondering if there is a quick method for sorting all
this stuff in alphabetical order..

Now this might have been pointless on my part, but just for the heck of it,
I highlighted each individual name and the numbers that belong to that name,
and put them in it's very own table.. So there's basically like 300-400
tables going vertically in one column.. The person's name is actually the
header of each table..

Is there any way to sort those tables? If I can't use Excel to sort tables,
does anyone know of another way to go about doing it?

Thanks for your help.. Sorry for the ridiculousness..


--

Dave Peterson