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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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