#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel Question

Here is my problem.

Say I have a list of 20 baseball player names in one column and how many
home runs that they have in the next column. How can I make a cell = all the
players names that have over 20 home runs?


Please help.
Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Excel Question

One way:

A1:A20 = player
B1:B20 = runs

Enter this array formula** in D1 and copy down to D20:

=IF(ROWS(D$1:D1)<=COUNTIF(runs,20),INDEX(player,SM ALL(IF(runs=20,ROW(player)-MIN(ROW(player))+1),ROWS(D$1:D1))),"")

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

--
Biff
Microsoft Excel MVP


"magnello27" wrote in message
...
Here is my problem.

Say I have a list of 20 baseball player names in one column and how many
home runs that they have in the next column. How can I make a cell = all
the
players names that have over 20 home runs?


Please help.
Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Excel Question

Ooops!

over 20 home runs


Change the formula to:

=IF(ROWS(D$1:D1)<=COUNTIF(runs,"="20),INDEX(playe r,SMALL(IF(runs=20,ROW(player)-MIN(ROW(player))+1),ROWS(D$1:D1))),"")



--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
One way:

A1:A20 = player
B1:B20 = runs

Enter this array formula** in D1 and copy down to D20:

=IF(ROWS(D$1:D1)<=COUNTIF(runs,20),INDEX(player,SM ALL(IF(runs=20,ROW(player)-MIN(ROW(player))+1),ROWS(D$1:D1))),"")

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

--
Biff
Microsoft Excel MVP


"magnello27" wrote in message
...
Here is my problem.

Say I have a list of 20 baseball player names in one column and how many
home runs that they have in the next column. How can I make a cell = all
the
players names that have over 20 home runs?


Please help.
Thank you.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Excel Question

wow!!!

--
RyGuy


"T. Valko" wrote:

Ooops!

over 20 home runs


Change the formula to:

=IF(ROWS(D$1:D1)<=COUNTIF(runs,"="20),INDEX(playe r,SMALL(IF(runs=20,ROW(player)-MIN(ROW(player))+1),ROWS(D$1:D1))),"")



--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
One way:

A1:A20 = player
B1:B20 = runs

Enter this array formula** in D1 and copy down to D20:

=IF(ROWS(D$1:D1)<=COUNTIF(runs,20),INDEX(player,SM ALL(IF(runs=20,ROW(player)-MIN(ROW(player))+1),ROWS(D$1:D1))),"")

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

--
Biff
Microsoft Excel MVP


"magnello27" wrote in message
...
Here is my problem.

Say I have a list of 20 baseball player names in one column and how many
home runs that they have in the next column. How can I make a cell = all
the
players names that have over 20 home runs?


Please help.
Thank you.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Excel Question

wow!!!

It's nice to know how to do this but a filter is sooooo much easier *but*
there are times when you may want *dynamic* capabilities.

--
Biff
Microsoft Excel MVP


"ryguy7272" wrote in message
...
wow!!!

--
RyGuy


"T. Valko" wrote:

Ooops!

over 20 home runs


Change the formula to:

=IF(ROWS(D$1:D1)<=COUNTIF(runs,"="20),INDEX(playe r,SMALL(IF(runs=20,ROW(player)-MIN(ROW(player))+1),ROWS(D$1:D1))),"")



--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
One way:

A1:A20 = player
B1:B20 = runs

Enter this array formula** in D1 and copy down to D20:

=IF(ROWS(D$1:D1)<=COUNTIF(runs,20),INDEX(player,SM ALL(IF(runs=20,ROW(player)-MIN(ROW(player))+1),ROWS(D$1:D1))),"")

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

--
Biff
Microsoft Excel MVP


"magnello27" wrote in message
...
Here is my problem.

Say I have a list of 20 baseball player names in one column and how
many
home runs that they have in the next column. How can I make a cell =
all
the
players names that have over 20 home runs?


Please help.
Thank you.








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
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
The above is an excel question Terry Excel Worksheet Functions 0 January 23rd 06 01:42 PM
Excel question Djavad Excel Discussion (Misc queries) 3 July 9th 05 12:12 AM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 08:06 AM.

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"