Method 1. If the data is in column A and the statistical range is A1:A100, enter or copy the following formula:
=SUMPRODUCT((A1:A100>1000)*(A1 :A100<2000)*A1:A100)
Note: The statistical range should be adjusted based on actual conditions.
Method 2:
=SUMIF(A:A,">1000")-SUMIF(A:A,">=2000")