Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel -- Text to columns, no delimiters

Status
Not open for further replies.

avandale

Technical User
Dec 10, 2003
7
IE
Hi,

I have a spreadsheet with 28000+ Merchant Names that need to be grouped by their Company. The trouble is, there are no spaces between the individual words the make up the listing e.g.

VodafoneDublin
VodafoneGalway
VodafoneNewYork
VodafoneSydney

etc.

There are about 500+ merchants, each with an average of 30-60 different listings.

What I'm trying to do is to seperate the phrases at the point where they dont match. i.e. in this instance, where the phrase Vodafone ends. I know that there is a line of code/formula that allows me to work with each individual character in a phrase, but I'm totally stumped!!!


Any ideas?

Thanks in advance!
 
Hi Avandale,

Will it always be the same format as in your code where the company will always start with a capital letter and the office will also start with a capital letter.



Matt
[rockband]
 
Here is something that may work.

Make another column with a formula like this :-
=LEFT(A1,4)
Which puts extracts the first 4 characters. You can then sort/filter etc. on this column.

If it is the end you want, then
=RIGHT(A1,4)


Regards
BrianB
Use CupOfCoffee to speed up all windows applications
================================
 
Do you have a unique list of the companies that will be found in that data?

Regards
Ken...................

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top