Clear contents of cells if it contains any text or number <2904 Loop

SAMCRO2014

Board Regular
Joined
Sep 3, 2015
Messages
158
I am trying to create a loop that will clear the contents in column A if the value is less than 2904 OR contains any text.

I am struggling with the text portion of the loop. The text is different in each cell. This is what I have:

Dim LastRow2 As Long
LastRow2 = PLSR.Cells(Rows.Count, 2).End(xlUp).Row

For x = LastRow2 To 2 Step -1

If Cells(x, 1).Value < 2904 or Cells(x,1).Value = ????????
Cells(x, 1).ClearContents
End If

Next x

How do it look for ANY text? I only know how to look for specific text.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
What else besides numbers and text can column A contain?
 
Upvote 0

Forum statistics

Threads
1,215,195
Messages
6,123,572
Members
449,108
Latest member
rache47

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