List dependant on another list

anglais428

Well-known Member
Joined
Nov 23, 2009
Messages
634
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am trying to use the data validation to come up with 2 dropdowns (list boxes) with one depending on the other. I have a list of countries (72 locations say Argentina to Vietnam). I want these to appear in the first dropdown in A1 - I can do this (using list box). I then want (in A2) another dropdown that depends on which country is chosen in A1. e.g. If Argentina is selected in A1 only Buenos Aires should be available in the dropdown in A2.

I have a list of Countries and Cities side by side e.g. Argentina (cell E1) and Buenos Aires (cell F1). The range of this is E1:F289

Any help linking the second dropdown to the first would be great.

THanks,
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

anglais428

Well-known Member
Joined
Nov 23, 2009
Messages
634
Office Version
  1. 2016
Platform
  1. Windows
I have solved the above problem, apart from the fact that when i go to change between countries (1st dropdown) the previous countries city (2nd Dropdown) remains in cell A2 until I select again from the dropdown.
e.g.
A1: Selected Argentina from dropdown
A2: Buenos Aires appears in dropdown and is selected
Go back to A1 and Select Australia
A2 still displays Buenos Aires, however when i click on the dropdown it displays all the Australian cities.

Can anyone think of a way to get round this?

thanks
 

Christiaan

Board Regular
Joined
Nov 5, 2012
Messages
80
Anglais,

I am looking into the same issue.
How did you get it to work where the 2nd ListBox is depending on the other?!

Regards,
Christiaan
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,613
Messages
5,832,710
Members
430,155
Latest member
spacedad41

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
Top