For example: 10 units would sell for $10 dollars each. 100 units would sell
for $5 dollars each.
If I left a cell blank for units and put it 59 I want excel to calculate
what the cost would be based on the above range ($10 - $5) on a sliding scale
for discount. This might be simple but I am having a hard time wrapping my
brain around the formula.
Thank!.
Another way of getting the same result is =FORECAST(A4,B$2:B$3,A$2:A$3) for
the unit price or =A4*FORECAST(A4,B$2:B$3,A$2:A$3) for the total.
One thing you will notice is that with that method of calculating your
discount the number for 90 units would be $500, which is the same as for 100
units, and numbers between 90 and 100 would cost slightly more than for 100.
Another danger is that if you tried to continue to use the same formula
beyond 100 units, you'd get to a zero selling price at 190 units, and you'd
be paying the customer to take the product away for >190 units.
--
David Biddulph
"dgold82" <dgo...@discussions.microsoft.com> wrote in message
news:6D595CFB-6690-4479...@microsoft.com...
1......$10
30.....$8
60.....$7
80.....$6
100...$5
Press F1 and readup on VLOOKUP(), you'll see how it solves your problem
readily. If you entered QTY in A1 and had your table in columns M and N, the
formula would look like:
=VLOOKUP(A1, $M$1:$N$20, 2, 0)
Does that help?
--
"Actually, I *am* a rocket scientist." -- JB
(www.MadRocketScientist.com)
Your feedback is appreciated, click YES if this post helped you.
Formula in B3 will be =PERCENTILE(B1:B2,1-(A3-A1)/(A2-A1))
i tried 10 abd 100 in A3 and it does give the correct answer.