跳到主要内容

如何在Excel中选择最高或最低值?

有时您可能需要找出并选择电子表格或选择中的最高或最低值,例如最高销售额,最低价格等。您如何处理它? 本文为您提供了一些棘手的技巧,以找出并选择选择中的最高值和最低值。


用公式找出选择中的最高或最低值


要获得一个范围内的最大或最小数字:

只需将以下公式输入到要获取结果的空白单元格中:

Get the largest value: =Max (B2:F10)
Get the smallest value: =Min (B2:F10)

然后按 输入 获取范围内最大或最小数字的键,请参见屏幕截图:


要获得一个范围内的最大3个或最小3个数字:

有时,您可能想从工作表中找到最大或最小的3个数字,本节中,我将为您介绍解决此问题的公式,请执行以下操作:

请在单元格中输入以下公式:

Get the largest 3 values: =LARGE(B2:F10,1)&", "&LARGE(B2:F10,2)&", "&LARGE(B2:F10,3)
Get the smallest 3 values: =SMALL(B2:F10,1)&", "&SMALL(B2:F10,2)&", "&SMALL(B2:F10,3)

  • 提示: 如果要查找最大或最小的5个数字,则只需使用&来加入LARGE或SMALL函数,如下所示:
  • =LARGE(B2:F10,1)&", "&LARGE(B2:F10,2)&", "&LARGE(B2:F10,3)&","&LARGE(B2:F10,4) &","&LARGE(B2:F10,5)

Tips:很难记住这些公式,但是如果您有 自动文本 的特点 Kutools for Excel,它可以帮助您保存所需的所有公式,并可以随时随地重复使用它们。     点击下载Kutools for Excel!


使用条件格式查找并突出显示所选内容中的最高或最低值

通常情况下, 条件格式 该功能还可以帮助您从一系列单元格中查找和选择最大或最小的n个值,请执行以下操作:

1。 点击 主页 > 条件格式 > 顶部/底部规则 > 十大项目,请参见屏幕截图:

2。 在 十大项目 对话框中,输入要查找的最大值的数量,然后为它们选择一种格式,并且高亮显示了n个最大值,请参见屏幕截图:

  • 提示: 要查找并突出显示最低的n个值,只需单击 主页 > 条件格式 > 顶部/底部规则 > 底部10个项目。

选择功能强大的选区中的所有最高或最低值

Kutools for Excel's 选择具有最大值和最小值的单元格 不仅可以帮助您找出最高或最低值,还可以在选择中一起选择所有这些值。

提示:申请这个 选择具有最大值和最小值的单元格 功能,首先,您应该下载 Kutools for Excel,然后快速轻松地应用该功能。

安装后 Kutools for Excel,请这样做:

1. 选择您要使用的范围,然后单击 库工具 > 选择 > 选择具有最大和最小值的单元格…,请参见屏幕截图:

3。 在 选择具有最大值和最小值的单元格 对话框:

  • (1.)在搜寻框中指定要搜寻的储存格类型(公式,值或两者)。 在看 框;
  • (2.)然后检查 最大值 or 最低值 根据需要
  • (3.)并指定最大或最小范围,请在此处选择 手机.
  • (4.)然后,如果要选择第一个匹配的单元格,只需选择 仅第一个单元格 选项,要选择所有匹配的单元格,请选择 所有细胞 选项。

4。 然后点击 OK,它将在选择中选择所有最大值或最小值,请参见以下屏幕截图:

选择所有最小值

选择所有最大值

立即下载并免费试用 Kutools for Excel!


通过强大的功能选择每行或每列中的最大值或最小值

如果要查找并选择每一行或每一列的最大值或最小值,则 Kutools for Excel 也可以帮您一个忙,请执行以下操作:

1。 选择要选择最大值或最小值的数据范围。 然后点击 库工具 > 选择 > 选择具有最大值和最小值的单元格 启用此功能。

2。 在 选择具有最大值和最小值的单元格 对话框中,根据需要设置以下操作:

4。 然后点击 Ok 按钮,一次选择每行或每列中的所有最大值或最小值,请参见屏幕截图:

每行的最大值

每列中的最大值

立即下载并免费试用 Kutools for Excel!


选择或突出显示某个单元格区域或每一列和每一行中具有最大值或最小值的所有单元格

Kutools for Excel's 选择具有最大值和最小值的单元格 功能,您可以根据需要从一系列单元格,每一行或每一列中快速选择或突出显示所有最大值或最小值。 请参见下面的演示。    点击下载Kutools for Excel!


