Clear Cells with #'s Plz hlp

omegadeltaphi

New Member
Joined
Jul 10, 2011
Messages
30
I have 4 columns A,B,C,D
thousands of rows

Column B: has some data that is #'s only (not important)
........................so i need to empty those cells with #'s only in
that column

any macros?

thanks in advance

Steve G:confused:
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Here you go. You can edit the range A1:D1000 to the scope of the range all your numbers are in, or you can change Range("A1:D5000") to Selection and then highlight whatever you want to remove numbers and run the macro.

Code:
Sub NumberRemove()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

For Each c In Range("A1:D5000")
    If WorksheetFunction.IsNumber(c.Value) Then c.ClearContents
Next

Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Code:
Sub num()
Application.ScreenUpdating = False
For Each b In Range("B:B")
    With WorksheetFunction
        If .IsNumber(b) Then b.ClearContents
    End With
Next
Application.ScreenUpdating = True
End Sub
 
Upvote 0
thanks to both of u for helping but for some reason Cwatts
yours worked and


Villy when i tried your it didnt

but like i said thanks to both of you

Steve G;)
 
Upvote 0

Forum statistics

Threads
1,224,589
Messages
6,179,744
Members
452,940
Latest member
rootytrip

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