LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Limit a countif?

Hi all,

I'm creating a spreadsheet to keep scores at a sports event, and I want to
automate the qualifiers to finals. For finals, the top 8 competitors
compete, and 2 reserves are selected also, but there is a limit of only 2
competitors per club allowed in finals, or the reserve list.

This is what I want to achieve: (assuming they are ranked in order)

Name1 Club1 Q
Name2 Club5 Q
Name3 Club2 Q
Name4 Club2 Q
Name5 Club3 Q
Name6 Club2 (not qualified because already 2 from club2)
Name7 Club1 Q
Name8 Club6 Q
Name9 Club7 Q
Name10 Club1 (not reservist because already 2 from club1)
Name11 Club6 R
Name12 Club5 R
Name13 Club6
Name14 Club3

I can kind of do this over 2 columns as follows:
ColumnC
=IF(COUNTIF(B$1:B1,B1)<3,"Q","")

And then
ColumnD
=IF(AND(COUNTIF(C$1:C1,"Q")8,COUNTIF(C$1:C1,"Q")< 11,(C1="Q")),"R","")


The first formula however, puts a Q alongside the top 2 from each club all
the way to the last positioned competitor (there will be about 40).

Is there someway to limit the fist formula to stop outputting Q after it has
found 8 'correct' entries, and I can live with the 2 column approach? All
my attempts up to now have created circular references.

Alternatively, if there is some way to put both formulas in one column it
would be great!

Thanks,

Tim

 
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
Countif Limit Andibevan Excel Worksheet Functions 0 November 2nd 06 11:00 AM
64k row limit Jim Excel Worksheet Functions 3 May 3rd 06 09:17 PM
COUNTIF not counting properly!! Character limit? kytihu Excel Worksheet Functions 2 January 30th 06 04:45 PM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Nested IF limit or Open parentheses limit Fred Excel Discussion (Misc queries) 5 December 23rd 04 03:34 PM


All times are GMT +1. The time now is 08:36 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"