A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
You can get the row like this
Sub gage()
Dim MyColumn As String, x As Long
Dim OutColumn As String, y As Long
Dim Row As Integer
'Column we're looking in
MyColumn = "F"
'column to output data
OutColumn = "Q"
For x = Cells(Rows.Count, MyColumn).End(xlUp).Row To 2 Step -1
If Len(Cells(x, MyColumn)) = 4 Then
If Mid(Cells(x, MyColumn), 1, 1) Like "[0-9]" And _
Mid(Cells(x, MyColumn), 2, 1) Like "[0-9]" And _
Mid(Cells(x, MyColumn), 3, 1) Like "[A-Za-z]" And _
Mid(Cells(x, MyColumn), 4, 1) Like "[A-Za-z]" Then
y = Cells(x, MyColumn).Row
Cells(y, OutColumn) = Left(Cells(x, MyColumn), 2)
y = y + 1
'End If
End If
End If
Next x
End Sub