Drop down menu Autofill

alifihri

New Member
Joined
Apr 5, 2023
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hey I need help on this:
Capture d'écran 2024-05-20 152036.png

I first solved the proplem of showing the correct cities based on the what was selected in the first drop menu by using this formulas in data validation: (coutry and city are named ranges for countries and cities).
IF($E$3="US",OFFSET(city, 0, 0, 2, 1),city)
But the problem is that drop down values are not autofilled for example If I pick international and click on Paris, paris will stay there even if I changed to E3 to us.

What I want to achive here to make drop down values dynamic change values after changing value of the controlling drop down or at least make the first value as default I whish you got me. Thanks
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
This is auto fill drop down i did a while back. It is for three, but you can just cut out the 3rd one.
I think you have the functions that can build these lists, etc.
(I just rechecked, 2019 has filter but not unique - sorry)

Book2
ABCDEFGHIJKLMN
1Column AColumn BColumn CCOL A SELECTIONCOL B SELECTIONCOL C SELECTIONCOLADROPCOLBDROPCOLCDROP
2ADNBIAGAHAE
3ADO^^for ease and reference here, these will beBIAF
4ADPwhere the drop downs are placed on your processingJAG
5AEQworksheetAH
6AER
7AES
8AFT
9AFU
10AFV
11AGW
12AGX
13AGY
14AGZ
15BHAA
16BHAB
17BHAC
18BHAD
19BIAE
20BIAF
21BIAG
22BIAH
23BJAI
24BJAJ
25BJAK
26BJAL
27BJAM
28CKAN
29CKAO
30CKAP
31CKAQ
32CLAR
33CLAS
34CLAT
35CLAU
36CLAV
37CMAW
38CMAX
39CMAY
40CMAZ
41BABBBC
Sheet1
Cell Formulas
RangeFormula
L2:L3L2=SORT(UNIQUE(TBL_LOOKUPS[Column A]))
M2:M4M2=SORT(UNIQUE(FILTER(TBL_LOOKUPS[Column B],TBL_LOOKUPS[Column A]=E2,"")))
N2:N5N2=FILTER(TBL_LOOKUPS[Column C],(TBL_LOOKUPS[Column A]=E2)*(TBL_LOOKUPS[Column B]=G2),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
E2List=L2#
G2List=$M$2#
I2List=$N$2#
 
Upvote 0

Forum statistics

Threads
1,217,375
Messages
6,136,187
Members
449,997
Latest member
satyam7054

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