[英]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.