I need to be able to find the first value in column P that is above 89 & below 91 & stop there. The VBA I am using now keeps going & doesn't stop. Because of how I am using it I would like to leave it in VBA & not a formula. Looking for any help. Thanks in advance. Here is what I currently have:
For x1 = 2 To Range("P" & Rows.Count).End(xlUp).Row
If Range("P" & Format(x1) - 1).Value < "91" _
And Range("P" & Format(x1)).Value > "89" _
And Range("P" & Format(x1)).Value > "0" Then
Range("V22") = Range("N" & Format(x1)).Value
End If
Next
For x1 = 2 To Range("P" & Rows.Count).End(xlUp).Row
If Range("P" & Format(x1) - 1).Value < "91" _
And Range("P" & Format(x1)).Value > "89" _
And Range("P" & Format(x1)).Value > "0" Then
Range("V22") = Range("N" & Format(x1)).Value
End If
Next