in my table I have customers and their total spend. I need to assign to customers a discount. The amount of discount depends on the amount of spending. For example, <1000 is a discount of 0%, from 1001 to 2000 is a discount of 5%, from 2001 to 3000 is 7%, ...

I have tried IF function, but it is too complicated, because there is a lot of conditions. Is there some other solution?

Thanks.