…or write your own user-defined function. See B6 in the attached.
=CountOfRowsWithNOrMoreConsecutiveXs(A1:G4,5)
(Case insensitive)
Code:
Function CountOfRowsWithNOrMoreConsecutiveXs(myRange, N)
Vals = myRange.Value
For rw = 1 To UBound(Vals)
ThisRowCount = 0
For colm = 1 To UBound(Vals, 2)
If InStr(1, UCase(Vals(rw, colm)), "X") > 0 Then ThisRowCount = ThisRowCount + 1 Else ThisRowCount = 0
If ThisRowCount >= N Then
RowCount = RowCount + 1
Exit For
End If
Next colm
Next rw
CountOfRowsWithNOrMoreConsecutiveXs = RowCount
End Function