address cell where max

  • Thread starter Thread starter Are
  • Start date Start date
A

Are

How to know address cell if there are max value
exm :

A B C
1 10 11 15

2 12 16 15

3 13 15 15

result B2

thanks,
 
Hi,

Try this array formula *SEE BELOW*

=ADDRESS(INT(MIN(IF(A1:E7=MAX(A1:E7),ROW(A1:E7)*1000+COLUMN(A1:E7)))/1000),
MOD(MIN(IF(A1:E7=MAX(A1:E7),ROW(A1:E7)*1000+COLUMN(A1:E7))),1000),1)

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike
 
Thanks you Very much Mike,

Mike H said:
Hi,

Try this array formula *SEE BELOW*

=ADDRESS(INT(MIN(IF(A1:E7=MAX(A1:E7),ROW(A1:E7)*1000+COLUMN(A1:E7)))/1000),
MOD(MIN(IF(A1:E7=MAX(A1:E7),ROW(A1:E7)*1000+COLUMN(A1:E7))),1000),1)

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike
 
Try this UDF

Function maxb(r As Range)
Dim s As Range
b = Application.WorksheetFunction.Max(r)
For Each s In r
If s.Value = b Then
maxb = s.Address
Exit For
End If
Next s
End Function
 
Back
Top