简体   繁体   English

将百分比值与十进制Excel比较

[英]Compare percentage value against decimal Excel

I am a bit stumped with this issue, I was wondering if anyone could suggest a solution. 我对此问题感到有些困惑,我想知道是否有人可以提出解决方案。 In Excel I have a table which looks like this: 在Excel中,我有一个如下表:

1   2   3   4   5   Result  Score
80% 85% 90% 95% 100%    92.5%   3.50

What I am trying to calculate is that proportional score, based on where the result falls within the preset decimal 1-5 score. 我要计算的是比例分数,该分数基于结果在预设的小数1-5分数之内。

Thanks. 谢谢。

In your case where each increment is 5% you could use a simple calculation like 如果您的每个增量为5%,则可以使用简单的计算方法,例如

=MAX(0,F2-75%)*20

[where result is in F2] [结果在F2中]

....but assuming that you want to interpolate the score given potentially less linear values in your table try this formula where your table is in A1:E2 ....但是假设您要对表中可能存在较少线性值的分数进行插值,请尝试使用此公式,其中表位于A1:E2中

=LOOKUP(F2,A2:E2,A1:E1+(F2-A2:D2)*(B1:E1-A1:D1)/(B2:E2-A2:D2))

对于线性插值,这将是通用公式,只需命名范围或用单元格引用替换即可:

= (perc - minperc) / (maxperc - minperc) * (maxscore - minscore) + minscore

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM