R
RD
What would be the equivalent function in Access/SQL Server for CEILING(number, significance) in Excel? I have a requirement to create a pricing database that takes Total Cost and marks it up by a variable margin. It's variable in the sense that different parts get different margins. The following are the fields used to calculate total cost:
DIRECT MATERIAL DIRECT LABOR OVERHEAD TOTAL COST UNIT GROSS MARGIN
By entering the selling price they can analyze the gross margin for that part. Then based on their satisfaction with the Gross Margin they'll pass the selling price to me at I'll enter it into the "START" field of the following example. You'll notice that all discounts (VL1-4) are calculated off of the DEALER BASE value. The discounts for VL1-4 are predetermined and do not change. For example to calculate the price for VL1, the formula is =Dealer Base * .96
START MSRP RAW DEALER BASE VOLUME LEVEL 1 VOLUME LEVEL 2 VOLUME LEVEL 3 VOLUME LEVEL 4
$8,650 $10,816 $9,202 $9,205 $8,837 $8,745 $8,653 $8,393
The CEILING function is used by taking the RAW value ($9202) and rounding up so that the result ends in either 0 or 5. The formula reads =CEILING(C2, 5) where C2 equals the RAW value and 5 is the significance we round by.
Another swizzle to this is when they begin stacking the discounts, e.g. VL4= VL3 * .97. How should we tackle this?
In the end, I'd like to publish different price lists for each part for sale by discount level. For example, MSRP Price List, Base Price List, L1 Price List, L2 Price List, L3 Price List and so forth.
Any suggestions?
Reid Deputy
DIRECT MATERIAL DIRECT LABOR OVERHEAD TOTAL COST UNIT GROSS MARGIN
By entering the selling price they can analyze the gross margin for that part. Then based on their satisfaction with the Gross Margin they'll pass the selling price to me at I'll enter it into the "START" field of the following example. You'll notice that all discounts (VL1-4) are calculated off of the DEALER BASE value. The discounts for VL1-4 are predetermined and do not change. For example to calculate the price for VL1, the formula is =Dealer Base * .96
START MSRP RAW DEALER BASE VOLUME LEVEL 1 VOLUME LEVEL 2 VOLUME LEVEL 3 VOLUME LEVEL 4
$8,650 $10,816 $9,202 $9,205 $8,837 $8,745 $8,653 $8,393
The CEILING function is used by taking the RAW value ($9202) and rounding up so that the result ends in either 0 or 5. The formula reads =CEILING(C2, 5) where C2 equals the RAW value and 5 is the significance we round by.
Another swizzle to this is when they begin stacking the discounts, e.g. VL4= VL3 * .97. How should we tackle this?
In the end, I'd like to publish different price lists for each part for sale by discount level. For example, MSRP Price List, Base Price List, L1 Price List, L2 Price List, L3 Price List and so forth.
Any suggestions?
Reid Deputy