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 12th, 2002, 07:04 PM   #1
Guest
 
Posts: n/a
Default

I copied many columns of numerical data from a website into excel, even though the numerical data is in separate columns, excel is treating the numbers as text-I can't format it or use the data in calculations or formulas....can anyone help to convert them into numbers for use on Excel.
Thanks in advance...
Mary
  Reply With Quote
Old Mar 12th, 2002, 07:14 PM   #2
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

I have problems with that myself and usually what I do is paste the data onto Notepad first, select all then paste it into Excel. Not sure if this is the best way, but I do it so infrequently I haven't bothered to find a better way.

HTH
__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Mar 12th, 2002, 07:18 PM   #3
Tom Urtis
MrExcel MVP
 
Tom Urtis's Avatar
 
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,388
Default

There are probably a few ways to do that, one way might be to enter the numeral 1 in a cell, copy the cell, then hilite your range(s), click on Edit > Paste Special, choose Multiply in the Operation section, and hit OK. You could achieve the same effect by entering a 0 in another cell, copying that, and Paste Special for Add.

Any help? If I misunderstood, sorry, please repost.

Tom Urtis
Tom Urtis is offline   Reply With Quote
Old Mar 12th, 2002, 10:27 PM   #4
SamS
Board Regular
 
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
Default

Quote:
On 2002-03-12 18:18, Tom Urtis wrote:
There are probably a few ways to do that, one way might be to enter the numeral 1 in a cell, copy the cell, then hilite your range(s), click on Edit > Paste Special, choose Multiply in the Operation section, and hit OK. You could achieve the same effect by entering a 0 in another cell, copying that, and Paste Special for Add.

Any help? If I misunderstood, sorry, please repost.

Or include the above in your formula eg
=vlookup(A2+0,table,col,false) will do the same thing

Tom Urtis
SamS is offline   Reply With Quote
Old Mar 12th, 2002, 10:38 PM   #5
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,318
Default

> Or include the above in your formula eg
=vlookup(A2+0,table,col,false) will do the same thing

Sam,

A2+0 in VLOOKUP will not alter the format A2, while Edit|Paste Special >Add (adding a zero) will change text-formatted numbers permanently into items that Excel recognizes as numbers.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Mar 12th, 2002, 11:06 PM   #6
Guest
 
Posts: n/a
Default

Highlight the column of data.


Specify how it is to be parsed (fixed or delimited)
  Reply With Quote
Old Mar 12th, 2002, 11:08 PM   #7
Guest
 
Posts: n/a
Default

Let me try that again...
highlight your column of data
select "DATA"
Select "TEXT TO COLUMNS"
Specify how it is to be parsed - fixed width or delimited by spaces, tabs, commas or whatever
  Reply With Quote
Old Mar 13th, 2002, 06:57 PM   #8
Guest
 
Posts: n/a
Default

Thank you for helping....but I tried everything menitoned except for the VLOOKUP function...and nothing worked! Anyone else have any other suggestions, please be specific or detailed as to exactly how to convert text data into numercial data.
Thank you all!!!
Mary
btw, the columns of data I have: one column is date, quantity, and price-but in all in text format.
  Reply With Quote
Old Mar 13th, 2002, 08:16 PM   #9
tk19
New Member
 
Join Date: Mar 2002
Posts: 33
Default

When you first paste to excel, try doing paste special, and try selecting different things, like html, text, etc.

Or, when you paste to notepad, save it as a .txt file. Then open that file from within excel, and use the file importing wizard.

If it turns out that say, there are always five spaces between columns, you could take the text into word, do a find and replace, finding " " and replacing with "," and this will make importing text easier into excel.
tk19 is offline   Reply With Quote
Old Mar 13th, 2002, 10:29 PM   #10
Gahagan
New Member
 
Join Date: Feb 2002
Location: Presque Isle, Maine, USA
Posts: 12
Default

Hi;

Name the range of numbers-seen-as-text "FIX"
and run this code from a module in the VBE (alt+F11):

Sub fixem()
Dim c as range
Dim x as Long
For each c in Range("FIX").cells
x = c.value
c.value = x
Next
End Sub

Try it out on the first couple cells first just to be safe.

Hope this helps...
Gahagan

[ This Message was edited by: Gahagan on 2002-03-13 21:30 ]
Gahagan 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:10 PM.


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