简体   繁体   English

根据其他单元格中的值显示一个或多个单元格的值

[英]Displaying value of one cell or multiple cells based on values in other cells

I have an excel spreadsheet that lists a bunch of names and we are keeping track of how many times a certain occurrence happens. 我有一个Excel电子表格,其中列出了一堆名字,我们一直在跟踪发生某种情况的次数。 What I'm needing to do is find a way to calculate which name has the highest value of occurrences, and then display that name in another cell. 我需要做的是找到一种计算哪个名称具有最高出现次数的方法,然后在另一个单元格中显示该名称。 What I'd also like to do, is if there is a tie, I'd like to display all of the names of the people who are in the tie for 1st. 我还想做的是,如果有平局,我想显示并列第一的所有人员的姓名。 Any assistance is appreciated. 任何帮助表示赞赏。

Thanks in advance. 提前致谢。

You can use the Advanced Filter feature to do this: 您可以使用“ Advanced Filter功能来执行以下操作:

(Screen shot from Excel 2010) (屏幕截图来自Excel 2010)

在此处输入图片说明

Formula in cell B2: =COUNTIFS(A:A,A2) (copy down as raf as required) 单元格B2: =COUNTIFS(A:A,A2)公式B2: =COUNTIFS(A:A,A2) (根据需要复制为raf)

Formula in cell D2: =MAX(B:B) 单元格D2: =MAX(B:B)公式D2: =MAX(B:B)

Click OK and highest count names will be listed in column F ( t and y in this example) 单击“确定”,最高计数名称将列在F列中(在此示例中为ty

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

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