minimum value column name look up

  • Thread starter Thread starter shifty
  • Start date Start date
S

shifty

Is it possible to lookup the minimum value in a set of numbers in a row and
then also list the column name for where the minimum answer value came from?
 
In A1:F1 I have the numbers 90, 80, 50, 60, 85, 75
The formula =MATCH(MIN(A1:F1),A1:F1,0) returns the value 3 since the
minimum value resides in the third cell of the array.
This formula returns the value C - the column with the min value:
=INDEX({"A","B","C","D","E","F"},MATCH(MIN(A1:F1),A1:F1,0))
while this returns $C$1
=ADDRESS(1,MATCH(MIN(A1:F1),A1:F1,0))
best wishes
 
Assuming your set of numbers is in row 2 and your column names are in row 1,
this should return the minimum:
=MIN(2:2)
and this the column heading:
=INDEX(1:1,MATCH(MIN(2:2),2:2,0))

If you want to put the first of these in the same row as your numbers, you
will need to specify the range more precisely, for example:
=MIN(A2:H2)
with the formula in column I or later.
 

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

Back
Top