#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Deconcatenate

Hello,
I need some help ASAP for any of you that can save me!

In Excel '07, I have a cell with all of a persons contact info.

Firstname MI Lastname Address Street State Zip

Problem is there is no uniform structure. No tabbing, identifiers, and
everything might not be included. For example:

Jane M Doe 123456789 2nd Street Dallas
Jane Doe 1 Main Street Dallas, TX 65654-4343
Jack Smith 234 W. Broadway Dallas, Texas 34212

Any idea how I can deconcatenate this without spending hours and hours?
Thanks for the help in advance.
--
Michael
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Deconcatenate

Hi,
I would begin by splitting the data at the first digit, which will separate
the name and the address.
=LEFT(A2,FIND({1,2,3,4,5,6,7,8,9,0},A2,1)-1) gives the name
=MID(A2,FIND({1,2,3,4,5,6,7,8,9,0},A2),100) gives the address
Put these in adjacent cells and copy down.

The above works as long as the address begins with a number.
You may need to manually alter addresses that don't conform.

How many columns do you want to use?

Regards - Dave.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Deconcatenate

Oh, and it will also fault if a name contains a digit -
like Bartholomew Isaiah Darlington the 3rd.
But surely no parent would be so cruel...
Dave.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Deconcatenate

Okay I'm inching my way there.

Is there a way of saying give me all the stuff in between two things (I know
the two ends)e.g.

I want "windows internet explorer"

from

hello hello windows internet explorer bye
hello windows internet explorer bye bye
hello 1 2 hello 1 windowns internet explorer 1 2 3

when I have cells that have:
hello hello AND bye
hello AND bye bye
hellow 1 2 hello 1 AND 1 2 3

Thanks, I hope you understand.
--
Michael


"Dave" wrote:

Hi,
I would begin by splitting the data at the first digit, which will separate
the name and the address.
=LEFT(A2,FIND({1,2,3,4,5,6,7,8,9,0},A2,1)-1) gives the name
=MID(A2,FIND({1,2,3,4,5,6,7,8,9,0},A2),100) gives the address
Put these in adjacent cells and copy down.

The above works as long as the address begins with a number.
You may need to manually alter addresses that don't conform.

How many columns do you want to use?

Regards - Dave.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Deconcatenate

On Mon, 23 Jun 2008 17:05:00 -0700, Dave
wrote:

Oh, and it will also fault if a name contains a digit -
like Bartholomew Isaiah Darlington the 3rd.
But surely no parent would be so cruel...
Dave.


It will also fault if the street address has no number.
--ron


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Deconcatenate

Hi Michael,
I must be slow today. Still not sure what you actually have now, and what
you actually want.
You started with:
John J. Doe 123 West Main Street Suite 100 Dallas Texas 64852
But after doing some work, you now have:
John
J.
Doe

Dallas
Texas
64852
Is that right? Are they in cells going down? eg E2:E7?
With the original address in A2, put this somewhe
=MID(A2,FIND(E4,A2)+LEN(E4)+1,(FIND(E6,A2))-(FIND(E4,A2)+LEN(E4)+1))
Any good?
Dave.
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
deconcatenate TP Excel Worksheet Functions 1 May 13th 06 03:56 PM
HOW DO I DECONCATENATE pys Excel Worksheet Functions 2 November 11th 04 09:52 PM


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

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"