Apr 16 2023 02:38 PM
I have to calculate the comission for each sales. Each Sales Person, selling to a specific Customers, a specific Product, at a specific price, has it comission calculate in different way.
So I have listed all conditions, and concatenated inside an AND formula to check if that specific condition is matched later, if so, it returns how the comission is calculated.
Then I TEXTJOIN all this conditions into a IFS formula, so for each line, I can check the comission.
Then I paste this huge formula into the sales sheets, to calculate each comission. But now I can't save my file because this formula exceeds 8192 characters.
How can I handle this problem? Is there another easier way to check several conditions to calculate the comission?
Apr 17 2023 12:34 AM
You can use a combination of IF, VLOOKUP, and CONCATENATE functions to create a single formula that checks several conditions to calculate commission.
Here are the steps:
This formula checks if Sales Person is “Sales Person 1” and Customer is “Customer 1” and Product is “Product 1” and Price is 100 then it uses the first VLOOKUP function to calculate commission otherwise it checks if Sales Person is “Sales Person 2” and Customer is “Customer 2” and Product is “Product 2” and Price is 200 then it uses the second VLOOKUP function otherwise it returns an empty string.
I hope this helps!