Finally, I've tried VBA recording and get:
[VBA]
Sub Macro1()
Range("F4").FormulaR1C1 = "=COUNTIF(sample!R[-3]C[-5]:R[496]C[-5],""<=""&calculations!RC[-4])"
Range("F4").AutoFill Destination:=Range("F4:F13"), Type:=xlFillDefault
End Sub[/VBA]
It works now![]()