Looking for a formula to work out the exact amount to be charged in the below cost table
300
350
400
450
500
550
600
11%
¥1,872
¥2,163
¥2,448
¥2,727
¥3,000
¥3,267
¥3,528
12%
¥1,733
¥2,002
¥2,266
¥2,525
¥2,777
¥3,025
¥3,266
13%
¥1,616
¥1,867
¥2,113
¥2,353
¥2,589
¥2,820
¥3,045
14%
¥1,515
¥1,750
¥1,981
¥2,207
¥2,428
¥2,644
¥2,855
15%
¥1,428
¥1,650
¥1,867
¥2,080
¥2,288
¥2,492
¥2,691
16%
¥1,351
¥1,561
¥1,767
¥1,968
¥2,166
¥2,358
¥2,547
17%
¥1,284
¥1,483
¥1,679
¥1,870
¥2,058
¥2,241
¥2,420
18%
¥1,224
¥1,414
¥1,601
¥1,783
¥1,962
¥2,136
¥2,307
<tbody>
</tbody>
For example, if 11.6% and 520 were the results achieved, I need to figure out what the weighted average is between 11% and 12% whilst at the same time the weighted average between 500 and 550 to arrive at a final exact figure. In this example I believe the answer should be Y2968 (rounded to the nearest yen).
Basically I need to be able to calculate any data point in between the known xy figures above.
My investigations lead me to believe that what you ask is almost impossible with functions and formulas. It is possible to do interpolation for one row at a time or one column at a time, but doing both at once boggles the mind.
The data is not simple-linear. What you need is a User Defined Function, which has been dealt with in this forum.
DRSteele is correct, the data are not linear. Trying to come up with a function (formulas or UDF) that "best" interpolates the data is very difficult. I tried using your data and the FORECAST function, and the results were all over.
However, if you are content with simple linear interpolation between points, it's much simpler (but still not "simple"). Consider this sheet:
Put the formulas in as shown. (I started to make a 1-cell formula combining all those, but gave up as it would be extraordinarily long and complicated.) Then put the percent and amount in the J2:K2 cells. The example shown gives a result of 2968, which is what you got, leading me to believe that you calculated it the same way.
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.