Auto convert text number to number

WLH65

New Member
Joined
Sep 6, 2011
Messages
1
I import from an outside source 300+ numbers in to a shett (INPUT), but the numbers come in as text. Other EXCEL sheets (OUTPUT) are linked to cells within INPUT. The numbers in OUTPUT are to be displayed as dollars. Is there a way the text numbers can be automatically converted to numbers on input to INPUT? I'd hope I would not have to highlight the 300+ cells and manually convert them. This would add another operation tto the overall process of creating various financial reports. Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
suppose text numbers are in column A then try this macro

Code:
sub test
dim r as range, c as range
set r=range(range("A2"),range("A2").end(xldown))  'row 1 is header row
for each c in r
c=c+0
next c
end sub
sometimes this works.
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,220
Members
452,895
Latest member
BILLING GUY

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