(e-mail address removed) wrote...
I have a range of cells (about 15 rows (people) and 180
columns(dates)).
I am using max to identify the highest value within that range. Now
that I have that many cells, which function would I use to identify the
row (row 1) and column header (colmn A) labels associted with that max
value?
You could do this with formulas. If your values were in a range named
TBL, you could use either
=OFFSET(Tbl,MATCH(TRUE,COUNTIF(OFFSET(Tbl,ROW(Tbl)-CELL("Row",Tbl),0,1,),
A18)>0,0)-1,-1,1,1)&" "&OFFSET(Tbl,-1,MATCH(A18,INDEX(Tbl,MATCH(TRUE,
COUNTIF(OFFSET(Tbl,ROW(Tbl)-CELL("Row",Tbl),0,1,),A18)>0,0),0),0)-1,1,1)
or
=OFFSET(Tbl,-1,MATCH(TRUE,COUNTIF(OFFSET(Tbl,0,COLUMN(Tbl)
-CELL("Col",Tbl),,1),A18)>0,0)-1,1,1)&" "&OFFSET(Tbl,MATCH(A18,
INDEX(Tbl,0,MATCH(TRUE,COUNTIF(OFFSET(Tbl,0,COLUMN(Tbl)
-CELL("Col",Tbl),,1),A18)>0,0)),0)-1,-1,1,1)
The first matches the row then the column, the latter the column then
the row. You need to decide which you want in case there are multiple
instances of the max value, e.g.,
A B C D
X 1 2 9 4
Y 3 5 6 7
Z 9 8 0 1
With the {1,2,9,4;3,5,6,7;9,8,0,1} named Tbl, the first formula above
would return "X C" while the second would return "A Z".