Hi
I have attached a file. I wish to do a distinct count of Student ID by Year Level and Subject.
Thanks, Q
Hi
I have attached a file. I wish to do a distinct count of Student ID by Year Level and Subject.
Thanks, Q
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
Array enter in G2 (paste, then confirm with Ctrl+Shift+Enter, instead of just Enter), then copy across and down:
Formula:Please Login or Register to view this content.
Good luck!
Alternative:
Ctrl-Shift-EnterPlease Login or Register to view this content.
Quang PT
an alternative way is with Power Query
Excel 2016 (Windows) 32 bit
G H I J 8 Subject7 8 9 9 Health 2 12 4 10 Humanities 6 4 2 11 Languages 4 12 2 12 Literacy 3 8 4 13 Math 7 8 4
Sheet: Sheet1
Mcode:
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").Please Login or Register to view this content.
It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.
- Follow this link to learn how to install Power Query in Excel 2010 / 2013.
- Follow this link for an introduction to Power Query functionality.
- Follow this link for a video which demonstrates how to use Power Query code provided.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
or an ordinary formula (just ENTER:
=SUM(INDEX(($C$2:$C$100=G$1)*($B$2:$B$100=$F2)*($A$2:$A$100<>"")/COUNTIFS($C$2:$C$100,$C$2:$C$100&"",$B$2:$B$100,$B$2:$B$100&"",$A$2:$A$100,$A$2:$A$100&""),0))
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
@pickslides
Is your forum profile up-to-date? If you have moved on from Excel 2010, then it will need updating, please.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks