Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Application.EnableEvents = False
On Error GoTo err
If Not Intersect(Target, Columns("I:I")) Is Nothing Then
If Target = 0 Then
Target.Offset(0, 1).SparklineGroups.Clear
Else
Target.Offset(0, 1).SparklineGroups.Add Type:=xlSparkLine, _
SourceData:=Target.Offset(0, -2).Resize(1, 3).Address
End If
End If
err:
Application.EnableEvents = True
End Sub