#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 149
Default important!

given :

A B
1 tree a 10
2 tree b 20
3 tree b 30

my search string cells are : c1 : c3
in cell D1 i entered :
=SUMPRODUCT(COUNTIF(A1:A7;"*"&IF(C1:C3<"";C1:C3;" skip")&"*"))

in cell D2 i entered :
{=IF(ROWS(D$2:D2)<=D$1;INDEX(A$1:A$7;SMALL(IF(ISNU MBER(SEARCH(TRANSPOSE(IF(C$1:C$3<"";C$1:C$3));A$1 :A$7));ROW(A$1:A$7));ROWS(D$2:D2)));"")}
and i dragged down...

now if enter in cell C1 the word "tree" i get what follows :
in D2= tree a
in D3 = tree b
in D4 = tree b

NOW WHAT FORMULA SHOULD I ENTER IN E1 IN ORDER TO GET THEIR CORRESPONDING
VALUES i.e:

10 for tree a
20 for tree b
30 for tree b

thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default important!

IF(ROWS(D$2:D4)<=D$1,INDEX(B$1:B$7,SMALL(IF(ISNUMB ER(SEARCH(TRANSPOSE(IF($B$1:$B$3<"",$B$1:$B$3)),B $1:B$7)),ROW(B$1:B$7)),ROWS(E$2:E4))),"")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pierre" wrote in message
...
given :

A B
1 tree a 10
2 tree b 20
3 tree b 30

my search string cells are : c1 : c3
in cell D1 i entered :
=SUMPRODUCT(COUNTIF(A1:A7;"*"&IF(C1:C3<"";C1:C3;" skip")&"*"))

in cell D2 i entered :
{=IF(ROWS(D$2:D2)<=D$1;INDEX(A$1:A$7;SMALL(IF(ISNU MBER(SEARCH(TRANSPOSE(IF(C$1:C$3<"";C$1:C$3));A$1 :A$7));ROW(A$1:A$7));ROWS(D$2:D2)));"")}
and i dragged down...

now if enter in cell C1 the word "tree" i get what follows :
in D2= tree a
in D3 = tree b
in D4 = tree b

NOW WHAT FORMULA SHOULD I ENTER IN E1 IN ORDER TO GET THEIR CORRESPONDING
VALUES i.e:

10 for tree a
20 for tree b
30 for tree b

thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 149
Default important!

there is something wrong...i got only 30 for tree a , what about the others ??
normally i should get :

D E
2 tree a 10
3 tree b 20
4 tree c 30

HELP


"Bob Phillips" wrote:

IF(ROWS(D$2:D4)<=D$1,INDEX(B$1:B$7,SMALL(IF(ISNUMB ER(SEARCH(TRANSPOSE(IF($B$1:$B$3<"",$B$1:$B$3)),B $1:B$7)),ROW(B$1:B$7)),ROWS(E$2:E4))),"")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pierre" wrote in message
...
given :

A B
1 tree a 10
2 tree b 20
3 tree b 30

my search string cells are : c1 : c3
in cell D1 i entered :
=SUMPRODUCT(COUNTIF(A1:A7;"*"&IF(C1:C3<"";C1:C3;" skip")&"*"))

in cell D2 i entered :
{=IF(ROWS(D$2:D2)<=D$1;INDEX(A$1:A$7;SMALL(IF(ISNU MBER(SEARCH(TRANSPOSE(IF(C$1:C$3<"";C$1:C$3));A$1 :A$7));ROW(A$1:A$7));ROWS(D$2:D2)));"")}
and i dragged down...

now if enter in cell C1 the word "tree" i get what follows :
in D2= tree a
in D3 = tree b
in D4 = tree b

NOW WHAT FORMULA SHOULD I ENTER IN E1 IN ORDER TO GET THEIR CORRESPONDING
VALUES i.e:

10 for tree a
20 for tree b
30 for tree b

thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default important!

It is an array formula also.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pierre" wrote in message
...
there is something wrong...i got only 30 for tree a , what about the
others ??
normally i should get :

D E
2 tree a 10
3 tree b 20
4 tree c 30

HELP


"Bob Phillips" wrote:

IF(ROWS(D$2:D4)<=D$1,INDEX(B$1:B$7,SMALL(IF(ISNUMB ER(SEARCH(TRANSPOSE(IF($B$1:$B$3<"",$B$1:$B$3)),B $1:B$7)),ROW(B$1:B$7)),ROWS(E$2:E4))),"")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"pierre" wrote in message
...
given :

A B
1 tree a 10
2 tree b 20
3 tree b 30

my search string cells are : c1 : c3
in cell D1 i entered :
=SUMPRODUCT(COUNTIF(A1:A7;"*"&IF(C1:C3<"";C1:C3;" skip")&"*"))

in cell D2 i entered :
{=IF(ROWS(D$2:D2)<=D$1;INDEX(A$1:A$7;SMALL(IF(ISNU MBER(SEARCH(TRANSPOSE(IF(C$1:C$3<"";C$1:C$3));A$1 :A$7));ROW(A$1:A$7));ROWS(D$2:D2)));"")}
and i dragged down...

now if enter in cell C1 the word "tree" i get what follows :
in D2= tree a
in D3 = tree b
in D4 = tree b

NOW WHAT FORMULA SHOULD I ENTER IN E1 IN ORDER TO GET THEIR
CORRESPONDING
VALUES i.e:

10 for tree a
20 for tree b
30 for tree b

thanks






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the most important Excel concepts I should know (will be tested soon)? DonaldCX Excel Discussion (Misc queries) 5 May 4th 23 07:41 PM
Important Information [email protected] New Users to Excel 0 November 14th 06 01:05 PM
IMPORTANT! HELP PLEASE! Formula babiigirl Excel Worksheet Functions 2 June 14th 06 08:07 PM
Set up Macro *PLEASE HELP IMPORTANT* Vic Excel Discussion (Misc queries) 1 December 11th 05 08:57 PM
* * * Important Please Read * * * May 18, 2005 4:07:32 pm (Bes patrick Excel Discussion (Misc queries) 2 June 3rd 05 07:06 PM


All times are GMT +1. The time now is 04:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"