简体   繁体   English

如何在一个范围内找到MAX()的电子表格单元格引用?

[英]How can I find the spreadsheet cell reference of MAX() in a range?

With a column range of A1:A20 I have found the largest number with =MAX(A1:A20). 列范围为A1:A20我找到了最大数= = MAX(A1:A20)。 How can I find the reference (eg A5) of the MAX() result? 如何找到MAX()结果的参考(例如A5)?

I'm specifically using Google Spreadsheets but hope this is simple enough to be standard across excel and Google Spreadsheets. 我专门使用Google Spreadsheets,但希望这很简单,可以成为excel和Google Spreadsheets的标准配置。

=MATCH(MAX(A1:A120),A1:A120,0)

问题是如果你得到多个匹配:它只会给你第一个匹配。

Either : 要么:

=ADDRESS(MATCH(MAX($A:$A),$A:$A,0),1)

if you know it's going to be in column A (1) 如果你知道它将在A列(1)

Or: 要么:

=CELL("address",INDEX($A:$A,MATCH(MAX($A:$A),$A:$A,0)))

And yes, it only gives you the first match 是的,它只给你第一场比赛

You can use something on the lines of the following 您可以在以下行中使用某些内容

=MATCH(MAX(E7:E9),E7:E9)

This will give you the offset from the formula to the biggest number. 这将为您提供从公式到最大数字的偏移量。 If you use this in conjunction with ADDRESS you could get the actual cell. 如果将此与ADDRESS结合使用,则可以获得实际的单元格。 However, using offset should probably help you get there if you want to do something on that cell, or another number in the same row as that cell 但是,如果您想在该单元格上执行某些操作,或者与该单元格位于同一行中的其他数字,则使用偏移量可能会帮助您实现目标

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我可以引用不存在的范围内的单元格,以及如何找到最后一个单元格? - Why can I reference cells in a range that shouldn't exist, and how do I find the last cell? 如何在一个范围内的列中找到第一个空单元格,并在后续公式中使用行引用? - How can I find the first empty cell in a column within a range, and use the row-reference in subsequent formulas? excel 2003:如何从单元格引用命名范围? - excel 2003: How can I reference a named range from a cell? 如何引用具有偏移量的命名范围中的单元格? - How can I reference a cell in a named range with an offset? 如何使用excel查找范围内最大值的偏移量? - How can I use excel to find the offset of the max value in a range? VBA-查找命名范围中第一个单元格的位置以引用电子表格的标题行 - VBA- Find location of first cell in named range to reference heading row of spreadsheet 如何从下拉列表中计算单元格的平均值、最小值、最大值以及它在 Excel 中的变化 - How can I calculate the average, min, max, range for a cell from a dropdown and it changes in Excel 如何在电子表格范围(Aspose Cells)周围添加边框? - How can I add borders around a spreadsheet range (Aspose Cells)? 如何使用EPPlus将电子表格单元格的内容设置为会计格式? - How can I set contents of a spreadsheet cell to Accounting format with EPPlus? 如何使用Ruby Spreadsheet库格式化特定单元格? - How can I format a specific cell using the Ruby Spreadsheet library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM