It replaces all of your code.
Sub jarhead58()
With Sheets("Sheet1")
Select Case Range("E3").Value
Case Is < 9
If .Range("E6") = 12 Then
.Range("E6").Value = ""
.Range("E3").Value = .Range("E3").Value + 1
Else
.Range("E6").Value = .Range("E6").Value + 1
If IsEmpty(.Range("$E3")) = True Then
.Range("$E3").Value = .Range("$E3").Value + 1
End If
End If
Case Is > 8
If .Range("E6") = 14 Then
.Range("E6").Value = ""
.Range("E3").Value = .Range("E3").Value + 1
Else
.Range("E6").Value = .Range("E6").Value + 1
If IsEmpty(.Range("$E3")) = True Then
.Range("$E3").Value = .Range("$E3").Value + 1
End If
End If
End Select
End With
End Sub
How aboutCode:Sub jarhead58() With Sheets("Sheet1") Select Case Range("E3").Value Case Is < 9 If .Range("E6") = 12 Then .Range("E6").Value = "" .Range("E3").Value = .Range("E3").Value + 1 Else .Range("E6").Value = .Range("E6").Value + 1 If IsEmpty(.Range("$E3")) = True Then .Range("$E3").Value = .Range("$E3").Value + 1 End If End If Case Is > 8 If .Range("E6") = 14 Then .Range("E6").Value = "" .Range("E3").Value = .Range("E3").Value + 1 Else .Range("E6").Value = .Range("E6").Value + 1 If IsEmpty(.Range("$E3")) = True Then .Range("$E3").Value = .Range("$E3").Value + 1 End If End If End Select End With End Sub
With Sheets("Sheet1")
Select Case Range("E3").Value
Case 1 To 8, 11, 15
If .Range("E6") = 12 Then
.Range("E6").Value = ""
.Range("E3").Value = .Range("E3").Value + 1
Else
.Range("E6").Value = .Range("E6").Value + 1
If IsEmpty(.Range("$E3")) = True Then
.Range("$E3").Value = .Range("$E3").Value + 1
End If
End If
Case 9, 10, 12 To 14, 16
If .Range("E6") = 14 Then
.Range("E6").Value = ""
.Range("E3").Value = .Range("E3").Value + 1
Else
.Range("E6").Value = .Range("E6").Value + 1
If IsEmpty(.Range("$E3")) = True Then
.Range("$E3").Value = .Range("$E3").Value + 1
End If
End If
End Select
End With
That's right, also if seasons 1-8, 11 & 15 were 12 episodes & seasons 9-10,12-4 & 16 were 14 episodes you can use it likeCode:With Sheets("Sheet1") Select Case Range("E3").Value Case 1 To 8, 11, 15 If .Range("E6") = 12 Then .Range("E6").Value = "" .Range("E3").Value = .Range("E3").Value + 1 Else .Range("E6").Value = .Range("E6").Value + 1 If IsEmpty(.Range("$E3")) = True Then .Range("$E3").Value = .Range("$E3").Value + 1 End If End If Case 9, 10, 12 To 14, 16 If .Range("E6") = 14 Then .Range("E6").Value = "" .Range("E3").Value = .Range("E3").Value + 1 Else .Range("E6").Value = .Range("E6").Value + 1 If IsEmpty(.Range("$E3")) = True Then .Range("$E3").Value = .Range("$E3").Value + 1 End If End If End Select End With