简体   繁体   English

使用 Excel 中的高级过滤器按字段/列中的最大值过滤

[英]Filter by maximum value in a field/column using Advanced Filter in Excel

I need to filter a field by maximum value, but I need to use advanced filtering in order to show the result in another sheet.我需要按最大值过滤字段,但我需要使用高级过滤才能在另一张表中显示结果。 I tried using max , > etc alone but didn't work.我尝试单独使用max>等,但没有奏效。

The field in question is numeric and I need to show the row that contains the maximum value in that column.有问题的字段是数字,我需要显示该列中包含最大值的行。 I know how to filter text and how to use <, >, <=, >=, and and or conditions, but I can't figure out how to do things like max, min etc.我知道如何过滤文本以及如何使用 <、>、<=、>= 和 and or 条件,但我不知道如何执行 max、min 等操作。

I can't use a Pivot Table since I need to filter by another column by contains text and I'm using wildcards, and I already searched inside all pivot table options and could not find anything to filter rows by text, so that's why I'm using advanced filtering.我不能使用 Pivot 表,因为我需要按包含文本的另一列进行过滤,并且我正在使用通配符,并且我已经在所有 pivot 表选项中进行了搜索,但找不到任何可以按文本过滤行的内容,这就是为什么我'正在使用高级过滤。 I'm using Excep 2002.我正在使用 2002 年除外。

the key is to create a formula that returns TRUE/FALSE.关键是创建一个返回 TRUE/FALSE 的公式。

In G2 I put:在 G2 中,我输入:

=A2=MAX($A$2:$A$15)

Then in the advanced search I add my List Range: A1:B15然后在高级搜索中添加我的列表范围: A1:B15

Then I include G1 and G2 in my Criteria Range.然后我将G1G2包含在我的 Criteria Range 中。 G1 must be blank. G1必须为空白。

I decided to copy to D1:E1 .我决定复制到D1:E1

在此处输入图像描述

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

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