How do I return the cell location

G

Guest

How do I return the cell location (in addition to the value contained in the
cell) of the maximum value in an Excel array?

I'm trying to locate the row number for the maximum value in a column of
numbers.
 
G

Guest

Try:-

=ADDRESS(MIN(IF((A1:B4)=MAX(A1:B4),ROW(A1:B4),"")),COLUMN(A1:B4))

alter the array address as required. It's an array formula so enter with
ctrl+shift+enter


Mike
 
R

Roger Govier

Hi

To just return the row number in say column A, then
MATCH(MAX(A:A),A:A,0)

To get the cell Address
=ADDRESS(MATCH(MAX(A:A),A:A,0),1)
where the 1 refers to column A. Adjust accordingly if you change column
letter.
 
G

Guest

Roger Govier said:
Hi

To just return the row number in say column A, then
MATCH(MAX(A:A),A:A,0)

To get the cell Address
=ADDRESS(MATCH(MAX(A:A),A:A,0),1)
where the 1 refers to column A. Adjust accordingly if you change column
letter.
Thank you very much my friend!!!
 

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