Using FILTER with COUNTIF

Raddle

New Member
Joined
Oct 24, 2023
Messages
41
Office Version
  1. 2016
Hi - hoping someone can put me out of my misery here.

I am trying to hide values from a drop-down if they have already been used. I mean, super-simple I know but I am clearly just not up to it.

So far I can get the =COUNTIF to return the TRUE/ FALSE results with this

=COUNTIF(Questions!$C$6:$C$46,Picklist!$C$6:$C$46)=0

but as soon as put the filter round it, I just get VALUE error.

There are two tabs, one called Questions and one called Picklist. No table at this point.

Can anyone see the issue?

Finally, what I really wanted was to be able to use table column headers for this but ... baby steps.

Thanks in advance ...
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Does this example help

Book2
DEFGH
1Full ListChosen AlreadyFilter
2121
3253
434
546
65
76
Sheet1
Cell Formulas
RangeFormula
H2:H5H2=FILTER(D2:D7,COUNTIF(F2:F3,D2:D7)=0,"")
Dynamic array formulas.
 
Upvote 0
Solution
Hey - thank you for that. Yes it helped. Another issue I was having was that the data (which was actually quite long text entries) was too long in some cases and was breaking the whole thing. So having trimmed it, we are back in the game!!

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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