Anglais428v2
New Member
- Joined
- Jun 19, 2020
- Messages
- 27
- Office Version
- 365
- Platform
- Windows
I have a formula that works fine:
=LET(u,UNIQUE(FILTER(Country,Sector=$A$1)),SORTBY(u,COUNTIFS(Sector,$A$1,Country,u),-1))
It returns a list of countries ranked highest to lowest by number of records in the database. However I only want to return the top result (i.e. 1 country, not the full list). I thought of trying to incorporate the Large function but not having much luck.
Any advice?
Thanks
=LET(u,UNIQUE(FILTER(Country,Sector=$A$1)),SORTBY(u,COUNTIFS(Sector,$A$1,Country,u),-1))
It returns a list of countries ranked highest to lowest by number of records in the database. However I only want to return the top result (i.e. 1 country, not the full list). I thought of trying to incorporate the Large function but not having much luck.
Any advice?
Thanks