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

SAMCRO2014

Board Regular
Joined
Sep 3, 2015
Messages
160
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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
What else besides numbers and text can column A contain?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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