COUNTIFS up to a certain number of occurences

danthesuperman

New Member
Joined
May 25, 2020
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
I am using a COUNTIFS forumla to count the number of times a row matches two criterea. This is to act as a kind of dynamic counter for a scholarship ranking sheet to show how many scholarship are allocated to students in each department as we move the ranking around. However I only have 7 of a certain type of scholarship to awarded. Student's eligibility for this scholarship is indicated by the first criteria.

I want the forumla to count only the first seven occurrences of the first criteria.

Currently my forumla looks like this:

=COUNTIFS('Schol List'!$F$28:$F$61,"*YES*",'Schol List'!$C$28:$C$61,"*Department A*")

This formula is then repeated for each department (see image).

What do I need to add so that I only count the first seven occurences of 'Schol List'!$F$28:$F$61,"*YES*" regardless of department?
 

Attachments

  • Capture.PNG
    Capture.PNG
    3.7 KB · Views: 10
Amazing Amazing Amazing!

It works fine!

Also easily transposes for into my Google Sheet as this:

=ArrayFormula(COUNTIFS('Faculty Merge List'!$C$28:INDEX('Faculty Merge List'!$C:$C,SMALL(IF('Faculty Merge List'!$F$28:$F$61="Yes",ROW('Faculty Merge List'!$F$28:$F$61)),7)),"*CH*",'Faculty Merge List'!$F$28:INDEX('Faculty Merge List'!$F:$F,SMALL(IF('Faculty Merge List'!$F$28:$F$61="Yes",ROW('Faculty Merge List'!$F$28:$F$61)),7)),"Yes"))

Thanks!!!!!!
Ha~Thanks for your feedback and I'm happy to hear that you finally solved your problem~
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top