MR t valko.....thanks it worked BUT........
what does this formula mean ?? : =COUNTIF(A1:A5,"*"&C1&"*")
is there a way to use the formula you gave me
=IF(ROWS(D$2:D2)<=D$1,INDEX(A$1:A$5,SMALL(IF(ISNUMBER(SEARCH(C1,A$1:A$5)),ROW(A$1:A$5)-MIN(ROW(A$1:A$5))+1),ROWS(D$2:D2))),"")
WITHOUT FINDING FIRST : =COUNTIF(A1:A5,"*"&C1&"*")
in another way i mean , can i start from
INDEX(A$1:A$5,SMALL(IF(ISNUMBER(SEARCH(C1,A$1:A$5)),ROW(A$1:A$5)-MIN(ROW(A$1:A$5))+1),ROWS(D$2:D2))),"")
THANKS A LOT
> Try this:
>
[quoted text clipped - 26 lines]
> > the word "AXE" in order to get ALL results about it ??? vlookup ?? or
> > index(...,match(...)?? or aother ways ???
T. Valko - 21 May 2008 23:02 GMT
>what does this formula mean ?? :
>=COUNTIF(A1:A5,"*"&C1&"*")
That formula returns the count of items in column A that contain the word
held in C1.
This is used as an error trap in the other formula.
> is there a way to use the formula you gave me :
> WITHOUT FINDING FIRST :
>=COUNTIF(A1:A5,"*"&C1&"*")
Yeah, you could do without that but try it and see what happens. Once all
the relevant data has been extracted from column A you'll get #NUM! errors.

Signature
Biff
Microsoft Excel MVP
> MR t valko.....thanks it worked BUT........
>
[quoted text clipped - 41 lines]
>> > the word "AXE" in order to get ALL results about it ??? vlookup ?? or
>> > index(...,match(...)?? or aother ways ???
pierre - 23 May 2008 05:33 GMT
to MR t VALKO....please read accurately....thanks
given :
A
1 pen a
2 pen b
3 pen c
4 table a
5 table B
my goal here is to type in search string B1 the world "pen" in order to get
all results related to " pen " like (pen a , pen b , pen c)
so i am doing the following :
in C1 : =COUNTIF(A1:A5;"*"&C1&"*")
in D1 :
{=IF(ROWS(D$2:D2)<=D$1;INDEX(A$1:A$5;SMALL(IF(ISNUMBER(SEARCH(C1;A$1:A$5));ROW(A$1:A$5));ROWS(D$2:D2)));"")}....AND I DRAG DOWN
NOW MY QUESTION HERE :
WHAT SHOULD I DO IN ORDER TO TYPE THE WORD "PEN" IN SEARCH STRING CELL C1
AND THE WORD "TABLE" IN SEARCH STRING CELL C2 IN ORDER TO GET ALL THEIR
CORESPONDENT RESULTS ????
THANK YOU SIR
T. Valko - 23 May 2008 06:40 GMT
Change the formula in D1 to:
=SUMPRODUCT(COUNTIF(A1:A5,"*"&C1:C2&"*"))
Change the array formula** in D2 to:
=IF(ROWS(D$2:D2)<=D$1,INDEX(A$1:A$5,SMALL(IF(ISNUMBER(SEARCH(TRANSPOSE(C$1:C$2),A$1:A$5)),ROW(A$1:A$5)),ROWS(D$2:D2))),"")
** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)
Note that the formula will extract the data as it is listed. If your real
data is not sorted (unlike your sample data) it won't extract all pens first
then all tables next.

Signature
Biff
Microsoft Excel MVP
> to MR t VALKO....please read accurately....thanks
>
[quoted text clipped - 26 lines]
>
> THANK YOU SIR
pierre - 23 May 2008 16:52 GMT
THANK YOU VERY MUCH......
i really appreciate it......i am very gratefull to you....
thanks to you i have learned something new today .
many thanks to you :)
T. Valko - 23 May 2008 17:35 GMT
You're welcome. Thanks for the feedback!

Signature
Biff
Microsoft Excel MVP
> THANK YOU VERY MUCH......
> i really appreciate it......i am very gratefull to you....
> thanks to you i have learned something new today .
> many thanks to you :)