I would like to add the name to the cell that contains the smallest number in a score sheet.
Attached is a sample of what I am using. Where the MIN result cell shows the number, I would also like to add the corresponding name in that row.
Last edited by NBVC; 08-09-2010 at 10:23 PM.
You can use:
=INDEX($A$2:$A$11,MATCH(C12,C$2:C$11,0))
copied down and to next column, but this will get only first name that matches the minimum, if there are several minimum matches.
If you want all matches, then perhaps:
=IF(ROWS($A$1:$A1)>COUNTIF(C$2:C$11,C$12),"",INDEX($A$2:$A$11,SMALL(IF(C$2:C$11=C$12,ROW(C$2:C$11)-ROW(C$2)+1),ROWS($A$1:$A1))))
confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down as far as you need to ensure all matches retrieved and then copy to next column.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Hmmm. I'm afraid I may not have asked my question correctly.
The current formula already gives a unique result for the minimum number. It will not provide a number that is a duplicate. I would like to substitute the number with the name that corresponds.
In my example it currently is:
B12- "Blank" C12- 3 D12- 5
I want it to be:
B12 - "Blank" C12- George D12- Tom
Also, to make it more difficult, I will be using the cells in columns and rows from a different sheet in the workbook.
Sorry for my confusing you. It's just that I am confused...
in b12
=IF(COUNTIF(B2:B11,MIN(B2:B11))>1,"",INDEX($A2:$A11,MATCH(MIN(B2:B11),B2:B11,0))) dragged across
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
I guess I misunderstood the question, then.. and looks like Martin came to the rescue.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Martin, that's exactly what I was looking for. Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks