G
Guest
Try...
=INT(D21/15)*6000+IF(D21-INT(D21/15)*15>10,6000,IF(D21-
INT(D21/15)*15>5,4500,IF(D21-INT(D21/15)*15>0,3000,0)))
Hope this works for you
created based on a number in a column. For instance i
charge $3000 for a training class for a maximum of 5
people. The class cannot be more than 15 people and the
max price for 15 is $6000. So, the first five is 3000 and
each additional 5 is 1500. But if I have 20 people the
cost would be $9000, because there is a second class of 5
involved now.
=INT(D21/15)*6000+IF(D21-INT(D21/15)*15>10,6000,IF(D21-
INT(D21/15)*15>5,4500,IF(D21-INT(D21/15)*15>0,3000,0)))
Hope this works for you
a total price based on a formula where the total is-----Original Message-----
I want to create a function that would help me calculate
created based on a number in a column. For instance i
charge $3000 for a training class for a maximum of 5
people. The class cannot be more than 15 people and the
max price for 15 is $6000. So, the first five is 3000 and
each additional 5 is 1500. But if I have 20 people the
cost would be $9000, because there is a second class of 5
involved now.