address cell where max

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,
 
M

Mike H

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
 
A

Are

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
 
M

muddan madhu

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top