Excel formula to find reference used by other cell

耗尽温柔 提交于 2019-12-11 01:39:07

问题


Is there a way to find out the address of the cell being referenced in another cell in excel?

E.g. cell C1 contains formula =max(A:A) and returns a value of 10 which is actually referenced to cell A10. Can I use a formula in cell B that returns 'A10'?

And no, I don't want to use VBA at all.


回答1:


Assuming that your entries are in Cells A1:A7, you can do it this way ...

In Cell B1, the formula =MAX(A1:A7) and

in Cell B2, the cell location of the maximum number in the range (shown in B1) is given by the formula

=CELL("address",INDEX(A1:A7,MATCH(MAX(A1:A7),A1:A7,0)))

OR

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

Mark as answer if it helps.




回答2:


Managed to find the solution:

Similar to Kyle's formula, but instead we use match with multiple criteria to be more specific e.g. =ADDRESS(MATCH(MAX(A1:A7)&"A",$A$1:A7&$B$1:$B$7,0),1)



来源:https://stackoverflow.com/questions/17787486/excel-formula-to-find-reference-used-by-other-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!