Dynamic Data Validation List

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
451
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

Sheet 1 Column A contains a data validation list of name based on the data in Sheet 2 Column A2:A;5000.

I want to the data validation list to only show the names if column B (location) contains 'Bristol'. Is this possible?

List of Names in Sheet 2

Name ListLocation
DaveBristol
JimBristol
SteveBristol
RobBristol
AndrewCardiff
CorrineCardiff
SarahCardiff
SallyCardiff
AnnCardiff
DonnaCardiff
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Like this?

thedeadzeds.xlsm
A
1Dave
2Jim
3Steve
4Rob
5
Sheet1
Cell Formulas
RangeFormula
A1:A4A1=FILTER(Sheet2!A2:A100,Sheet2!B2:B100="Bristol","")
Dynamic array formulas.
 
Upvote 0
.. or do you mean this?

thedeadzeds.xlsm
ABCD
1Name ListLocationBristol
2DaveBristolDave
3JimBristolJim
4SteveBristolSteve
5RobBristolRob
6AndrewCardiff
7CorrineCardiff
8SarahCardiff
9SallyCardiff
10AnnCardiff
11DonnaCardiff
Sheet2
Cell Formulas
RangeFormula
D2:D5D2=FILTER(A2:A100,B2:B100=D1,"")
Dynamic array formulas.


thedeadzeds.xlsm
A
1Jim
2
3
4
5
Sheet1
Cells with Data Validation
CellAllowCriteria
A1:A5List=Sheet2!$D$2#


1724244848647.png
 
Upvote 0
.. or do you mean this?

thedeadzeds.xlsm
ABCD
1Name ListLocationBristol
2DaveBristolDave
3JimBristolJim
4SteveBristolSteve
5RobBristolRob
6AndrewCardiff
7CorrineCardiff
8SarahCardiff
9SallyCardiff
10AnnCardiff
11DonnaCardiff
Sheet2
Cell Formulas
RangeFormula
D2:D5D2=FILTER(A2:A100,B2:B100=D1,"")
Dynamic array formulas.


thedeadzeds.xlsm
A
1Jim
2
3
4
5
Sheet1
Cells with Data Validation
CellAllowCriteria
A1:A5List=Sheet2!$D$2#


View attachment 115735
This is perfect thanks so much
 
Upvote 0
.. or do you mean this?

thedeadzeds.xlsm
ABCD
1Name ListLocationBristol
2DaveBristolDave
3JimBristolJim
4SteveBristolSteve
5RobBristolRob
6AndrewCardiff
7CorrineCardiff
8SarahCardiff
9SallyCardiff
10AnnCardiff
11DonnaCardiff
Sheet2
Cell Formulas
RangeFormula
D2:D5D2=FILTER(A2:A100,B2:B100=D1,"")
Dynamic array formulas.


thedeadzeds.xlsm
A
1Jim
2
3
4
5
Sheet1
Cells with Data Validation
CellAllowCriteria
A1:A5List=Sheet2!$D$2#


View attachment 115735

Sorry quick question with this. The filter list will grow over time as more people get added to 'Bristol'. Is there a way to dynamically grow the validation list? So today it may be a1:a5 but tomorrow this could be a1:a100? Many thanks
 
Upvote 0
Not sure what you mean. The formula in D2 of Sheet2 already looks in rows 2:100 of that sheet to make the data validation list.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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