Simple Prorate Formula off matrix

shepcs

Board Regular
Joined
Feb 2, 2003
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hi
Anyone know a way to do a simple prorate formula off a matrix? I can do if/then but assuming there may be an easier way.

Book1
CDEFG
4RatingActualProrated %
510%1.25
6250%2.6
73100%3.4
84125%4.8
95150%5
Sheet1
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
What are you prorating? Expected results would be nice.
Does this get what you ask:
Book1
CDEFGH
4RatingActualProrated %Prorated % X Actual
510.00%1.2500
6250.00%2.60.51.3
73100.00%3.413.4
84125.00%4.81.256
95150.00%51.57.5
Sheet1
Cell Formulas
RangeFormula
G5:G9G5=LOOKUP(F5:F9,$C$5:$C$9,$D$5:$D$9)
H5:H9H5=(F5:F9)*(LOOKUP(F5:F9,$C$5:$C$9,$D$5:$D$9))
Dynamic array formulas.
 
Upvote 0
Thankis awoohaw. I probably shodul have been more specific. So if you're at "3.3" it would prorate the distance between 3 and 4, so hte answer on the associated % is 107.5%. I can do it with If/Then but I was wondering if there's a more elegant way?

Actual Rating3.30
Percentage107.5%
Rating
10%
250%0%
3100%0%
4125%108%
5150%0%
 
Upvote 0
Can the rating ever go above 5 (or below 1)? If so, what should happen?
 
Upvote 0
If it's only ever 1-5, you could do something like this:

Excel Formula:
=LET(ratings,$C$5:$C$9,pcts,$D$5:$D$9,mr,XMATCH(F5,ratings,-1),mv,INDEX(pcts,mr),IF(INDEX(ratings,mr)=F5,mv,mv+(INDEX(pcts,mr+1)-mv)*MOD(F5,1)))
 
Upvote 0
Here is another try at it, again, same restrictions as @RoryA
Book1
AB
1Actual Rating3.3
2Percentage107.50%
3Rating
410.00%
5250.00%
63100.00%
74125.00%
85150.00%
Sheet1
Cell Formulas
RangeFormula
B2B2=LET( ActRtgMod,MOD(B1,1), UpRngPct, LOOKUP(ROUNDUP($B$1,0),$A$4:$A$8,$B$4:$B$8), LoRngPct, LOOKUP($B$1,$A$4:$A$8,$B$4:$B$8), ActRtgMod*(UpRngPct-LoRngPct)+LoRngPct)
 
Last edited:
Upvote 0
Thank you both! Let me try them. No it couldn't go above a 1 or a 5.
Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,216
Messages
6,123,669
Members
449,114
Latest member
aides

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