提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

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

在本文中,我将讨论如何在Excel中返回一行中最大值的列标题。 例如,我有以下数据范围,列A是年份,列B到F是从1月到5月填充订单编号。 而现在,我想要得到每一行中最大值的月份名称。

DOC-GET-列标题,1

在一行中查找最高值并使用公式返回列标题


在一系列单元格或每列或每行中选择或突出显示具有最大值和最小值的单元格:

DOC-GET-列标题,4

Kutools for Excel:比200方便的Excel加载项,可以在60天免费试用。 下载并免费试用现在!


箭头蓝色右泡 在一行中查找最高值并使用公式返回列标题


要检索一行中最大值的列标题,可以应用INDEX,MATCH和MAX函数的组合以获得结果。 请做如下操作:

1. 将此公式输入到您需要的空白单元格中: =INDEX($B$1:$F$1,0,MATCH(MAX($B2:$F2),$B2:$F2,0)),然后按 输入 键来获得与连续的最大值匹配的月份名称。 看截图:

DOC-GET-列标题,2

2。 然后选择单元格并将填充手柄拖到要包含此公式的范围内,请参阅截图:

DOC-GET-列标题,3

注意:在上面的公式中: B1:F1 是你想要返回的标题行, B2:F2 是包含您想要查找的最大值的数据范围。


相关文章:

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


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Fernando · 3 days ago
    What happens if you have duplicate values in a row and you want the latest value's header. Is this possible?
    The current formula only returns the first match, but in my case I need to know the latest one
  • To post as a guest, your comment is unpublished.
    Trickshot Films · 20 days ago
    You're Aces Kid !!! ... this example worked perfect for my application: =INDEX($B$1:$F$1,0,MATCH(MAX($B2:$F2),$B2:$F2,0))

    ISA 40:31
  • To post as a guest, your comment is unpublished.
    Janice Matthies · 1 years ago
    Thank you so much!!!
  • To post as a guest, your comment is unpublished.
    Kirthika · 1 years ago
    Hi, am trying to find lowest value in a row and the highest value on the corresponding column. Is there a formula or shortcut to find this. Please guide
  • To post as a guest, your comment is unpublished.
    Sean · 1 years ago
    Thank you! very helpful!
  • To post as a guest, your comment is unpublished.
    dave · 2 years ago
    pardon: think my message dissappeard (2nd copy?)
    hi, i am trying to find the column number of a max number in 1 row of 5 cells. if i start from M9 to Q9 and the max number is in the middle cell: O9 the result looking for would be: 3. i cannot change the header cells to have: 1 2 3 4 5 as they get values pasted over.. if this is the same formula as above. how to i modify it to use column locations instead of header values. thanks:

    =INDEX(M1:Q1,0,MATCH(MAX(M9:Q9),M9:Q9,0))
  • To post as a guest, your comment is unpublished.
    dave · 2 years ago
    hi, i am having trouble finding an "unquote" :) column number for where the maximun number is. if i use columns M9 thru Q9 and the max is in the middle column: O9, that is the 3rd column in that range. i cannot put 1 2 3 4 5 in the header cells as they get values pasted over. if this is the same formula as above, how do i modify it to get a result eg: 3 for 3rd column in. thanks.

    =INDEX(M1:Q1,0,MATCH(MAX(M9:Q9),M9:Q9,0))
  • To post as a guest, your comment is unpublished.
    Stephanie · 2 years ago
    Hi, i want to make a list with names and grades and i want to find the 3 highest grades and the names that go with them i used the formula =INDEX(A3:A13,MATCH(LARGE(K3:K13,2),K3:K13,0)) but if two people have the same grade what happens??? can someone help me????
  • To post as a guest, your comment is unpublished.
    Liz · 2 years ago
    How can I do this if I want to return a row header rather than column header? I would also like to base the row number on a value in another cell that matches the column header. (So, look up column header and max value in that column, return the row header for that max value).
  • To post as a guest, your comment is unpublished.
    THANK YOU · 2 years ago
    OMFG THIS ARTICLE JUST SAVED ME HOURS OF WORK TODAY

    THANK YOU SO MUCH FOR THIS SOLUTION. YOU ARE TRULY A GENIUS AND THIS METHOD IS MUCH APPRECIATED!!!!

    10/10
  • To post as a guest, your comment is unpublished.
    Joseph · 3 years ago
    Is it possible to have this function work with multiple tabs on the same spreadsheet?
  • To post as a guest, your comment is unpublished.
    MikeS · 3 years ago
    Great thank you, I'd have strugled creating that formula myself, kind of you to share.
    • To post as a guest, your comment is unpublished.
      Murtaza · 3 years ago
      Thanks. I would like to know how can this function work if there are multiple cells in a row with the same value ? Is it possible to return multiple column headers in the target cell ?