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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What else besides numbers and text can column A contain?
 
Upvote 0

Forum statistics

Threads
1,215,999
Messages
6,128,193
Members
449,431
Latest member
Taekwon

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