简体   繁体   English

在Google表格中的排名

[英]Ranking in Google Sheet

I have some data about people on my Google Sheet and they are given some points based on their activities. 我的Google表格上有一些有关人员的数据,并且根据他们的活动为他们提供了一些要点。 What I want in the next column is that their rank based on their points. 在下一篇专栏文章中,我想要的是根据他们的得分进行排名。 I would change the points manually on a regular basis and accordingly, their rank should be changed automatically with a formula. 我会定期手动更改积分,因此,应该使用公式自动更改其排名。

At present the data ranging from A1 to J50 where row 1 is the header. 目前,数据范围从A1到J50,其中第1行是标题。 I need the rank in K. 我需要K级。

I would like to know to rank in two ways. 我想知道两种排名方式。 One in numerical. 数值一。 Like, Rank 1, 2, 3, etc. Other in text, 'Outstanding', 'Good', or any text. 例如,等级1、2、3等。其他在文本中,“杰出”,“好”或任何文本。

I think the rank function is your best option for the ranking portion, and you can use a vlookup for the ranking if the mapping of your values won't change at all. 我认为rank函数是用于排名部分的最佳选择,如果您的值的映射完全不变,则可以使用vlookup进行排名。

Here is a sample workbook I threw together with the formulas. 这是我与公式一起放的示例工作簿 If you want to have the text ranking be dynamic as well, you'll need to provide thresholds for each value (top 20% are 'Outstanding', next 30% are 'Good', etc). 如果您还希望使文字排名具有动态性,则需要为每个值提供阈值(前20%为“杰出”,接下来的30%为“良好”,依此类推)。

Hope this is close to what you're looking for! 希望这接近您要寻找的!

=ARRAYFORMULA(IFERROR(RANK(B2:B, B2:B)))

0


=ARRAYFORMULA(IFERROR(VLOOKUP(IFERROR(RANK(B2:B, B2:B)), {
 1, "the best"; 
 2, "great";
 3, "good one";
 5, "lama xD"}, 2, 0)))

0

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

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