Hi All. Perhaps someone might be able to assist.
I need to a formula which can calculate the cost of various types of glass subject to the following rules.
1. if area is below 0.4 m2 then the cost should not be less than 0.4m2 cost.
2. if area is above 3.2m2 cost should be plus 35%.
3. if area is above 4.2m2 cost should be plus 45%.
Best regards
size in a1 cost per m2 in b1
Code:=if(and(a1>0,a1<=0.42),0.42*b1,if(and(a1>0.42,a1<=3.2),a1*b1,if(and(a1<=4.2,a1>3.2),(a1*b1)+(a1*b1)*35%,if(a1>4.2,(a1*b1)+(a1*b1)*45%,""))))
Or =IF(A1 = 0, "", MAX(A1, 0.42) * B1 * (1 + 35% * (A1 > 3.2) + 10% * (A1 > 4.2) ) )
Last edited by shg; 01-09-2009 at 07:37 PM.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks