Hi,
I am looking for a solution for this basic problem. I believe I should use INDEX and MATCH functions. Please see the attachment. Thank you in advance.
Hi,
I am looking for a solution for this basic problem. I believe I should use INDEX and MATCH functions. Please see the attachment. Thank you in advance.
Please try at K4:K18
=IFERROR(INDEX(B:B,MOD(AGGREGATE(15,6,C$3:C$52*10^6+ROW(C$3:C$52)/(A$3:A$52=LOOKUP("z",I$4:I4)),J4),10^6)),"")
Excel 2016 (Windows) 32 bit
I J K 2The worst 3 (smallest value) units by region 3 4North 1 170 5 2 181 6 3 188 7 8East 1 126 9 2 167 10 3 302 11 12South 1 162 13 2 171 14 3 213 15 16West 1 132 17 2 172 18 3 224
Excel 2016 (Windows) 32 bit
K 4 =SMALL(IF(A:A=$I$4,C:C,10^9),ROW()-3) 5 =SMALL(IF(A:A=$I$4,C:C,10^9),ROW()-3) 6 =SMALL(IF(A:A=$I$4,C:C,10^9),ROW()-3) 7 8 =SMALL(IF(A:A=$I$8,C:C,10^9),ROW()-7) 9 =SMALL(IF(A:A=$I$8,C:C,10^9),ROW()-7) 10 =SMALL(IF(A:A=$I$8,C:C,10^9),ROW()-7) 11 12 =SMALL(IF(A:A=$I$12,C:C,10^9),ROW()-11) 13 =SMALL(IF(A:A=$I$12,C:C,10^9),ROW()-11) 14 =SMALL(IF(A:A=$I$12,C:C,10^9),ROW()-11) 15 16 =SMALL(IF(A:A=$I$16,C:C,10^9),ROW()-15) 17 =SMALL(IF(A:A=$I$16,C:C,10^9),ROW()-15) 18 =SMALL(IF(A:A=$I$16,C:C,10^9),ROW()-15)
Happy with my answer * Add Reputation.
If You are happy with solution, please use Thread tools and mark thread as SOLVED.
In K4 then copy down
=IFERROR(AGGREGATE(15,6,$C$3:$C$52/($A$3:$A$52=INDEX($I$4:$I4,MATCH("ZZZ",$I$4:$I4,1))),J4),"")
Pl note
Array formula should be confirmed with Ctrl+Shift+Enter keys together.
If answere is satisfactory press * to add reputation.
In K3 Cell
Drag the formula downPlease Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Thank you very much for all the answers and effort.
Sorry for unclear message I wanted to find three Unit names not values. I will now adjust Bo_Ry 's function to my real sheet.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks