3G
Member
I'm having some issues with an array formula, similar to the one Luke did in Formula Forensics 3. Good ole =INDEX(SMALL(IF)
Here goes:
I've got a list of data that is ranked based on shortest to longest. It is NOT in sort order, but, has a value of 1, 2, 3, 4, or 5 (K28-K32). This sort order can change as the times of the data changes (i.e. 1st may become 2nd, 3rd, etc). Same range/etc, just that K28:K32 may not always be in the same order, but will have the same values.
I'm trying to match K28:K32 to a small table I have for a chart, which has 1, 2, 3, 4, 5 (V36:V40)in Rank/Sort order, and populate the table with the values in N28:N32. Here's my initial stab:
=INDEX($N$28:$N$32,SMALL(IF($V40=$K$28:$K$32,ROWS($N$1:N1)),ROW($N$1)))
I'm getting the right values from the Index, but, they are NOT in the same order as the rank sort, but rather just as they are in K29:K32 (out of sort order).
Any ideas?
Here goes:
I've got a list of data that is ranked based on shortest to longest. It is NOT in sort order, but, has a value of 1, 2, 3, 4, or 5 (K28-K32). This sort order can change as the times of the data changes (i.e. 1st may become 2nd, 3rd, etc). Same range/etc, just that K28:K32 may not always be in the same order, but will have the same values.
I'm trying to match K28:K32 to a small table I have for a chart, which has 1, 2, 3, 4, 5 (V36:V40)in Rank/Sort order, and populate the table with the values in N28:N32. Here's my initial stab:
=INDEX($N$28:$N$32,SMALL(IF($V40=$K$28:$K$32,ROWS($N$1:N1)),ROW($N$1)))
I'm getting the right values from the Index, but, they are NOT in the same order as the rank sort, but rather just as they are in K29:K32 (out of sort order).
Any ideas?