I am trying to find the lowest value in a range of 4 cells. once the lowest value is found, I would like the column heading to be displayed in an adjacent cell E (Lowest). A B C D E UPS FF Diva |CT FF Diva| UPS FF BD | LZ FF BD |Lowest 257 | 170 | 50 | 65 |UPS FF BD
Answer from Richard Rost:
You could do this with a combination of MIN, INDEX, and MATCH. Try this:
If you have the cells set up exactly the way you do, set E2 to:
=MIN(A2:D2)
This will return the lowest VALUE in your list. Now you need to find out which column that is in, so use the MATCH function in F2:
=MATCH(E2,A2:D2,0)
Now you know which column that is, and you can use INDEX to return the header from the top row:
=INDEX(A1:D1,F2)
I love MATCH and INDEX. You could also use HLOOKUP or VLOOKUP depending on how your data is set up.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Excel Forum.