A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Both above code is saying no cell found, when already there are cells with error
It would appear that your #REF! errors are actually text representations of errors or error values that are not produced by formulas. Try this modification to my routine that searches for #REF! error values,
Sub mcrLastNonError()
Dim lastrow As Long, e As Long, selectsz As Long
selectsz = 15 'try for a maximum of 15 rows
lastrow = Cells(Rows.Count, "B").End(xlUp).Row
For e = lastrow To 1 Step -1
If Not WorksheetFunction.IsError(Range("B" & e)) Then Exit For
Next e
Range("B" & e - Application.Min(e, selectsz) + 1). Resize(Application.Min(e, selectsz), 1).Select
End Sub