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 Mar 1st, 2002, 10:39 AM   #1
Tap
New Member
 
Join Date: Feb 2002
Posts: 14
Default

HI I have one column in a spreadsheet which holds address details, I need to split this in to different columnd
I tried Text to column but that seems to truncate some of the data

there is a delimiter which is | and ||
which represent new lines

I have tried everything but canmt get it to work
here is what the data looks like

Contact-1234||Mr John Doe|Doe and Company|Doe House|1 The Mall|West Street|Zip 123||Tel: 0123456789||Description

Thaks in advance

Tap is offline   Reply With Quote
Old Mar 1st, 2002, 10:46 AM   #2
mrowe
Board Regular
 
Join Date: Feb 2002
Posts: 232
Default

You could do a find and replace on "|", changing it to ";".

You might find you get some changes like ";;" so just do a find and replance on "::" to ";"

Save you spread sheet as .txt. Open the txt file with excel and follow the wizard using the Delimited option and select the semicolon as the separator.

This will put split out your data.

Hope that helps
mrowe is offline   Reply With Quote
Old Mar 1st, 2002, 10:54 AM   #3
Tap
New Member
 
Join Date: Feb 2002
Posts: 14
Default

I tried that but find dont work
when the filed is expanded the | turns in to a little square box

any suggestions?
Tap is offline   Reply With Quote
Old Mar 1st, 2002, 11:17 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-01 09:54, Tap wrote:
I tried that but find dont work
when the filed is expanded the | turns in to a little square box

any suggestions?
What do you get if you apply to the example text which is now in Excel:

=CODE(MID(A1,13,1)) ?

Modify and apply the above to char "|".
Aladin Akyurek is offline   Reply With Quote
Old Mar 2nd, 2002, 03:48 AM   #5
Tap
New Member
 
Join Date: Feb 2002
Posts: 14
Default

Not sure what to do with this?
Tap is offline   Reply With Quote
Old Mar 2nd, 2002, 04:36 AM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-02 02:48, Tap wrote:
Not sure what to do with this?
You said "when the filed is expanded the | turns in to a little square box". That means "|" is probably not a bar but something else. The CODE formula will tell us what char that "|" is.

That formula works like this:

In A1 enter: Tap

When I want to know the ascii code of the third char/letter van the string in A1, I apply:

=CODE(MID(A1,1,3))

which returns 116.

Look at hhtp//www.asciitable.com

to see what letter is encoded with 116. And You'll understand what I'm after.
Aladin Akyurek is offline   Reply With Quote
Old Mar 2nd, 2002, 03:40 PM   #7
Tap
New Member
 
Join Date: Feb 2002
Posts: 14
Default

Brilliant thankyou I now nknow the the ascii value which is 13
but how can I change it to 172 which is ¬

I looked in help it says to go to convtext.exe I dpnt seem to have that file?
is ther another way

thank you
Tap is offline   Reply With Quote
Old Mar 2nd, 2002, 03:56 PM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-03-02 14:40, Tap wrote:
Brilliant thankyou I now nknow the the ascii value which is 13
but how can I change it to 172 which is ¬

I looked in help it says to go to convtext.exe I dpnt seem to have that file?
is ther another way

thank you
Tap,

Step 1

In B1 enter:

=SUBSTITUTE(A1,CHAR(13),"@")

Copy down this to replace the undesired char by @.

Step 2

Select all of the relevant cells in B, copy the selection, and execute Edit|Patse Special >Values over itself (thus in place).

Step 3

Apply to B-cells using the option Data|Text to Columns >Delimited and typing in the Other box "@" (without quotes) as delimiter.

Aladin




Aladin Akyurek is offline   Reply With Quote
Old Mar 3rd, 2002, 03:25 AM   #9
Tap
New Member
 
Join Date: Feb 2002
Posts: 14
Default

A BIG BIG thank you
it did the job wonderuelly


Thanks again

Tap
Tap 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:39 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