You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Numbers formula assistance requested

I need to create a formula to deliver approximate shipping costs based on the products $ value.


For instance, Cell A contains the value of our product. Cell B contains the approximate shipping cost. Right now, we calculate .10 of our products cost (cell A) will cover UPS shipping cost (cell B).


However the problem is that with inexpensive products that are worth $40, our calculated shipping cost at 10% is $4 ...and it should be around $12.00


Then, our most expensive products that cost let's say $3,000 the shipping cost should calculate at perhaps only 7% of our products value.


Can you help me create a sliding scale of resulting calculations depending on Cell A's value based on dollar ranges? For instance...


For Cell A values from $10 to $100 Cell B should be calculated at 300%

For Cell A values from $101 to 1,000 Cell B should be calculate at 15%

For Cell A values from $1,001 to 3,000 Cell B should be calculate at 7%

For Cell A values from $3,001 to 10,000 Cell B should be calculate at 5%




Many thanks!

Mac mini 2018 or later

Posted on Aug 13, 2020 2:41 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 14, 2020 12:11 AM

On possible approach is to have a "tiered" calculation, where the first $100 is calculated at one rate, the next $900 at a lower rate, the next $2000 after that at a still lower rate, etc.



The formula in B2, filled down, is:


MAX(0,(MIN(100,A2)−10))×0.4
+MAX(0,(MIN(1000,A2)−100))×0.1
+MAX(0,(MIN(3000,A2)−1000))×0.04
+MAX(0,(MIN(10000,A2)−3000))×0.02


The formula is long, but actually quite simple. It helps to enter it with option-return line endings in the Formula Editor as shown. That way you can easily edit the upper and lower end of the tiers and the rates for each tier. To add a tier simply add a new "row" in the formula starting with the +. To remove a tier, just remove a "row" in the formula.


SG



5 replies
Question marked as Top-ranking reply

Aug 14, 2020 12:11 AM in response to Bill McGowan

On possible approach is to have a "tiered" calculation, where the first $100 is calculated at one rate, the next $900 at a lower rate, the next $2000 after that at a still lower rate, etc.



The formula in B2, filled down, is:


MAX(0,(MIN(100,A2)−10))×0.4
+MAX(0,(MIN(1000,A2)−100))×0.1
+MAX(0,(MIN(3000,A2)−1000))×0.04
+MAX(0,(MIN(10000,A2)−3000))×0.02


The formula is long, but actually quite simple. It helps to enter it with option-return line endings in the Formula Editor as shown. That way you can easily edit the upper and lower end of the tiers and the rates for each tier. To add a tier simply add a new "row" in the formula starting with the +. To remove a tier, just remove a "row" in the formula.


SG



Aug 13, 2020 3:55 PM in response to Bill McGowan

Is this really what you want? The cost in the first tier gets kind of ridiculous and there are large jumps in the shipping cost at certain dollar amounts, kind of like when an offer is "free shipping for over $100" but you order only $99 worth of product and end up paying $20 additional for shipping. But the purpose of that kind of offer is to incentivize you to buy more stuff.


At $100, the shipping cost = 300% * $100 = $300!! If you meant 30% then it is only $3 shipping for a $10 order which you said was a problem for you. But 300% of $10 = $30 shipping which seems high. Neither seems right.


At $1,000, the shipping cost is $150 but at $1,001 it drops to $70.


There is no $0-$10 tier. No products at that price?


You might want to specify an exact amount for low-price orders, not a percentage.

Numbers formula assistance requested

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.