calvinsheep
New Member
- Joined
- Apr 22, 2019
- Messages
- 2
I have a question on returning X customer's discount percentage Y, based on their Z spend amount.Ie: I have a list of 5000 customers, Various min and max spend and its corresponding discount. For customer John, i can locate John by index match among the list of customers. Then when at customer John, John has 3 different discount structure based on John's spend ($0-$1000 returns 10%, $1001 to $2000 returns 20%, $2001 to $3000 returns 30%). John has spend $1500, therefore the output I am after is 20%. How can I write this formula?I have tried using SUMPRODUCT(Customer array 5000 = John)*(Spend1500=> Min amount)*(spend1500=< max amount)*(discount="" array)
if you could kindly shed some light please, it would be much appreciated thanks.
if you could kindly shed some light please, it would be much appreciated thanks.
Last edited by a moderator: