Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David127
 
Posts: n/a
Default Create a list based on single shared criteria

An array or function is needed to create a list based on a single shared
criteria.

ID# Value Name
y1 5 Jill
x2 7 Jack
x3 3 Mary
y1 15 James
y1 9 Vito
z1 4 Wally


Based on the above table a list selecting ID# y1 would generate:

Jill
James
Vito

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Create a list based on single shared criteria

Hi!

Try using a filter........

....but, if you want to make this dynamic and use a formula........

Assume you enter the criteria in a cell, say, D1:

D1 = y1

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=IF(ROWS($1:1)<=COUNTIF(A$2:A$7,D$1),INDEX(C$2:C$7 ,SMALL(IF(A$2:A$7=D$1,ROW(A$2:A$7)-ROW(A$2)+1),ROWS($1:1))),"")

Copy down until you get blanks.

Biff

"David127" wrote in message
...
An array or function is needed to create a list based on a single shared
criteria.

ID# Value Name
y1 5 Jill
x2 7 Jack
x3 3 Mary
y1 15 James
y1 9 Vito
z1 4 Wally


Based on the above table a list selecting ID# y1 would generate:

Jill
James
Vito

Thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David127
 
Posts: n/a
Default Create a list based on single shared criteria

Hi Biff-

I tested out your array with my example & it worked like a charm! Howerver,
I expanded the array to cover a much larger range & I'm getting the #NUM!.
Below are the two array's for comparison (your's is altered to reflect
similar column's, worksheets etc).


Your example:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")

Mine:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")


Using the Formula Palet the "Small" function in my example does not return a
value, just a blank. Have I exceeded its limit? If so are there any options
to your array.

Many Thanks!


"Biff" wrote:

Hi!

Try using a filter........

....but, if you want to make this dynamic and use a formula........

Assume you enter the criteria in a cell, say, D1:

D1 = y1

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=IF(ROWS($1:1)<=COUNTIF(A$2:A$7,D$1),INDEX(C$2:C$7 ,SMALL(IF(A$2:A$7=D$1,ROW(A$2:A$7)-ROW(A$2)+1),ROWS($1:1))),"")

Copy down until you get blanks.

Biff

"David127" wrote in message
...
An array or function is needed to create a list based on a single shared
criteria.

ID# Value Name
y1 5 Jill
x2 7 Jack
x3 3 Mary
y1 15 James
y1 9 Vito
z1 4 Wally


Based on the above table a list selecting ID# y1 would generate:

Jill
James
Vito

Thanks in advance!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Create a list based on single shared criteria

Hi!

One question:

Is the range in Identifier column A, A2:A777, or A2:A776?

You're using A2:A777 in the Countif function and A2:A776 everywhere else?
They all need to be the same.

Try this (using 2:776 in all ranges)

=IF(ROWS($1:1)<=COUNTIF(Identifier!A$2:A$776,E$2), INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$2 :A$776=E$2,ROW(A$2:A$776)-ROW(A$2)+1),ROWS($1:1))),"")

Biff

"David127" wrote in message
...
Hi Biff-

I tested out your array with my example & it worked like a charm!
Howerver,
I expanded the array to cover a much larger range & I'm getting the #NUM!.
Below are the two array's for comparison (your's is altered to reflect
similar column's, worksheets etc).


Your example:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")

Mine:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")


Using the Formula Palet the "Small" function in my example does not return
a
value, just a blank. Have I exceeded its limit? If so are there any
options
to your array.

Many Thanks!


"Biff" wrote:

Hi!

Try using a filter........

....but, if you want to make this dynamic and use a formula........

Assume you enter the criteria in a cell, say, D1:

D1 = y1

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=IF(ROWS($1:1)<=COUNTIF(A$2:A$7,D$1),INDEX(C$2:C$7 ,SMALL(IF(A$2:A$7=D$1,ROW(A$2:A$7)-ROW(A$2)+1),ROWS($1:1))),"")

Copy down until you get blanks.

Biff

"David127" wrote in message
...
An array or function is needed to create a list based on a single
shared
criteria.

ID# Value Name
y1 5 Jill
x2 7 Jack
x3 3 Mary
y1 15 James
y1 9 Vito
z1 4 Wally


Based on the above table a list selecting ID# y1 would generate:

Jill
James
Vito

Thanks in advance!






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David127
 
Posts: n/a
Default Create a list based on single shared criteria

My appologies... I was trying multiple variations & copied both example
array's incorrectly. The range is indeed A2:A776 & even when its the same I
get a error #N/A. However when I make the range A2:A339 I get the appropriate
rusult. If I bring the range to A2:A340 or higher the SMALL function does not
return a value.

"Biff" wrote:

Hi!

One question:

Is the range in Identifier column A, A2:A777, or A2:A776?

You're using A2:A777 in the Countif function and A2:A776 everywhere else?
They all need to be the same.

Try this (using 2:776 in all ranges)

=IF(ROWS($1:1)<=COUNTIF(Identifier!A$2:A$776,E$2), INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$2 :A$776=E$2,ROW(A$2:A$776)-ROW(A$2)+1),ROWS($1:1))),"")

Biff

"David127" wrote in message
...
Hi Biff-

I tested out your array with my example & it worked like a charm!
Howerver,
I expanded the array to cover a much larger range & I'm getting the #NUM!.
Below are the two array's for comparison (your's is altered to reflect
similar column's, worksheets etc).


Your example:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")

Mine:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")


Using the Formula Palet the "Small" function in my example does not return
a
value, just a blank. Have I exceeded its limit? If so are there any
options
to your array.

Many Thanks!


"Biff" wrote:

Hi!

Try using a filter........

....but, if you want to make this dynamic and use a formula........

Assume you enter the criteria in a cell, say, D1:

D1 = y1

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=IF(ROWS($1:1)<=COUNTIF(A$2:A$7,D$1),INDEX(C$2:C$7 ,SMALL(IF(A$2:A$7=D$1,ROW(A$2:A$7)-ROW(A$2)+1),ROWS($1:1))),"")

Copy down until you get blanks.

Biff

"David127" wrote in message
...
An array or function is needed to create a list based on a single
shared
criteria.

ID# Value Name
y1 5 Jill
x2 7 Jack
x3 3 Mary
y1 15 James
y1 9 Vito
z1 4 Wally


Based on the above table a list selecting ID# y1 would generate:

Jill
James
Vito

Thanks in advance!








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Create a list based on single shared criteria

Hi!

I don't know why you're having a problem. Can I see your file? I don't need
the whole thing, just the sheet that contains the data you're try to
extract. If so, I'm at:

xlcanhelpatcomcastperiodnet

Remove CAN and replace AT and PERIOD with the obvious.

Biff

"David127" wrote in message
...
My appologies... I was trying multiple variations & copied both example
array's incorrectly. The range is indeed A2:A776 & even when its the same
I
get a error #N/A. However when I make the range A2:A339 I get the
appropriate
rusult. If I bring the range to A2:A340 or higher the SMALL function does
not
return a value.

"Biff" wrote:

Hi!

One question:

Is the range in Identifier column A, A2:A777, or A2:A776?

You're using A2:A777 in the Countif function and A2:A776 everywhere else?
They all need to be the same.

Try this (using 2:776 in all ranges)

=IF(ROWS($1:1)<=COUNTIF(Identifier!A$2:A$776,E$2), INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$2 :A$776=E$2,ROW(A$2:A$776)-ROW(A$2)+1),ROWS($1:1))),"")

Biff

"David127" wrote in message
...
Hi Biff-

I tested out your array with my example & it worked like a charm!
Howerver,
I expanded the array to cover a much larger range & I'm getting the
#NUM!.
Below are the two array's for comparison (your's is altered to reflect
similar column's, worksheets etc).


Your example:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")

Mine:
=IF(ROWS($2:10)<=COUNTIF(Identifier!A$2:A$777,E$2) ,INDEX(Identifier!C$2:C$776,SMALL(IF(Identifier!A$ 2:A$776=E$2,ROW(Identifier!A$2:A$776)-ROW(Identifier!A$2)+1),ROWS($2:10))),"")


Using the Formula Palet the "Small" function in my example does not
return
a
value, just a blank. Have I exceeded its limit? If so are there any
options
to your array.

Many Thanks!


"Biff" wrote:

Hi!

Try using a filter........

....but, if you want to make this dynamic and use a formula........

Assume you enter the criteria in a cell, say, D1:

D1 = y1

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=IF(ROWS($1:1)<=COUNTIF(A$2:A$7,D$1),INDEX(C$2:C$7 ,SMALL(IF(A$2:A$7=D$1,ROW(A$2:A$7)-ROW(A$2)+1),ROWS($1:1))),"")

Copy down until you get blanks.

Biff

"David127" wrote in message
...
An array or function is needed to create a list based on a single
shared
criteria.

ID# Value Name
y1 5 Jill
x2 7 Jack
x3 3 Mary
y1 15 James
y1 9 Vito
z1 4 Wally


Based on the above table a list selecting ID# y1 would generate:

Jill
James
Vito

Thanks in advance!








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
Count unique values and create list based on these values vipa2000 Excel Worksheet Functions 7 August 5th 05 01:17 AM
How do I get LIST on the DATA menu bar-I need Create List paintedruby New Users to Excel 1 July 26th 05 03:47 AM
create a drop down list with the source from a different workbook Sampath Excel Discussion (Misc queries) 2 January 8th 05 07:57 PM
How do you create a drop down list? Aviator Excel Discussion (Misc queries) 2 December 28th 04 03:07 PM
Selecting data from a list based on entered values GrantM Excel Discussion (Misc queries) 1 December 20th 04 10:59 AM


All times are GMT +1. The time now is 05:28 PM.

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

About Us

"It's about Microsoft Excel"