跳到主要內容

如何在Excel中選擇最高或最低值?

有時您可能需要找出並選擇電子表格或選擇中的最高或最低值,例如最高銷售額,最低價格等。您如何處理它? 本文為您提供了一些棘手的技巧,以找出並選擇選擇中的最高值和最低值。


用公式找出選擇中的最高或最低值


要獲得一個範圍內的最大或最小數字:

只需將以下公式輸入到要獲取結果的空白單元格中:

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

然後按 Enter 獲取範圍內最大或最小數字的鍵,請參見屏幕截圖:


要獲得一個範圍內的最大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)

保養竅門:很難記住這些公式,但是如果您有 自動文本 的特點 Excel的Kutools,它可以幫助您保存所需的所有公式,並可以隨時隨地重複使用它們。     點擊下載Kutools for Excel!


使用條件格式查找並突出顯示所選內容中的最高或最低值

通常情況下, 條件格式 該功能還可以幫助您從一系列單元格中查找和選擇最大或最小的n個值,請執行以下操作:

1。 點擊 首頁 > 條件格式 > 頂部/底部規則 > 十大項目,請參見屏幕截圖:

2。 在 十大項目 對話框中,輸入要查找的最大值的數量,然後為它們選擇一種格式,並且已突出顯示n個最大值,請參見屏幕截圖:

  • 提示: 要查找並突出顯示最低的n個值,只需單擊 首頁 > 條件格式 > 頂部/底部規則 > 底部10個項目。

具有功能強大的選擇中的所有最高或最低值

Excel的Kutools's 選擇具有最大值和最小值的單元格 不僅可以幫助您找出最高或最低值,還可以在選擇中一起選擇所有這些值。

提示:要應用此 選擇具有最大值和最小值的單元格 功能,首先,您應該下載 Excel的Kutools,然後快速輕鬆地應用該功能。

安裝後 Excel的Kutools,請這樣做:

1. 選擇您要使用的範圍,然後單擊 庫工具 > 選擇 > 選擇具有最大和最小值的單元格…,請參見屏幕截圖:

3。 在 選擇具有最大值和最小值的單元格 對話框:

  • (1.)在搜尋框中指定要搜尋的儲存格類型(公式,值或兩者)。 在看 框;
  • (2.)然後檢查 最大值 or 最小值 根據需要
  • (3.)並指定最大或最小範圍,請在此處選擇 細胞.
  • (4.)然後,如果要選擇第一個匹配的單元格,只需選擇 僅第一個單元格 選項,以選擇所有匹配的單元格,請選擇 所有細胞 選項。

4。 然後點擊 OK,它將在選擇中選擇所有最大值或最小值,請參見以下屏幕截圖:

選擇所有最小值

選擇所有最大值

立即下載並免費試用Excel的Kutools!


通過強大的功能選擇每行或每列中的最大值或最小值

如果要查找並選擇每一行或每一列的最大值或最小值,則 Excel的Kutools 也可以幫您一個忙,請執行以下操作:

1。 選擇要選擇最大值或最小值的數據范圍。 然後點擊 庫工具 > 選擇 > 選擇具有最大值和最小值的單元格 啟用此功能。

2。 在 選擇具有最大值和最小值的單元格 對話框中,根據需要設置以下操作:

4。 然後點擊 Ok 按鈕,一次選擇每一行或每一列中的所有最大值或最小值,請參見屏幕截圖:

每行的最大值

每列中的最大值

立即下載並免費試用Excel的Kutools!


選擇或突出顯示某個單元格區域或每一列和每一行中具有最大值或最小值的所有單元格

這款獨特的敏感免洗唇膜採用 Moisture WrapTM 技術和 Berry Mix ComplexTM 成分, Excel的Kutools'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選項卡為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