VB code - convert numeric text to values.

thunderfoot

Board Regular
Joined
May 28, 2004
Messages
229
I have a spreadsheet into which a numeric table has been imported from a PDF file. All the numeric values in this table are showing as text entries now it's in EXCEL.
I could use the VALUE() function to convert all cells to Numeric Values, but just wondering if it's possible to run a small VBA routine to convert numeric numbers shown as text to values?

Say, the table is in cells A1:Z60.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi,

A non VBA option:

Type in 1 into an empty cell.
Copy it.
Select the range A1:Z60
Right click | PasteSpecial
In the Operation frame, select the Multiply option.
Click on OK.
Clear the 1 out of the empty cell.
 
Upvote 0

Forum statistics

Threads
1,207,195
Messages
6,077,010
Members
446,250
Latest member
Dontcomehereoften

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top