AlanAnderson
Board Regular
- Joined
- Jun 7, 2010
- Messages
- 134
I have inheriteda list of contacts that is in an appalling state. There is almost noconsistency in the layout. In some cases all the info is in one field. Others amix of info, in rare cases properly separated. <o></o>
In somecases two different contacts aqre separated by one empty row, in others eitherno separating row or various numbers<o></o>
<o> </o>
At somepoint I need to enter all this info into an Access database. Before attemptingthat I want to clean it up in Excel.<o></o>
<o> </o>
1. Basic Sorting and Moving<o></o>
<o> </o>
In simpleterms I would like to place the name in one column, telephone numbers in thenext, email address in next, website in the following<o></o>
I startedoff by entering an indicator in each row (H heading, N Name, T Telephonenumbers, e Email address and W for web site<o></o>
<o> </o>
As thereare some 6000 lines in the actual file this will take forever just to enterthese indicators. After that I will need to clean up almost every line<o></o>
<o> </o>
2. Is there a smart way to go througheach field and identify and move the different elements into different columns(E.g. Telephones, Names, Addresses etc)<o></o>
<o> </o>
Whilst Ihave Access VBA experience I am unfamiliar with VBA excel.<o></o>
<o> </o>
Idesperately need to be pointed in the right direction. Even if I couldautomatically extract 60% it would be a great win.<o></o>
<o> </o>
<o> </o>
A shortsample file is enclosed (all data has been “anonomised” WHOOPS - I cant attach it. I have pasted a selection below. Column B contains the "h", "n", T" etc
All the rest is in column C
<o> </o>
Thanks
<o> </o>
Alan<o></o>
In somecases two different contacts aqre separated by one empty row, in others eitherno separating row or various numbers<o></o>
<o> </o>
At somepoint I need to enter all this info into an Access database. Before attemptingthat I want to clean it up in Excel.<o></o>
<o> </o>
1. Basic Sorting and Moving<o></o>
<o> </o>
In simpleterms I would like to place the name in one column, telephone numbers in thenext, email address in next, website in the following<o></o>
I startedoff by entering an indicator in each row (H heading, N Name, T Telephonenumbers, e Email address and W for web site<o></o>
<o> </o>
As thereare some 6000 lines in the actual file this will take forever just to enterthese indicators. After that I will need to clean up almost every line<o></o>
<o> </o>
2. Is there a smart way to go througheach field and identify and move the different elements into different columns(E.g. Telephones, Names, Addresses etc)<o></o>
<o> </o>
Whilst Ihave Access VBA experience I am unfamiliar with VBA excel.<o></o>
<o> </o>
Idesperately need to be pointed in the right direction. Even if I couldautomatically extract 60% it would be a great win.<o></o>
<o> </o>
<o> </o>
A shortsample file is enclosed (all data has been “anonomised” WHOOPS - I cant attach it. I have pasted a selection below. Column B contains the "h", "n", T" etc
All the rest is in column C
[TABLE="width: 523"]
<tbody>[TR]
[TD]h[/TD]
[TD]HEALTH Care[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]HOSPITALS - Thyolo[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]BlahHospital, Makwasa,[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Tel: 01 666 666 / 667[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]email: enquiries@blahhospital.org,[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]www.blahhospital.org[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]HOSPITALS - Zomba[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]BlahHealth Clinic,[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Tel: 0111 666 666, 0888 666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] OPTICIANS AND VETS[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]BlahOpticals - Blantyre: Wadda wadda Shopping Mall,[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Tel: 01 666 666 / 667[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]email: blahi@wadda.com[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Blah House, Tel: 01 666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]email: blah2@wadda.com.[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]n[/TD]
[TD] Eye Clinic - Blantyre: Dr. Jane Doe, [/TD]
[/TR]
[TR]
[TD]t[/TD]
[TD] Tel: 01 666 666, 099 666 666, email: director@blahi.org,[/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD] email: director@blah.org,[/TD]
[/TR]
[TR]
[TD]w[/TD]
[TD]www.blah.org. Lilongwe, Tel: 01 666 666[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]Salima[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]t[/TD]
[TD]Tel: 0994 079 507[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]n[/TD]
[TD]Blah Optical Centre, [/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]Nkhotakota, Blah Hospital[/TD]
[/TR]
[TR]
[TD]t[/TD]
[TD]Tel: 0994 666 666, 01 666 666[/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]email: blahl@gmail.com[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Blah - Blantyre: Blah blah blah Hospital, Glyn Jones Rd, Tel:01 666 931,[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0995 666 666. Lilongwe: Blah bah Health Centre, Presidential Way,[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Tel: 0999 666 666 Mzuzu: Mzuzu central hospital, Tel: 01 666 666, 0995 666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]h[/TD]
[TD]VETERINARY[/TD]
[/TR]
[TR]
[TD]n[/TD]
[TD]blah blah vet, Area 9, Llw,[/TD]
[/TR]
[TR]
[TD]t[/TD]
[TD]Tel: 01 666 666, 0994 666 666[/TD]
[/TR]
[TR]
[TD]e[/TD]
[TD]email: info@blahvert.org,[/TD]
[/TR]
[TR]
[TD]w[/TD]
[TD]www.blahvet.org[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]n[/TD]
[TD]bhlah Vet Clinic, Area 3, Lilongwe,[/TD]
[/TR]
[TR]
[TD]t[/TD]
[TD]Tel: 01666 666, 0999 666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]YaddaYadda Vet Clinic, Area 3, Llw, Tel: 01 666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0888 666 666, 0991 666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Blah Animal Clinic, Kanengo, Tel: 0995 666 666, Emergency: 0111 666 666, info@blahcare.org[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]www.blahcare.org[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]blahi Veterinary Surgery, [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Tel 01 666 666, 0999 666 666/ 0995 666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]The Blah Clinic, Cnr Blahs and Yadda Rd, Blantyre, Tel: 01 666 666(office), 0111 666 666/7 (home), 0999 666 666 / 0888 8666 666[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]
<o> </o>
Thanks
<o> </o>
Alan<o></o>