dropdown list based on filter function result

gudis22

New Member
Joined
Jan 16, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to create a dropdown list based on the results from a filter function.
Here's an example :
I used Filter function (in B1) to get the results containing the word rose from column D.
However this fills the cells B1 to B3, instead I would like to get a dropdown menu. I used (=B2# in data validation) to create a dropdown menu but that did not work. Is there any other way to do it? Or is it possible to get a dependent drop down list based on the results of filter function or Vlookup function?

ABCD
rose=FILTER(D1:D7; A1=C1:C7)roserose from A
lotusroserose from B
appleroserose from C
lotuslotus from a
lotuslotus from b
appleapple from a
appleapple from b
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I’m not 100% clear on what you are looking for, but I’m assuming it’s one of the 2 options outlined below.

Option 1
Move
your Filter() formula from B1 to E1
  • Create a named range called MyList_1
  • In the Refers to box for MyList_1 type =OFFSET(option_1!$E$1,0,0,COUNTA(option_1!$E:$E),1)
  • “option_1!” is the sheet name – change to suit
  • In B1 create a data validation dropdown with the following:
  • Allow: List
  • Source: =MyList_1
Filter.xlsb
ABCDE
1roserose from Aroserose from Arose from A
2lotusroserose from Brose from B
3appleroserose from Crose from C
4lotuslotus from a
5lotuslotus from b
6appleapple from a
7appleapple from b
option_1
Cell Formulas
RangeFormula
E1:E3E1=FILTER(D1:D7,A1=C1:C7)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B1List=MyList_1


Option 2
Move
your list (rose, lotus, apple) from A1:A3 to E1:E3
  • Highlight E1:E3 and name that range MyList_2
  • In A1 create a data validation dropdown with the following:
  • Allow: List
  • Source: =MyList_2
Filter.xlsb
ABCDE
1roserose from Aroserose from Arose
2rose from Broserose from Blotus
3rose from Croserose from Capple
4lotuslotus from a
5lotuslotus from b
6appleapple from a
7appleapple from b
option_2
Cell Formulas
RangeFormula
B1:B3B1=FILTER(D1:D7, A1=C1:C7)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A1List=MyList_2
 
Upvote 0
I used Filter function (in B1) to get the results containing the word rose from column D.
I'm not sure why you are using column C, but move the filter function as suggested. I have used column F and that column could be hidden if you want.
No need to name a range though, just use the spill range in the Data Validation.

22 01 31.xlsm
ABCDEF
1roserose from Arose from A
2lotusrose from Brose from B
3applerose from Crose from C
4lotus from a
5lotus from b
6apple from a
7apple from b
8
DV List
Cell Formulas
RangeFormula
F1:F3F1=FILTER(D1:D7,ISNUMBER(SEARCH(A1,D1:D7)),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B1List=F1#


1643585883253.png
 
Upvote 0
Solution
You're welcome. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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