Cells formating

Boris7265

Board Regular
Joined
Apr 6, 2011
Messages
68
Hello all of you .

I have a problem in a Excel file that I import from Access.The file in the big (10000-15000 rows) and numeric datas in colum A and B have import with "*" .I would like to create a macro that remove all "*" and other sings that are not number from coulm A and B and leave only numbers in there.
Thank you for your help.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Are you sure you need a macro? If you select the column of data, then press Ctrl+H and in the Find what field enter ~* you can click Replace all and the asterisks * will be gone. The VBA code line for that if for example you want to get rid of those charactars in columns A, B, and C

Columns("A:C").Replace What:="~*", Replacement:="", LookAt:=xlPart
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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