Sub Ex()
Sheet6.Visible = True
Sheet6.Select
Range("A1").Select
Sheet6.[A2:C65536].ClearContents
Dim R As Long, C As Long, Cmax As Integer
With ActiveSheet.Range("A1").CurrentRegion
.Cells.Interior.ColorIndex = xlNone
For R = 2 To .Rows.Count
C = 5
Do While C <= .Columns.Count
Cmax = 0
Do While .Cells(R, C + Cmax) <> ""
Cmax = Cmax + 1
Loop
If Cmax >= 5 Then .Cells(R, 1).Value = "T"
C = C + 1 + Cmax
Loop
Next
For R = 2 To .Rows.Count
C = 5
Do While C <= .Columns.Count
Cmax = 0
Do While .Cells(R, C + Cmax) <> ""
Cmax = Cmax + 1
Loop
If Cmax >= 6 Then .Cells(R, 2).Value = "T"
C = C + 1 + Cmax
Loop
Next
For R = 2 To .Rows.Count
C = 5
Do While C <= .Columns.Count
Cmax = 0
Do While .Cells(R, C + Cmax) <> ""
Cmax = Cmax + 1
Loop
If Cmax >= 7 Then .Cells(R, 3).Value = "T"
C = C + 1 + Cmax
Loop
Next