Getting more than one lookup results in array
The best solution is to use AutoFilter, but it is not dynamic. A formula
approach is:
In C1 enter:
=IF(B1="excellent",1,0)
In C2 enter:
=IF(B2="excellent",1+MAX($C$1:C1),"")
And copy down the column
In D1 enter:
=IF(ISERROR(SMALL(C:C,ROW())),"",SMALL(C:C,ROW()))
And copy down the column
In F1 enter:
=IF(D1="","",INDEX(A:A,MATCH(D1,C:C,0),1))
And copy down the column
To see:
Tom excellent 1 1 Tom
Beky good 2 Mike
Mike excellent 2
Jerry verygood
Column C assigns a unique, non-zero, id to each "excellent". Column D
gathers them. Column F gathers the names.
--
Gary''s Student - gsnu200734
"Alex" wrote:
I've tried several functions alone and combined with the next problem, but
nothing work correctly.
Suppose I have two columns A i B - first with the personal names and second
with some score written in text: excellent, very good, good. I want to find
oll "excellent" in B column and write down all personal names in
corresponding A column cells.
For example:
A B
Tom excellent
Beky good
Mike excellent
Jerry very good
I want too lookup for ALL excellent in B column and write down (list) in
another column (for instnance column F) all personal names with score
"excellent" - in this particular example:
F
Tom
Mike
It's very important to me and I'm searching through Excell Help for days and
can't find the solution....
Thanks
|