On 11/26/2015 09:26 AM, Tom Webb wrote:
On 2015-11-25 17:26, Edwar Cifuentes wrote:
When using functions like MAX on a 2d range how can I get the
cell's address/reference returned instead of the result value?
e.g. if I have this table starting at A1...
1 2 3
4 5 6
How can I get ... C2 Instead of ... 6
I know I could something containing MATCH if it were just a single
row or column but here I have a table spanning several rows and
columns and there seems to be no equivalent of MATCH for these situations.
The following will find the address of the Max value. If there are
duplicate values it shows the last location.
=ADDRESS(MAX((A1:C2=MAX(A1:C2))*ROW(A1:C2)),MAX((A1:C2=MAX(A1:C2))*COLUMN(A1:C2)),4)
This is an array function and you need to use Ctrl-Shift-Enter
instead of Enter.
Hey, this works!
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.