welcome to justanswer
You are correct If the margin in amount is less than 250 units the shown amount should be 250 units If the margin is more than 1200 units the shown amount should be 1200 units If the margin is more than 250 but less than 1200 the margin is 20% och the price. margin<250 margin=250 margin>1200 margin=1200 margin lies between 250 and 1200 that is if margin is greater than 250 and less than 1200 then it should be the 20% of the price or equal to the margin you have calculated. Your first two examples are absolutely correct
For the 3rd one take one more example
if product price 2000
margin=20% of the price=400
it lies between 250 and 1200 .
so margin will be the same i.e 20 % of the price=400
The calculation is a price matrix.
this is what my understanding of the problem
i will opt out for other experts as i am running out of time
The price on a product should be 250 on lower margins and 1200 on higher margins but be the margin inbetween the low and the high. I tried with this formula: =IF(C75<=C76;C76;IF(C75>=C77;C77;IF(AND(C75>=C76;C75<=C77;C75)))) C75=Margin, C76=250, C77=1200
Your example "For the 3rd one take one more example" is correct!
I have tried your calculation and when I write: =IF(B4<=250,250,IF(B4<1200,B4,1200)) it does not work - i get a message from excel that there is a fault in the formula. I then tried to change , to ; and It seems to work with 10 000. But when I lower it to 5 000 it does not work.
And wehn i go through the lower ranges it is OK until i reach the breakpoint and the system directly leav no margin... How can I use , instead of ;?
I am very thankful for your help!I will most definately return with more questions in the future.