For X = 9 To 36
For Y = 8 To 22 Step 14
If WS1.Cells(X, 1) = "TOT" Then X = X + 2
Buy= WorksheetFunction.SumIfs(Calls, Hour, WS1.Cells(X, 1), Data, WS1.Cells(Y, 2), Service, Number) + WorksheetFunction.SumIfs(Calls, Hour, WS1.Cells(X, 1), Data, WS1.Cells(Y, 2), Service, Number2)
WS1.Cells(X, 2) = Buy
This should make it like X = 8 Y = 8, X = 9 Y = 8, X = 10 Y = 8 etc till 21 where it "jumps" to 23 and Y should do the same and go to 22 So basically Y has to jump 14 (or its X - 1) But for some reason it doesnt work