Data Validation List Dependent on Another List

Tashat

Board Regular
Joined
Jan 12, 2005
Messages
137
Office Version
  1. 365
Platform
  1. Windows
Hi All

I have a list of Activity IDs and linked Action IDs as per below. The Action ID is calculated based on the Activity ID

Book1
AB
1Activity IDUnique Action ID
2ACT000001ACT000001B
3ACT000002ACT000002A
4ACT000003ACT000003A
5ACT000001ACT000001A
6ACT000049ACT000049A
7ACT000021ACT000021A
8ACT000021ACT000021B
9ACT000021ACT000021C
10ACT000021ACT000021D
11ACT000021ACT000021E
Sheet1
Cell Formulas
RangeFormula
B2:B6B2=A2&SUBSTITUTE(ADDRESS(1,COUNTIFS(A2:A$6,A2),4),1,"")
B7:B11B7=A7&SUBSTITUTE(ADDRESS(1,COUNTIFS(A$6:A7,A7),4),1,"")


Based on the IDs above, I have another sheet where the user can select the Activity Number in a data validation dropdown list - e.g. ACT000001 and then can select the linked Action Number in the next column. Is there a way of shrinking the drop-down list in the action number column to only present the user with the possible Action Numbers linked with that Activity ID, so the data validation list in the second column is dependent on what the user enters in the first column? e.g.

If the user selects ACT00001 from the drop down list, then the next dropdown list only gives them the choice of ACT000001a or ACT000001b
 
OK, I think you were on the right track for a simpler version than I proposed but you don't need the =IF(E1=0 part.
try this set-up

Formula in F1 copied down as far as you might ever need. In theory that would be to the bottom of the the column A:B data in case all column A values were unique.

Tashat.xlsm
ABCDEFGHIJK
1Activity IDUnique Action IDUnique IDActions
2ACT000001ACT000001BACT000001ACT000001BACT000001A
3ACT000002ACT000002AACT000002ACT000002A
4ACT000003ACT000003AACT000003ACT000003A
5ACT000001ACT000001AACT000049ACT000049A
6ACT000049ACT000049AACT000021ACT000021AACT000021BACT000021CACT000021DACT000021E
7ACT000021ACT000021A 
8ACT000021ACT000021B 
9ACT000021ACT000021C 
10ACT000021ACT000021D 
11ACT000021ACT000021E 
Sheet1
Cell Formulas
RangeFormula
E2:E6E2=UNIQUE(A2:A11)
F2:G2,F6:J6,F3:F5,F7:F11F2=TRANSPOSE(FILTER(B$2:B$11,A$2:A$11=E2,""))
Dynamic array formulas.


Data Validation as shown below.

Tashat.xlsm
AB
1Choice 1Choice 2
2ACT000001ACT000001A
3
4ACT000049
5ACT000021
6
7
8
9
10
Sheet2
Cells with Data Validation
CellAllowCriteria
A2:A10List=Sheet1!$E$2#
B2:B10List=INDEX(Sheet1!$F:$F,MATCH(A2,Sheet1!$E:$E,0))#
That's fantastic! Thank you so much for all your help with this :-)
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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