Please help on array search & result

O

ORLANDO V

Hi,

Illustrative example of my problem:

I have a list of numbers and letters. How can I lookup the value " 1 " and
return the multiple results of z, a, g ? I want to type only one formula
in one cell, although I don't mind the result being spread out over multiple
cells.
Thanks for your thoughts on this.

1 z
2 b
1 a
3 e
4 f
1 g
 
T

T. Valko

One way...

Download and install the *free* add-in Morefunc.dll from:

http://xcell05.free.fr/english/

Then you could use this array formula** :

=SUBSTITUTE(TRIM(MCONCAT(IF(A1:A6=1,B1:B6,"")&" "))," ",",")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)
 
A

Alan Beban

ORLANDO said:
Hi,

Illustrative example of my problem:

I have a list of numbers and letters. How can I lookup the value " 1 " and
return the multiple results of z, a, g ? I want to type only one formula
in one cell, although I don't mind the result being spread out over multiple
cells.
Thanks for your thoughts on this.

1 z
2 b
1 a
3 e
4 f
1 g
If the functions in the freely downloadable file at
http://home.pacbell.nete/beban are available to your workbook

=VLookups(1, A1:B6, 2) array entered into a vertical range of enough
rows to accommodate the output;

Or

=INDEX(VLookups(1, A$1:B$6, 2),ROW(1:1),1) entered into a cell and
filled down as far as required.

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top