Dynamic Data Validation

m3ko

New Member
Joined
Apr 3, 2024
Messages
8
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Hello Everyone,

I have another issue I'm running into and wondering if there is an efficient solution without going into VB or using helper column(s).
Basically I want to create drop down options/lists that anyone can use to find the length.

I have simple data validation set up for dropdown list in H9 and H11 - they work ok.
Now, for H15, I want it to check for the values in both H9 and h11.

In the sheet Config Info. I am hoping to look up H9 against Column A, and then match H11's SubType between rows K3:V3 and give me the dropdown options.
For example, if H9 (size) is 2.4375 and H11 (SubType) is "H", the droplist option for H15 should be: 3.5 & 6.
If H11 (SubType) is "B", H15 should have droplist option 6.

But I don't think I can look up/do a dynamic data validation?

Any help or insight is greatly appreciated.
Thank you!


Thickness Type.xlsm
GH
8UnitsImperial
9Size1.4375
10StyleC_Both_Sides
11SubTypeA
12
13
14
15Length
Tree
Cells with Data Validation
CellAllowCriteria
H8:I8List=$T$5:$U$5
H9:I9List=INDIRECT(H8)
H10:I10List=$V$5:$X$5
H11:I12List=INDIRECT(H10)
H13:I13List=INDIRECT(H11)



Thickness Type.xlsm
ABCDEFGHIJKLMNOPQRSTUV
3AABCCDEFFGHH
4SIZEWIDTH AHHHhODLTLTLTLTLTLTLTLTLTLTLTLT
50.3750.09380.0580.0460.0580.02052
60.43750.09380.0570.0470.0570.0212
70.50.1250.0750.0600.0750.0342
80.5620.1250.0740.0610.0740.0352
90.6250.18750.1130.0850.1130.0592
100.68750.18750.1120.0860.1120.0602
110.750.18750.1100.0870.1100.0622
120.81250.18750.1100.0880.1100.0622
130.8750.18750.1090.0890.1090.0632
140.93750.250.1470.1130.1470.0882
1510.250.1460.1140.1460.0892.252.252.25
161.06250.250.1450.1150.1450.0902.25
171.1250.250.1440.1160.1440.0912.25
181.18750.250.1430.1170.1430.0912.25
191.250.250.1430.1180.1430.0922.252.252.25
201.31250.31250.1800.1430.1800.1172.5
211.3750.31250.1790.1430.1790.1182.5
221.43750.3750.2170.1680.2170.143332.2532.25332.253
231.50.3750.2160.1690.2160.144332.252.253
241.56250.3750.2150.1700.2150.1453
251.6250.3750.2140.1710.2140.1453
261.68750.3750.2130.1720.2130.1463
271.750.3750.2130.1720.2130.1473.532.252.253
281.81250.50.2890.2210.2890.1953.5
291.8750.50.2880.2220.2880.1963.5
301.93750.50.2870.2230.2870.19743.52.253.52.253.53.52.253.5
3120.50.2860.2240.2860.19843.52.252.253.5
322.06250.50.2850.2250.2850.1994
332.1250.50.2840.2260.2840.2004
342.18750.50.2840.2260.2840.20143.52.253.52.253.52.253.5
352.250.50.2830.2270.2830.2024
362.31250.6250.3600.2750.3600.2504.5
372.3750.6250.3590.2760.3590.2514.5
382.43750.6250.3580.2770.3580.25253.562.253.562.2563.562.253.56
392.50.6250.3570.2780.3570.25352.252.25
Config Info
Cell Formulas
RangeFormula
C5:C39C5=((POWER(B5,2))/(4*A5))+(B5/2)+0.005
D5:D39D5=(B5/2)-((POWER(B5,2))/(4*A5))+0.005
E5:E39E5=((POWER(B5,2))/(4*A5))+(B5/2)+0.005
F5:F39F5=(B5/2)-((POWER(B5,2))/(4*A5))-0.0205
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I think you would need helper cells somewhere. I have used J15 and below but it could be anywhere, including on the Config Info sheet.

m3ko_1.xlsm
GHIJ
8UnitsImperial
9Size2.4375
10StyleC_Both_Sides
11SubTypeH
12
13
14
15Length3.5
166
17
Tree
Cell Formulas
RangeFormula
J15:J16J15=LET(r,INDEX('Config Info'!$K$6:$V$40,MATCH(H9,'Config Info'!$A$6:$A$40,0),0),TRANSPOSE(FILTER(r,('Config Info'!$K$4:$V$4=H11)*(r<>""),"")))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
H15List=$J$15#


1732276713505.png
 
Upvote 0

Forum statistics

Threads
1,224,944
Messages
6,181,930
Members
453,073
Latest member
bfrobin

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