Remove rows that contain numbers

fari1

Active Member
Joined
May 29, 2011
Messages
362
hi, i've in column data that contain text and numbers together, i want to delete those cells that contain numbers as well alongwith text, i just want to keep those cells that contain text.
would appreciate any help
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Give this code a try...

Code:
StartRow = 2
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
For X = LastRow To StartRow Step -1
  If Cells(X, "A").Value Like "*#*" Then Cells(X, "A").EntireRow.Delete
Next
Note that StartRow (where your data starts in Column A) and LastRow should be Dim'med as Long.
 
Upvote 0
hi rick,its working, but taking too long, can't get some quick code?
Does this change help any...
Code:
StartRow = 2
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
With Application
  CurrentScreenUpdating = .ScreenUpdating
  CurrentCalculate = .Calculation
  CurrentEnableEvents = .EnableEvents
  .ScreenUpdating = False
  .Calculation = xlCalculationManual
  .EnableEvents = False
End With
For X = LastRow To StartRow Step -1
  If Cells(X, "A").Value Like "*#*" Then Cells(X, "A").EntireRow.Delete
Next
With Application
  .ScreenUpdating = CurrentScreenUpdating
  .Calculation = CurrentCalculate
  .EnableEvents = CurrentEnableEvents
End With
The CurrentScreenUpdating, CurrentCalculate and CurrentEnableEvents should also be Dim'med as Long.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

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