更多相对最大或最小价值的文章:

  • 查找并获取Excel中没有重复项的第N大值
  • 在Excel工作表中,我们可以通过应用Large函数来获得最大,第二大或第n个最大值。 但是,如果列表中有重复的值,则此函数在提取第n个最大值时不会跳过重复的值。 在这种情况下,如何在Excel中没有重复项的情况下获得第n个最大值?
  • 在Excel中查找第N个最大/最小的唯一值
  • 如果您有一个包含一些重复项的数字列表,要获得这些数字中的第n个最大值或最小值,普通的Large和Small函数将返回包含重复项的结果。 如何忽略Excel中的重复项而返回第n个最大值或最小值?
  • 在每行或每列中突出显示最大/最低值
  • 如果您有多个列和行数据,如何突出显示每一行或每一列的最大值或最小值? 如果您在每一行或每一列中一个一个地标识值,那将很繁琐。 在这种情况下,Excel中的条件格式设置功能可以帮您一个忙。 请阅读更多以了解详细信息。
  • 将Excel列表中的最大或最小3个值相加
  • 我们通常使用SUM函数来累加一个范围的数字,但是有时我们需要将范围内最大或最小的3、10或n个数字相加,这可能是一项复杂的任务。 今天,我向您介绍一些解决该问题的公式。

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (39)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Hi, any idea why this formula does not work: =MAX(B5,B8,B11,B14)-MIN(B5,B8,B11,B14)

=MAX(B5:B14)-MIN(B5:B14) works but I want just the four cells, not the whole range...
This comment was minimized by the moderator on the site
Hi there,

The formula should work. Is there anything wrong with the data type?

Amanda
This comment was minimized by the moderator on the site
Hi, can u help me. i got some problem on how to retrieve which outlet got lowest growth percentage since the percentage got duplicate value

for example

PEN001 -83.33%
PEN002 -83.33%
PEN003 -92.31%
PEN004 -100.00%
PEN005 -100.00%

I'm using index match min (lowest) & small (for 2nd lowest), but the result will return PEN004 for both condition which is the lowest and 2nd lowest
This comment was minimized by the moderator on the site
Hi,

To ignore the duplicate values and only count unique values, you can use the formula below:
=INDEX(A1:A6,MATCH(SMALL(IF(ISNUMBER(B1:B6),IF(ROW(B1:B6)=MATCH(B1:B6,B1:B6,0),B1:B6)),2),B1:B6,0))

In the above formula, A1:A6 is the list of PEN00N, B1:B6 is the list of percentages, 2 means to get the 2nd lowest value.
https://www.extendoffice.com/images/stories/comments/ljy-picture/2nd_unique_lowest_value.png

Note that this formula works for unique values only, which means it will only return the first value if there are duplicates.

Amanda
This comment was minimized by the moderator on the site
Cześć,

Potrzebuje poznać sposób na rozbudowanie komendy max/min by w docelowej komórce pokazywała wartość wraz z kolorem komórki.

Przykład
mam 3 dostawców z różnymi cenami tych samych produktów (produkty pionowo, dostawcy poziomo)
Dostawcy są przykładowo w kolumnach E,F,G i każdemu przydzieliłem inny kolor, który obowiązuje również ceny danego dostawcy.
W komórkach H chciałbym by pokazała się najniższa cena wraz z kolorem danego dostawcy.

dzięki!
This comment was minimized by the moderator on the site
Hi there,

Let's say the table is as shown below, you could use Excel's Conditional formatting to get the result you want:
https://www.extendoffice.com/images/stories/comments/ljy-picture/example.png

1. Enter =MIN(E1:G1,I1) in cell H1, and then copy the formula to below cells.
https://www.extendoffice.com/images/stories/comments/ljy-picture/get-min.png
2. Selet the list H1: H5, and then on the Home tab, click Conditional Formatting > New rule.
3. In the dialog box, selet Use a formula to determine which cells to format; Enter =$H1=$E1; And then click on Format to choose the background color of cell E1.
https://www.extendoffice.com/images/stories/comments/ljy-picture/create-rule.png
4. Repeat the step 3 to create rules for other background colors: =$H1=$F1 > light blue; =$H1=$G1 > light green; ...

Now, your table should look like this:
https://www.extendoffice.com/images/stories/comments/ljy-picture/result.png

Amanda
This comment was minimized by the moderator on the site
I have a table and I need to sum the columns(which I have done) then I need to find the lowest value (which I have done) how do I display the column title of the lowest value?

Thanks
This comment was minimized by the moderator on the site
Hi, could you please show me a screenshot of your data?

Amanda
This comment was minimized by the moderator on the site
Bonjour Amanda

Ca marche !!!! 😀 🤩 👌
Merci vraiment

Puis-je vous demander de nouveau votre aide ?
Voici la formule que je recherche

A1 A2 A3 A4
Chien Colibri Renard OK
Chat Renard Chien OK
Souris Chien Lion Non
Colibri Ecureuil Marmotte Non
Eléphant Colibri Chat OK

