Display cell ref for MAX formula

B

bookman3

Hi,

In simple terms if I have a formula of:
=MAX(A1:A4) and the maximun value is in cell A3,
I would like to be able to display the cell reference of A3 rather than the
actual maximum value.
Is that possible?
 
B

bookman3

This works fine.
However, my actual formula is more complicated.
A simplified version of it is:
=Max(A1:A4,B1:B4)
How can I apply that soluion to this formula
 
S

Sheeloo

So you want to find a maximum in more that one columns and then get the cell
address?
 
B

bookman3

Yes I do.
There are actually 5 columns that are not next to each other with row
numbers from 7 to 70

Hope you can help
 
M

muddan madhu

try this ( source exceltip)

this is an arrray formula use (ctrl + shift + enter)

=ADDRESS(SUM(IF(A1:F4=MAX(A1:F4),ROW(A1:F4))),SUM(IF(A1:F4=MAX(A1:F4),COLUMN(A1:F4))))
 
B

bookman3

Thanks

This works fine, I just need to adapt it so that the max reference refers to
non adjacent rows but it should work with a series of if statements
 
J

JMB

Note that if there is more than one cell that equals the maximum value, it
will not work properly.

If that is a potential issue, you could try this (to search by row
=ADDRESS(MIN(IF(A1:H4=K1,ROW(A1:H4))),MIN(IF(INDEX(A1:H4,MIN(IF(A1:H4=K1,ROW(A1:H4))),0)=K1,COLUMN(A1:H4))))

or thi
=ADDRESS(MIN(IF(INDEX(A1:H4,MIN(IF(A1:H4=K1,COLUMN(A1:H4))),0)=K1,COLUMN(A1:H4))),MIN(IF(A1:H4=K1,COLUMN(A1:H4))))

to search by column. they both appeared to work okay, but you'd have to
include the entire range that encompasses your data - I have no other ideas
how to accomplish this on a non-contiguous range.
 

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

Similar Threads

Change Color of cell 3
max value 1
Combining Text From Cells 3
cell display 2 4
Continuous Invoice Nos. 3
MAX formula and 'empty fields' 1
Conditional Printing 2
conditional formatting formula not working 4

Top