georgecolta
New member
- Joined
- Jun 10, 2017
- Messages
- 1
- Reaction score
- 0
- Points
- 0
[FONT="]I need to put the below conditions in an excel formula. (preferred using the IF function)[/FONT]
[FONT="]it's very tricky because the conditions vary depending on the units used, and inside each category, the price of the unit is different.[/FONT]
[FONT="]category 1 * if you used, 0:50 units, the price will be 11 cents per unit.[/FONT]
[FONT="]category 2 * if used 51:100, the price is 19 cents per the extra unit.[/FONT]
[FONT="]category 3 * if used 0:200, the price is 21 cents per unit.[/FONT]
[FONT="]category 4 * if used 201:350, the price is 42 cents per extra unit.[/FONT]
[FONT="]category 5 * if used 351:650, the price is 55 cents per extra unit.[/FONT]
[FONT="]category 6 * if used 651:1000, the price is 95 cents per extra unit.[/FONT]
[FONT="]category 7 * if used 0:1001 or more, the price is 95 cents per unit.[/FONT]
[FONT="]*Important*[/FONT]
[FONT="]example to clarify,[/FONT]
[FONT="]if one used 100 units, the the price will be (50*11) + (50*19) = 550 + 950 = 1500[/FONT]
[FONT="]however if one used 101 units, the price will be 101*21 = 2121[/FONT]
[FONT="]another example,[/FONT]
[FONT="]if one used 700 units, the price will be (notice that we will check category 3 as a minimum price from 0) [/FONT]
[FONT="](200*21) +(150*42) + (300*55) + (50*95) = 4200 + 6300 + 16500 + 4750 = 31750 cents = 317.5 Euros.[/FONT]
[FONT="]notice that such variation takes place in category 1, 3 and 7.[/FONT]
[FONT="]Thank you in advance.[/FONT]
[FONT="]it's very tricky because the conditions vary depending on the units used, and inside each category, the price of the unit is different.[/FONT]
[FONT="]category 1 * if you used, 0:50 units, the price will be 11 cents per unit.[/FONT]
[FONT="]category 2 * if used 51:100, the price is 19 cents per the extra unit.[/FONT]
[FONT="]category 3 * if used 0:200, the price is 21 cents per unit.[/FONT]
[FONT="]category 4 * if used 201:350, the price is 42 cents per extra unit.[/FONT]
[FONT="]category 5 * if used 351:650, the price is 55 cents per extra unit.[/FONT]
[FONT="]category 6 * if used 651:1000, the price is 95 cents per extra unit.[/FONT]
[FONT="]category 7 * if used 0:1001 or more, the price is 95 cents per unit.[/FONT]
[FONT="]*Important*[/FONT]
[FONT="]example to clarify,[/FONT]
[FONT="]if one used 100 units, the the price will be (50*11) + (50*19) = 550 + 950 = 1500[/FONT]
[FONT="]however if one used 101 units, the price will be 101*21 = 2121[/FONT]
[FONT="]another example,[/FONT]
[FONT="]if one used 700 units, the price will be (notice that we will check category 3 as a minimum price from 0) [/FONT]
[FONT="](200*21) +(150*42) + (300*55) + (50*95) = 4200 + 6300 + 16500 + 4750 = 31750 cents = 317.5 Euros.[/FONT]
[FONT="]notice that such variation takes place in category 1, 3 and 7.[/FONT]
[FONT="]Thank you in advance.[/FONT]