跳到主要內容

如何在Excel中顯示得分最高的對應名稱?

假設我有一系列包含兩列的數據-名稱列和相應的得分列,現在,我想獲得得分最高的人的名字。 有什麼好的方法可以在Excel中快速解決此問題?

用公式顯示得分最高的對應名稱


箭頭藍色右氣泡 用公式顯示得分最高的對應名稱

要檢索得分最高的人的姓名,以下公式可以幫助您獲得輸出。

請輸入以下公式: =INDEX(A2:A14,MATCH(MAX(B2:B14),B2:B14,FALSE),)&" Scored "&MAX(B2:B14) 放入要顯示名稱的空白單元格,然後按 Enter 返回結果的鍵如下:

doc顯示名稱最高分1

筆記:

1.在上式中 A2:A14 是要從中獲取名稱的名稱列表,並且 B2:B14 是得分列表。

2.只有在具有相同最高得分的多個名稱中,上述公式才能獲得名字,要獲得所有得分最高的名稱,以下數組公式可能會有所幫助。

輸入以下公式:

=INDEX($A$2:$A$14,SMALL(IF($B$2:$B$14=MAX($B$2:$B$14),ROW($B$2:$B$14)-1),ROW(B2)-1)),然後按 Ctrl + Shift + Enter 鍵一起顯示名字,然後選擇公式單元格並向下拖動填充手柄,直到出現錯誤值為止,所有得分最高的名稱將顯示如下屏幕截圖:

doc顯示名稱最高分2

最佳辦公生產力工具

🤖 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 (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi sir, I tried this method, But the problem is if top two students have the same score when I look for the highest 3 one student's name alone is repeated twice with the same score instead of second student's name. How to solve this.
This comment was minimized by the moderator on the site
Hello, Divyanathan
Maybe the following array formula can help you:

=IFERROR(INDEX(A:A,SUM(IF(($B$2:$B$100+ROUND(0.1/ROW($B$2:$B$100),5))=LARGE($B$2:$B$100+ROUND(0.1/ROW($B$2:$B$100),5),ROW(A1)),ROW($B$2:$B$100)))),"")


Note: After inserting the formula, please press Ctrl + Shift + Enter keys together to get the first result, and then drga this formula cell down to get the largest n results as you need.

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Hola disculpa me podrías apoyar para sacar la formula o otro tipo de dato que me pueda dar el nombre del tota de un resultado?

explico tengo una tabla con 4 nombres diferentes distribuidos en las celdas C3,D3,E3 y F3 de las cuales cada celda mencionada tiene rangos de productos ejemplo: detergentes
y cada celda mencionada tiene precios diferentes.
en el resultado que debo de mostrar es el valor mínimo de precio de cada detergente de las celdas ya mencionadas arriba, y a lo que quiero llegar es que indique una formula o un dato que indique que en cada resultado a la derecho me indique el nombre del valor de resultado.
muestro un ejemplo mas especifico: en la celda <C3> tiene un nombre de insumos, en la celda C4 hasta C120 están los precios de cada detergente que maneja la celda C3, en la celda <D3> esta un nombre de biodetergentes, y mismo proceso la celda D4 hasta D120 están los precios en la celda G4 se encuentra el resultado del valor mínimo de estos dos nombres (insumos-biodetergentes) teniendo el valor menor el de nombre de insumos. ahora en la celda H4 quiero que me aparezca el nombre del valor de resultado en este caso que me aparezca el nombre de "insumos" como puedo hacer para que me aparezca este nombre? espero me allá podido dar a entender de lo que requiero
muchas gracias por su atención
saludos cordiales.
This comment was minimized by the moderator on the site
ik heb het ook geprobeerd met alle dezelfde gegevens zoals in het voorbeeld maar het werkt totaal niet
This comment was minimized by the moderator on the site
Hello jac, Sorry to hear that. As I have answered in the below comment, the two formulas work great for me. And I have been wondering why the formulas aren't working for the readers. There are two reasons that can lead to the malfunction of the second formula. 
First, if you are using Excel versions before Excel 2020, then you must enter the formula =INDEX($A$2:$A$14,SMALL(IF($B$2:$B$14=MAX($B$2:$B$14),ROW($B$2:$B$14)-1),ROW(B2)-1)) via pressing Ctrl + Shift + Enter keys together.
Second, When you get the first result, remember to select the formula cell and drag the fill handle down until error value appears. So all the other results will be returned.
And as you can see in the screenshots below, the two formulas are working fine for me.  Hope my solution works. Have a nice day.
Sincerely,Mandy
This comment was minimized by the moderator on the site
bullshitdoes not work
This comment was minimized by the moderator on the site
Hello,
Sorry to hear that. But I did tried the two formulas in the article and both of them works perfectly. Please see the screenshots I uploaded here. And we would love to solve the problem for you if you can provide the details of the problem. Looking forward to your reply.Sincerely,Mandy
This comment was minimized by the moderator on the site
Trying to do the same thing but with the minimum score in Microsoft sheets. I swapped max for min as below and it didn't work =INDEX($A$2:$A$14,SMALL(IF($B$2:$B$14=MIN($B$2:$B$14),ROW($B$2:$B$14)-1),ROW(B2)-1))
This comment was minimized by the moderator on the site
Hi. This formula was exactly what I was looking for. However is there a way do this with the lowest Score but above 0 (in my case £00.00) I removed the bit of formula that displays the amount as only needed the Name and comment.I changed the MAX for MIN but there are a few entries at 0 (£00.00) and formula displays the name for the first of the '0' entries
This comment was minimized by the moderator on the site
Hello, Nigel,To lookup the lowest value above 0, you should apply the below array formula:After entering the formula, please remember to press Ctrl + Shift + Enter keys together to get the correct result.=INDEX(A2:A8,MATCH(MIN(IF(B2:B8>0,B2:B8)),B2:B8,0))&" Scored "&MIN(IF(B2:B8>0,B2:B8))
Please try, hope it can help you!
This comment was minimized by the moderator on the site
How do you find the second highest student? Please help me :( I only get the name of Thomas.
This comment was minimized by the moderator on the site
How do you find the second highest student?
This comment was minimized by the moderator on the site
How would you show two names if the high scores match?
This comment was minimized by the moderator on the site
Hello, Chris,
To get all names if there are multiple high scores match, the second formula in this article can do you a favor.
Please try it, thank you!
This comment was minimized by the moderator on the site
How would you get the matching numbers with the corresponding names to display horizontally?
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