Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - Convert Text to Values

Status
Not open for further replies.

reichertc

Technical User
Jul 4, 2002
13
CA
Hi folks,

I often am given large quantities of data from a database, which has been put into an excel file. I am then asked to perform calculations based upon the data that has been dumped on me. The problem is that often the "numbers" come accross in Excel's text format. I would like to program a button onto my toolbar where I could select a range of cells, click the button, and have all text converted to values...

I struggle pretty hard with VBA, so any advice on how to do this would be appreciated.
 
Try this :

Copy an empty cell.

Select you range to convert. From the Edit menu select PasteSpecial, and under the Operation section select Add

If you want any formatting to apply to the converted data, apply such formatting to the blank cell before you copy it.

You could also copy a cell with a value of 1 (also formatted as required) and instead of Add select Multiply.

A.C.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top