list of countries, states and cities

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
150
Office Version
  1. 2013
Platform
  1. Windows
Can please anyone help me.

In column A the person needs to select the country ( I have the list of the countries in column X, so simply it is a question of data validation )

Depending on the value selected in cell say A2, the dropdown in B2 should have the list of states to select ( I have in column Y the list of the state of India, For other countries, state / province list I do not have as 99% of my students are from India)

1. Here my problem is, the dropdown in B2 should show the list if country selected is India or allow the user to fill his state if he is from any other country

SIMILARLY depending on the value selected in cell say B2, the dropdown in C2 should have the list of cities to select ( I have in column Z and AA the list of the cities statewise of India, other country's city list I do not have)

StateName of City
Andaman and Nicobar IslandsPort Blair
Andhra PradeshAdoni
Andhra PradeshAmalapuram
Arunachal PradeshNaharlagun
Arunachal PradeshPasighat
AssamBarpeta
AssamBongaigaon City
AssamDhubri
AssamDibrugarh
BiharAraria
BiharArrah
BiharArwal

2. Here my problem is the dropdown in C2 should show the list if state selected is from India in B2 or allow the user to fill his city
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
See if this helps:
 
Upvote 0
No sir,

this will allow the user to select the entry from the list base on the earlier selection, but not allow him to enter a new state or new city if the appropriate data is not in the list
Like say if he is from any other country except india
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,215
Members
452,618
Latest member
Tam84

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