All
Got an Excel challenge which looks at counting distinct names of people in a list, against the team they work in.
Expected output in the attached.
Jay
All
Got an Excel challenge which looks at counting distinct names of people in a list, against the team they work in.
Expected output in the attached.
Jay
Two possible solutions based on your description and attachment, which don't quite match!
Excel 2016 (Windows) 32 bit
F G H 4Count of Names Unique Names 5TeamA 1 1 6TeamB 2 1 7TeamC 2 1 8TeamD 0 0
Sheet: Sheet1
Excel 2016 (Windows) 32 bit
G H 5 =COUNTIF($C$5:$C$9,F5) =SUM(--(FREQUENCY(IF($C$5:$C$9=F5,MATCH($B$5:$B$9,$B$5:$B$9,0)),ROW(B5:B9)-ROW(B5)+1)>0))
Sheet: Sheet1
H5 is an array formula confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
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. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Count names
Formula:
Please Login or Register to view this content.
for unique
Formula:
Please Login or Register to view this content.
v B C D E F G H 3 Output 4 Count of Names Unique 5 Name1 TeamA TeamA 1 1 6 Name2 TeamB TeamB 2 1 7 Name3 TeamC TeamC 2 1 8 Name3 TeamC TeamD 0 0 9 Name2 TeamB
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks