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 Apr 29th, 2002, 06:46 AM   #1
mikadillo
New Member
 
Join Date: Apr 2002
Posts: 3
Default

I am a newbie to Excel (forced away from Lotus) and have a large work sheet that I want to put double quotes around the data in only 1 column. I have tried but can't seem to find the answer. There must be a simple solution. Thanks for the help.
mikadillo is offline   Reply With Quote
Old Apr 29th, 2002, 06:50 AM   #2
Robb__
New Member
 
Join Date: Apr 2002
Posts: 41
Default

mikadillo

Try typing ' before the entry ie '"123"

Any help?

Regards

Robb__
Robb__ is offline   Reply With Quote
Old Apr 29th, 2002, 06:57 AM   #3
mikadillo
New Member
 
Join Date: Apr 2002
Posts: 3
Default

Thanks for the quick answer Robb but that only puts it in the top cell. I have thousands of rows and to get it in all of them. I am a rank amateur at this and so maybe I did it wrong.
mikadillo is offline   Reply With Quote
Old Apr 29th, 2002, 07:05 AM   #4
Iain Lewis
Board Regular
 
Join Date: Apr 2002
Location: Midlands, UK
Posts: 217
Default

Have a look at the add in available from

http://www.asap-utilities.com/

One of it's many functions is the ability to add a character(s) at the start of a cell or a range of cells.
Iain Lewis is offline   Reply With Quote
Old Apr 29th, 2002, 07:07 AM   #5
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-29 05:46, mikadillo wrote:
I am a newbie to Excel (forced away from Lotus) and have a large work sheet that I want to put double quotes around the data in only 1 column. I have tried but can't seem to find the answer. There must be a simple solution. Thanks for the help.
In B1 enter:

=CHAR(34)&A1&CHAR(34)

where A1 holds the first entry to wrap between double quotes.

Give a double click on the fill handle (the little black square) in the lower-right corner of B1 in order to copy down the formula.

May I ask why you need to do this double quoting?
Aladin Akyurek is offline   Reply With Quote
Old Apr 29th, 2002, 07:34 AM   #6
Tom Urtis
MrExcel MVP
 
Tom Urtis's Avatar
 
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,387
Default

You may also want to try a VBA work-around, if you want to achieve this effect automatically as you enter values in that column.

Right click on your sheet tab, left click on View Code, and paste this in:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 1 Or Target.Cells.Count > 1 Then Exit Sub
Application.EnableEvents = False
Target = "'''" & Target & "''"
Application.EnableEvents = True
End Sub

Please note a few important points:

(1) This code is for column A (that's what the "1" means in the line "Target.Column <> 1 "). Modify for column number as needed.

(2) Any numbers you enter will not be of much use to you in trying to do calculations with them, unless you use some advance formula techniques.

(3) It will work with drag and drop but not with AutoFill when the source active cell is outside column A.

(4) You will lose the Undo feature on this worksheet.

FYI, the quotes within the quotes are actually apostrophes. The preceding quotes are 3 apostrophes, and the proceeding ones are 2 apostrophes.

Kind of ugly looking code but I think it does what you are asking, in addition to the formula solutions offered above.

Any help?

_________________
Tom Urtis

[ This Message was edited by: Tom Urtis on 2002-04-29 06:39 ]
Tom Urtis is offline   Reply With Quote
Old Apr 29th, 2002, 07:47 AM   #7
mikadillo
New Member
 
Join Date: Apr 2002
Posts: 3
Default

Thanks for the replies I will try to get to them later today. I am exporting data from a practice management program in various parts to create a final CSV file for import to a new program. The new program requires that the the data in one field be in double quotes in order to import it. Its 4,000 rows and 40 columns.
mikadillo is offline   Reply With Quote
Old Apr 29th, 2002, 08:21 AM   #8
croweld89
New Member
 
Join Date: Mar 2002
Posts: 34
Default

Maybe an easier solution for a "Excel Newbie" would be to find/replace all quotation marks with '"

I am assuming that you already have quotations around all numbers. Simply, hold down the alt key and press the H key. Put " in the find field and '" in the replace field.

I would hit the find next key first to make sure you get the results you want, and then the replace all key.

-Dave
croweld89 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 05:29 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