=SORT(UNIQUE(FILTER

FluffySlipper

New Member
Joined
Sep 7, 2024
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
Hi,
I am trying to create a dynamic drop down. I am working on the second unique list and I am referencing a column in a table. There are at least 200 cells with data but the formula only returns zeros.

Formula I'm using is: =SORT(UNIQUE(FILTER(Accommodation[Country],Accommodation[Location]=$A$20,0)))
Accommodation = table name
Country = column 1
Location - column 2

If I remove the ,0 at the end I get the #calc! error.

Any help would be hugely appreciated.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
No problem

1725777449092.png
 
Upvote 0
What is in A20?

It doesn't make sense to filter country by location - if you specify location = Hwange you'll always get Zimbabwe.

My guess is that A20 is Zimbabwe, and you actually want: FILTER(Accommodation[Location],Accommodation[Country]=$A$20)
 
Upvote 0
Solution
What is in A20?

It doesn't make sense to filter country by location - if you specify location = Hwange you'll always get Zimbabwe.

My guess is that A20 is Zimbabwe, and you actually want: FILTER(Accommodation[Location],Accommodation[Country]=$A$20)
You, you're right the result in A20 is currently Zimbabwe. Thank you so much, swapping the country and location has made it work.
 
Upvote 0

Forum statistics

Threads
1,223,939
Messages
6,175,531
Members
452,651
Latest member
wordsearch

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