+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    01-09-2009
    Location
    dublin,ireland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Calculating with some rules

    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

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477
    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%,""))))

  3. #3
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,118
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0