Count unique records with specific row values?

charlesfarrell

New Member
Joined
Sep 28, 2017
Messages
6
I have a spread sheet of students and each program they are enrolled into.

I want to count the number of student that have certain values in the row.

For example, how many 'New Students' study at Enrollment Campus 'SYD' and school 'COU'

Any help you could offer would be greatly appreciate, I am new to EXCEL and still learning nested formulas.

Thanks,
Charlie

Student NoYearTermEnrolment CampusSchoolPayment TypeModeEnrol CategoryAward Mod AttendModuleState of ResidenceEnrolment Report
1628442017TERM2SYDCOUFEEHELPOLONLINEFDBESC1091QLDNew Student
1628442017TERM2SYDCOUFEEHELPOLONLINEFDBESC1101QLDNew Student
1628442017TERM2SYDCOUFEEHELPOLONLINEFDBESC2111QLDNew Student
1712202017TERM2MELCOUFEEHELPOLONLINEMMBESC1061NSWRe-enrolling Student
1712202017TERM2MELCOUFEEHELPOLONLINEMMBESC1091NSWRe-enrolling Student
1743392017TERM2MELCOUFEEHELPOCONCAMPUSMMBESC2931VICRe-enrolling Student
1751762017TERM2SYDCOUFEEHELPOLONLINEFDBESC1001VICNew Student
1751762017TERM2SYDCOUFEEHELPOLONLINEFDBESC1051VICNew Student
1751762017TERM2SYDCOUFEEHELPOLONLINEFDBESC1101VICNew Student
1850172017TERM2MELCOUUPFRONTOCONCAMPUSOCBESC2931VICNew Student
2021362017TERM2SYDCOUFEEHELPOLONLINEFDBESC1091QLDRe-enrolling Student
2131542017TERM2SYDCOUFEEHELPOLONLINEFDBESC1091NSWRe-enrolling Student
2131542017TERM2SYDCOUFEEHELPOLONLINEFDBESC1911NSWRe-enrolling Student
2151872017TERM2SYDCOUFEEHELPOLONLINEFDBESC1001VICNew Student
2151872017TERM2SYDCOUFEEHELPOLONLINEFDBESC1101VICNew Student
2166812017TERM2SYDCOUFEEHELPOLONLINEFDBESC1071VICRe-enrolling Student
2202082017TERM2MELCOUFEEHELPOLONLINEFDBESC1071VICNew Student
2202082017TERM2MELCOUFEEHELPOLONLINEFDBESC1091VICNew Student
2221402017TERM2SYDCOUFEEHELPOLONLINEFDBESC1051VICRe-enrolling Student
2221402017TERM2SYDCOUFEEHELPOLONLINEFDBESC1071VICRe-enrolling Student
2221402017TERM2SYDCOUFEEHELPOLONLINEFDBESC1091VICRe-enrolling Student

<tbody>
</tbody>
 

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"
So both these formula work, what is the difference between them, in the sense that, is it more advisable to use one over another of is it just personal preferance?

SyedUsman's formula was easier for me to understand and use in other cells.
 
Upvote 0
Thanks for this, was exactly what I was looking for, I was making it over complicated.

Thanks for what? The suggestion I made executes a conditional unique count, i.e., it won't count a student twice when SYD, COU, and new student. Is this not what you require?
 
Last edited:
Upvote 0
Thanks for what? The suggestion I made executes a conditional unique count, i.e., it won't count a student twice when SYD, COU, and new student. Is this not what you require?

Hi Aladin, thank you so much. Your formula is exactly what I was after, the previous formula was showing total records, not unique records. I knew I had to execute a FREQUENCY Function, but couldn't figure it out.


Why Control+shift+enter, not just enter?
 
Upvote 0
Hi Aladin, thank you so much. Your formula is exactly what I was after, the previous formula was showing total records, not unique records. I knew I had to execute a FREQUENCY Function, but couldn't figure it out.

You are welcome.

Why Control+shift+enter, not just enter?

The array-processing formulas require control+shift+enter in Excel (Google Sheets, for example, require wrapping such formulas into an ARRAYFORMULA call) in order to signal Excel that "array-processing" is intended. Note that some of the array-processing formulas can be done with just enter when built with array-processing functions like SumProduct, Lookup, etc.

For more on array-formulas, see: http://www.emailoffice.com/excel/arrays-bobumlas.html
 
Upvote 0

Forum statistics

Threads
1,215,511
Messages
6,125,250
Members
449,218
Latest member
daynle

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