跳到主要内容

如何在Excel中找到最大值并返回相邻的单元格值?

doc-get-最大相关值-1 1

如果您具有如下所示的屏幕截图所示的数据范围,现在,您想要在A列中找到最大值,并在B列中获得其相邻的单元格内容。在Excel中,您可以使用一些公式来解决此问题。

查找最大值并使用公式返回相邻的单元格值

使用 Kutools for Excel 查找并选择最高值并返回相邻单元格值


箭头蓝色右气泡 查找最大值并使用公式返回相邻的单元格值

以上述数据为例,要获取其相应数据的最大值,可以使用以下公式:

请输入以下公式: = VLOOKUP(MAX($ A $ 2:$ A $ 11),$ A $ 2:$ B $ 11,2,FALSE) 放入所需的空白单元格,然后按 输入 返回正确结果的键,请参见屏幕截图:

doc-get-最大相关值-2 2

笔记:

1.在上式中 A2:A11 是您想知道最大值的数据范围,并且 A2:B11 表示您使用的数据范围,数字 2 是返回匹配值的列号。

2.如果A列中有多个最大值,则此公式仅获得第一个对应的值。

3.使用上面的值,您只可以从右列返回单元格值,如果您需要返回左列中的值,则应应用以下公式: =INDEX(A2:A11,MATCH(MAX(B2:B11),B2:B11,0))( A2:A11 是您想要获得相对值的数据范围, B2:B11 是包含最大值的数据范围),然后按 输入 键。 您将得到以下结果:

doc-get-最大相关值-3 3


箭头蓝色右气泡 使用 Kutools for Excel 查找并选择最高值并返回相邻单元格值

上面的公式只能帮助您返回第一个对应的数据,如果有重复的最大数,则无济于事。 Kutools for Excel's 选择具有最大值和最小值的单元格 实用程序可以帮助您选择所有最大的数字,然后您可以轻松查看与最大数字相邻的相应数据。

安装后 Kutools for Excel,请执行以下操作:

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用. 

1。 选择要查找的数字列,然后选择最大值。

2。 然后点击 库工具 > 选择 > 选择具有最大值和最小值的单元格,请参见屏幕截图:

3。 在 选择具有最大值和最小值的单元格 对话框,选择 最大值 来自 转到 部分,然后选择 手机 在选项 基值 部分,然后选择 所有细胞 or 仅第一个单元格 要选择最大值,请单击 OK,已选择A列中最大的数字,然后可以获得与它们相邻的相应数据,请参见屏幕截图:

doc-get-最大相关值-5 5 2 doc-get-最大相关值-6 6

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


相关文章:

如何在Excel中找到一行的最高值并返回列标题?

最佳办公生产力工具

🤖 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 (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Using the formula avoce with "name" includes, I am trying to show the highest rated players for Male and Female.

Z = Player Names (text format)
AB = Players gender (text format)
T = Player Ratings (number format)
AE1 = Male (text format)
AF1 = Female (text format)

=INDEX($Z$2:$Z$220, MATCH(MAXIFS($T$2:$T$220, $AB$2:$AB$220, AE1, $AB$2:$AB$220, AE1), $T$2:$T$220, 0))

Above returns correct data of highest rated male player

=INDEX($Z$2:$Z$220, MATCH(MAXIFS($T$2:$T$220, $AB$2:$AB$220, AF1, $AB$2:$AB$220, AF1), $T$2:$T$220, 0))

Above returns incorrect data of highest rated female player. In fact, it returns a male players data. Can more than one index/match on a sheet cause issues? I've searched and edited the sheet more than I care. Any ideas?
This comment was minimized by the moderator on the site
How do I automate selecting a Row based on the largest number in a specific column based on another columns data of same date.I.E.   I have a Column A having an entire month of days.   Each specific day has up to 24 rows.   I have another column that represents a high water mark for every hr - 24 hrs in a day 28-31 days in a month.   I need an automated way to strip the highest high water mark of every single day within the month.     
This comment was minimized by the moderator on the site
This is brilliant and so easy to understand, thank you!

This comment was minimized by the moderator on the site
thank you very much, you saved me
This comment was minimized by the moderator on the site
Muchas gracias era justo lo que buscaba
This comment was minimized by the moderator on the site
I GET #NA what am I doing wrong? Thanks
This comment was minimized by the moderator on the site
Thank you very much for sharing, I was having real trouble with this function. Of course in hindsight, it's as clear as glass!

Thanks Again & Best Regards,

Jon
This comment was minimized by the moderator on the site
Hello,

I need your help. For this table:

A B C
2002 1 4 7
2003 2 5 8
2004 3 6 9


I want that excel returns the year with the highest value for each column. For example, for column A, I want a formula that returns "2004". Can you, please, help me?


Thanks!
This comment was minimized by the moderator on the site
any way we can find the minimum of the cells selected and return the value in the cell adjacent. kutools only allow for data range selection.
This comment was minimized by the moderator on the site
Hi, Viet,

As you said, the Kutools only can select the max or min values in selection.
To find the minimum value and return the data in adjacent cell, you just need to apply the following formula:
=INDEX(A2:A11,MATCH(MIN(B2:B11),B2:B11,0)).
Please try it, Thank you!
This comment was minimized by the moderator on the site
Like the 2 above me already asked, how can we get multiple values if there are multiple max ones? For example, you have 2 items in a list of 100 items that are both 92% and the rest is below that, how does one get both items with that percentage instead of just one?
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