Si en A3 on retrouve les mots des colonnes A1 et A2 alors la colonne A4 indique OK
Si en A3 on ne retrouve pas les mots des colonnes A1 et A2 alors la colonne A4 indique Non

Merci encore pour votre aide très précieuse pour une débutante en excel

Bonne journée
Rated 5 out of 5
This comment was minimized by the moderator on the site
Hi, I don't quite understand why did you asign OK to the first and second rows, since I don't see that the third value is the same as the first or second one.

Amanda
This comment was minimized by the moderator on the site
Bonjour Amanda,

Je vous ai renvoyé le fichier à l'adresse mail indiquée : à l'instant

Merci encore une fois de votre aide.

Bien cordialement
This comment was minimized by the moderator on the site
Hi there,

I tried your excel file in the French enviorment, please use =IF(A1=MAX($A$1:$A$4);1;0).
The seperator should be ";" instead of "," 😅
(If the formula does not work, use SI instead of IF)

Amanda
This comment was minimized by the moderator on the site
Bonjour Amanda

Ne pouvons joindre de fichier sur le site, j'ai répondu au mail que vous m'avez envoyé et j'y ai joins le fichier excel
Vous pourrez voir ainsi que cela me mets en erreur.

Merci encore de votre aide

Bien cordialement
This comment was minimized by the moderator on the site
Hi there,

Did you send the excel file to ?
I did not receive any messages about the issue. Could you please send that again?
Also, I think the .xlsx file is supported to upload here. If you want, you can just upload it here in a comment.

Amanda
This comment was minimized by the moderator on the site
Bonjour,
En premier lieu merci pour tout ça j'y ai trouvé plein plein de soluces.
Ma question est la suivante
J'ai une colonne avec des chiffres

26.56250
25.10400
26.29101
27.66667

Et je voudrais en parallèle une formule qui va me dire non seulement le nombre le plus élevé (ça j'ai trouvé dans vos explications) mais que cette colonne indique 1 pour le chiffre le plus élevé.
Voici un exemple

26.56250 = 0
25.10400 = 0
26.29101 = 0
27.66667 = 1

Pensez-vous que cela soit possible et si oui via quelle formule ?

Je vous remercie encore et par avance en + 😄

Bien cordialement
This comment was minimized by the moderator on the site
Hi there,

Let's say the four values are in range A1:A4, you can enter the below formula in B1:
=IF(A1=MAX($A$1:$A$4),1,0)
And then drag the fill handle down to apply the formula to below cells.
https://www.extendoffice.com/images/stories/comments/ljy-picture/return-1-if-max.png

Amanda
This comment was minimized by the moderator on the site
Bonjour Amandine
Tout d'abord merci pour cette réponse.
Malheureusement cela ne fonctionne pas <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">😞</font></font>

J'ai le message d'erreur habituel
Pouvez-vous m'aider encore une fois ?

Merci
This comment was minimized by the moderator on the site
Hi there,

Can tell me what error it is? I noticed that you are using French, so please try SI instead of IF: =SI(A1=MAX($A$1:$A$4),1,0)

Amanda
This comment was minimized by the moderator on the site
Good day
I have difficulty with excel and don't know the exact names of what I want but will give it a try ?

1. I have 4 Colom's A, B, C, D, =MAX()
9, 2, 4, 1,
I want a formula that include the A,B,C,D, for instance, want the formula to include the "A" and "9" as well like A9?


2 A, B, C, D,
9, 8, 9, 2,
I also need a formula for if there is 2 (or 3 or even 4) equals highs, where I can "A9" and "C9" selected as highest ?

3 base on this information how can I create an automated report for the login user once they have selected the highest value ?

4. Maybe this is not the place to ask, but how can I create a time limit for the usage of the excel workbook that expires after 30 minutes and automatically email the report
to the login user?

5. lastly the report that the user will receive is in word format

Thank you so much
Have a wonderful day
This comment was minimized by the moderator on the site
How do I write a formula to find the smallest percentage in these 3 columns and return the value as LAG Alt or GDF or DEL?
LAG ALT -5% GDF -32% DEL 28%

In example above LAG ALT is the smallest percent/Choice I would want
This comment was minimized by the moderator on the site
Hi, the value to be compared and text string have to be in two cells for excel to compre. I have wrote a formula to get the result you want: =INDEX(A2:C2,MATCH(MIN(ABS(A3:C3)),ABS(A3:C3),0)) Please refer to the screenshot to see how it works. For more details about the formula, please click the link below. I only added ABS function (to get the absolute value) to the formula listed in the article: https://www.extendoffice.com/excel/formulas/excel-get-information-corresponding-to-minimum-value.html
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations