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,(function="X")),SORTBY(u,COUNTIFS(Country,u,function,"X"),-1))
it pulls in a list of countries and orders them highest to lowest by the number of occurrences of 'X'.
I want to extend this to include 'Y' in the function range. I thought (additions in bold):
=LET(u,UNIQUE(FILTER(Country,(function="X")+(function="Y"))),SORTBY(u,SUM(COUNTIFS(Country,u,function,{"X","Y"}),-1)))
It seems to get the list of countries but it does not seem to be ordering them.
Any ideas?
Thanks
=LET(u,UNIQUE(FILTER(Country,(function="X")),SORTBY(u,COUNTIFS(Country,u,function,"X"),-1))
it pulls in a list of countries and orders them highest to lowest by the number of occurrences of 'X'.
I want to extend this to include 'Y' in the function range. I thought (additions in bold):
=LET(u,UNIQUE(FILTER(Country,(function="X")+(function="Y"))),SORTBY(u,SUM(COUNTIFS(Country,u,function,{"X","Y"}),-1)))
It seems to get the list of countries but it does not seem to be ordering them.
Any ideas?
Thanks