Excel as a curve and not a step

rspalding

Active Member
Joined
Sep 4, 2009
Messages
282
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have multiple prices in a lookup and I want the pricing returned as a curve and not a step at the different price breaks. Is that possible in Excel?

So prices of 1 @ $50, 10 @ $35, 20 @ $20, 10 @ $5. If my qty is 6, I need it to look at $50 and the $35 and create a curve.

Thanks for the help.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Can you be more specific? Do you want to add a trendline to your data, such as a logarithmic or exponential curve and use that calculated value, or do you want to just interpolate between the two endpoints that surround the value you are using?
 
Upvote 0
Your question and requirements are not clear.
Please post examples with expected results with the forum's tool named XL2BB.
You should also edit your profile to show the version of Excel that you use.
 
Upvote 0
Can you be more specific? Do you want to add a trendline to your data, such as a logarithmic or exponential curve and use that calculated value, or do you want to just interpolate between the two endpoints that surround the value you are using?
Yes, I want to just interpolate between the two endpoints that surround the value I am using. But I do have multiple values in the lookup table.
 
Upvote 0
This is probably far more complicated than it has to be, but it seems to work.
Book1
ABCDE
11 $ 50.00 Quantity:15
210 $ 35.00
320 $ 20.00
4100 $ 5.00 Price: $ 27.50
5101 $ -
Sheet1
Cell Formulas
RangeFormula
E4E4=OFFSET(INDIRECT(ADDRESS(MATCH(VLOOKUP(E1,A1:B4,2,TRUE),B1:B4,0),2)),0,0)+(E1-OFFSET(INDIRECT(ADDRESS(MATCH(VLOOKUP(E1,A1:B4,2,TRUE),B1:B4,0),1)),0,0))*(OFFSET(INDIRECT(ADDRESS(MATCH(VLOOKUP(E1,A1:B4,2,TRUE),B1:B4,0),2)),1,0)-OFFSET(INDIRECT(ADDRESS(MATCH(VLOOKUP(E1,A1:B4,2,TRUE),B1:B4,0),2)),0,0))/(OFFSET(INDIRECT(ADDRESS(MATCH(VLOOKUP(E1,A1:B4,2,TRUE),B1:B4,0),1)),1,0)-OFFSET(INDIRECT(ADDRESS(MATCH(VLOOKUP(E1,A1:B4,2,TRUE),B1:B4,0),1)),0,0))
 
Upvote 0
Your question and requirements are not clear.
Please post examples with expected results with the forum's tool named XL2BB.

If you require the blended rate based on the information that you provided, review the following.

Commissions 2023.xlsm
ABC
111532
12
13BracketsRatesArithmetic
14
1505050
16135350
17112080
18315
2e
Cell Formulas
RangeFormula
B11B11=SUM((A11>{0;1;11;31})*(A11-{0;1;11;31})*({50;-15;-15;-15}))/A11
C15C15=MAX(0,MIN($A$11-A15,A16-A15))*B15
C16:C17C16=MIN($A$11-A16,A17-A16)*B16
 
Upvote 0

Forum statistics

Threads
1,215,174
Messages
6,123,454
Members
449,100
Latest member
sktz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top