MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Feb 27th, 2002, 09:23 AM   #1
osullj
New Member
 
Join Date: Feb 2002
Posts: 5
Default

Hi,

I work in a group of 8 people. We are moving from Outlook to Goldmine. I exported the 8 contact databases from Outlook to Excel and have been cleaning and enhancing the data in excel, eliminating duplicates, using consistent company names and so on. When fully cleaned I will import into Goldmine as a starting common database for all 8.

I have hit a problem trying to use Excel's Text to Columns feature. Many of the address records have imported into excel in one column, with  as a delimiter between address line 1 address line 2 etc. When I try to get Excel's Text to Columns to recognise this , I cannot. I can use Character MAp to get a  in the dialog box but Excel ignores it and I'm left with just the first line after the process runs with subsequent address lines being lost.

How can I proceed to split up my address lines into separate fields

Thanks.....John (Dublin, Ireland)
osullj is offline   Reply With Quote
Old Feb 27th, 2002, 09:25 AM   #2
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

Can you search and replace that character ? if you can, replace it with something that doesn't appear anywhere else, like "*" or "$" or something similar.
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Feb 27th, 2002, 09:31 AM   #3
osullj
New Member
 
Join Date: Feb 2002
Posts: 5
Default

Thanks Juan Pablo

I tried this but I couldn't get the  into the Replace dialog box.
osullj is offline   Reply With Quote
Old Feb 27th, 2002, 09:35 AM   #4
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

Can you look at the ASCII code of that character ? VBA can replace it easilty.

Cells.Replace What:=Chr(14), Replacement:="$"


Replace the 14 with the actual number. (It may be a 10 or a 13)
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Feb 27th, 2002, 09:39 AM   #5
osullj
New Member
 
Join Date: Feb 2002
Posts: 5
Default

How do I look at the ASCII code?
osullj is offline   Reply With Quote
Old Feb 27th, 2002, 09:40 AM   #6
DRJ
MrExcel MVP
 
DRJ's Avatar
 
Join Date: Feb 2002
Location: California
Posts: 3,857
Default

What you can do is copy the character that you want to replace and then in the replace dialog Paste (Ctrl + C) it and it will show up then you can replace with what you want. I tried it and when I copied the square character and pasted it in the replace dialog it showed up as a circle with a squiggly line on top, but it worked fine while replacing.

HTH

DRJ

DRJ is offline   Reply With Quote
Old Feb 27th, 2002, 09:44 AM   #7
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

Quote:
On 2002-02-27 08:39, osullj wrote:
How do I look at the ASCII code?
In the character map, look at the number that appears at the bottom left. "Alt xxxx"

Or paste the strange symbol to Excel, and use this formula

=CODE(A1)

where A1 has the symbol.
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Feb 27th, 2002, 09:55 AM   #8
osullj
New Member
 
Join Date: Feb 2002
Posts: 5
Default

Thanks DRJ. I know it sound crazy but when I do that the paste in to replace dialog box come up blamk.

I used =CODE to determine that the ASCII number is 10. Juan Pablo you gave me the vba script above. I have never used VBA so how do I use it to do this.

Thanks John
osullj is offline   Reply With Quote
Old Feb 27th, 2002, 09:57 AM   #9
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

Hit Alt F11
Hit Control G

There you should see a blank window titled "Inmediate".

Paste this there:

Cells.Replace What:=Chr(10), Replacement:="$"

and hit Enter (While the cursor is in that line).
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Feb 27th, 2002, 09:58 AM   #10
DRJ
MrExcel MVP
 
DRJ's Avatar
 
Join Date: Feb 2002
Location: California
Posts: 3,857
Default

Hi

To use VBA hit ALT+F11 to open the VB editor then go to insert then module.

In the module type this

Sub MyCode()


End Sub


Put your code in between those two lines and then press the play button to run the macro.

HTH

DRJ
DRJ is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes