Find first cell that displays nothing

kod2th3e

Board Regular
Joined
Apr 2, 2008
Messages
87
I have formulas in from cells B3 down through B1000 of a spreadsheet that will display "" (nothing) if they evaluate to false. There may be an instance where a particular cell within this column evaluates to false and I am trying to find and select the first cell that displays nothing using the following code:

Code:
Range("B3").End(xlDown).Offset(0, 0).Select

What ends up happening is cell B1001 gets selected even if say cell B651 is empty. I'm not sure what I'm doing wrong/what's missing so any all help anyone can provide would be much appreciated.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
This works...
Code:
Sub Foo()


'Range("B3").End(xlDown).Offset(0, 0).Select


Set Rng = Range("B3:B1000")
For Each C In Rng
    If C = "" Then
        C.Select
    End If


Next C
End Sub
 
Upvote 0
Code:
With Range("b3:b1000")
Set gcell = .Cells.Find("")
End With

this would find the first empty cell in your range
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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