2.5 Dependent Drop-down: City › Area
Dependent drop-down (City › Area) with example — in 30 seconds
What: A dependent drop-down shows only the choices that belong to the value picked in another cell.
Why: If City is Pune, the Area list should not offer College Road. Fewer choices mean fewer typing mistakes.
Tiny example: Pick Pune in D2. The Area drop-down in E2 shows only Kothrud, Baner and Hinjewadi.
Dependent drop-down (City › Area) with example — 30 सेकंदात
काय: Dependent drop-down दुसऱ्या cell मध्ये निवडलेल्या value शी संबंधित choices च दाखवतो.
का: City Pune असेल तर Area list मध्ये College Road यायला नको. Choices कमी म्हणजे typing च्या चुका कमी.
छोटं उदाहरण: D2 मध्ये Pune निवडा. E2 च्या Area drop-down मध्ये फक्त Kothrud, Baner आणि Hinjewadi दिसतात.
Dependent drop-down (City › Area) with example — 30 सेकंड में
क्या: Dependent drop-down दूसरी cell में चुनी गई value से जुड़े choices ही दिखाता है.
क्यों: City Pune हो तो Area list में College Road नहीं आना चाहिए. कम choices यानी typing की कम गलतियाँ.
छोटा उदाहरण: D2 में Pune चुनें. E2 के Area drop-down में सिर्फ़ Kothrud, Baner और Hinjewadi दिखते हैं.
First look at the data (before → after):
Expected result — D2 = Pune → choices in the E2 drop-down
| Lists!J (spill) | Shown in E2 list |
|---|---|
| Kothrud | Yes |
| Baner | Yes |
| Hinjewadi | Yes |
About this data: Teaching sample for a fictional shop “Maple Bakery Co”. Figures and names (e.g. Aamir Khan) are made up for this lesson on dependent drop down city area.
Before table and formula as text
Before — Lists sheet: table CityArea
| City | Area |
|---|---|
| Pune | Kothrud |
| Pune | Baner |
| Pune | Hinjewadi |
| Nashik | College Road |
| Nashik | Gangapur Road |
| Nagpur | Dharampeth |
About this data: Demo table only — not real customer or company data. Built to practise dependent drop down city area.
Formula / click path
Lists!J2: =FILTER(CityArea[Area], CityArea[City]=Orders!D2)
Orders!E2 › Data Validation › List › Source: =Lists!$J$2#
Do it step by step:
- Type the City and Area pairs on a sheet named
Listsand press Ctrl + T. Name the tableCityArea. - In Lists!J2, type
=FILTER(CityArea[Area], CityArea[City]=Orders!D2). - Go to Orders!E2 and click Data › Data Validation.
- Choose List. In Source, type
=Lists!$J$2#. Click OK. - Pick Pune in D2, then open the drop-down in E2.
स्टेप बाय स्टेप करून बघा:
Listsनावाच्या sheet वर City आणि Area च्या जोड्या type करा आणि Ctrl + T दाबा. Table चं नावCityAreaठेवा.- Lists!J2 मध्ये
=FILTER(CityArea[Area], CityArea[City]=Orders!D2)type करा. - Orders!E2 वर जा आणि Data › Data Validation वर click करा.
- List निवडा. Source मध्ये
=Lists!$J$2#type करा. OK करा. - D2 मध्ये Pune निवडा, मग E2 चा drop-down उघडून बघा.
स्टेप बाय स्टेप करके देखें:
Listsनाम की sheet पर City और Area की जोड़ियाँ type करें और Ctrl + T दबाएँ. Table का नामCityAreaरखें.- Lists!J2 में
=FILTER(CityArea[Area], CityArea[City]=Orders!D2)type करें. - Orders!E2 पर जाएँ और Data › Data Validation पर click करें.
- List चुनें. Source में
=Lists!$J$2#type करें. OK करें. - D2 में Pune चुनें, फिर E2 का drop-down खोलकर देखें.
When the user picks a City, the Area drop-down should show only that city's areas.
| Pune | Solapur | Nashik | Sambhaji_Nagar | Kolhapur | Nagpur |
|---|---|---|---|---|---|
| Kothrud | Hotgi Road | College Road | CIDCO | Rajarampuri | Dharampeth |
| Hinjewadi | Murarji Peth | Gangapur Road | Nirala Bazar | Tarabai Park | Sitabuldi |
| Baner | |||||
| Hadapsar | |||||
| Wakad |
About this data: Made-up rows so you can copy the pattern for dependent drop down city area. Currencies may use ₹, £, € or $.
Method A – named ranges + INDIRECT (all versions)
Steps in Excel
- Type the table above on the
Listssheet (headers in row 1). Note Sambhaji_Nagar uses an underscore because a name cannot contain a space. - Select the whole block › Home › Editing › Find & Select › Go To Special › Constants (selects only filled cells).
- Formulas › Defined Names › Create from Selection › tick only Top row › OK. Excel creates names
Pune,Solapur,Nashik,Sambhaji_Nagar,Kolhapur,Nagpur. - City drop-down in
Orders!D2:D1000: List source=CityList(the vertical list of the six real city names from 2.4). -
Area drop-down in E2:E1000: List source:
=INDIRECT(SUBSTITUTE(D2," ","_")) -
Pick Sambhaji Nagar in D2 – the SUBSTITUTE turns it into
Sambhaji_Nagar, INDIRECT turns that text into the named range, and E2 shows CIDCO and Nirala Bazar.
Method B – FILTER (Microsoft 365 / Excel 2021+)
Keep a two-column mapping table CityArea (City, Area). In a helper cell, say Lists!J2:
=FILTER(CityArea[Area], CityArea[City]=Orders!D2)
Then Area validation source: =Lists!$J$2#. This works for one input row at a time (a dashboard selector). For many rows, Method A is simpler.
Ravindra Bagale's Tip
In a dependent drop-down, the common mistake is that the city name and the named range name are slightly different – "Sambhaji Nagar" vs "Sambhaji_Nagar", or a space at the end. Then INDIRECT gives #REF! and the list appears empty. Use SUBSTITUTE, and select the City first and then the Area – if you do it the other way round, the old area stays as it is.
Ravindra Bagale's Tip – मराठी
Dependent drop-down मध्ये बऱ्याच students ची चूक म्हणजे city चं नाव आणि named range चं नाव थोडंसं वेगळं असणं – "Sambhaji Nagar" vs "Sambhaji_Nagar", किंवा शेवटी space. मग INDIRECT #REF! देतो आणि list रिकामी दिसते. SUBSTITUTE वापरा, आणि आधी City select करा मग Area – उलटं केलं तर जुना area तसाच राहतो.
Ravindra Bagale's Tip – हिंदी
Dependent drop-down में बहुत से students की गलती होती है कि city का नाम और named range का नाम थोड़ा अलग होता है – "Sambhaji Nagar" vs "Sambhaji_Nagar", या आख़िर में space. फिर INDIRECT #REF! देता है और list खाली दिखती है. SUBSTITUTE इस्तेमाल करो, और पहले City select करो फिर Area – उल्टा किया तो पुराना area वैसा ही रह जाता है.
Practice task
Build the City › Area dependent drop-down for rows 2–100. Test all six cities. Bonus: add a conditional-formatting rule (2.8) that turns the Area cell red if it does not belong to the chosen city.
Loading practice tasks...
- VLOOKUP name (Easy): Name for ID "B103" with VLOOKUP.
- XLOOKUP value (Easy): The Rate per night for ID "B103".
- Position (Easy): Position of "Chloe Dubois" in B2:B9.
- INDEX and MATCH (Medium): ID for name "Chloe Dubois" using INDEX and MATCH.
- Not found message (Medium): Nights for ID "Z999", or "Not found".
- IFNA with VLOOKUP (Medium): VLOOKUP of "Z999" in A2:E9 column 4, or "Missing".
- XMATCH (Medium): Position of ID "B103" in A2:A9.
- Slab rate (Hard): Rate for E2 from the slab table G2:H6.
- Slab amount (Hard): E3 times its slab rate.
- Two-way lookup (Hard): Value in A2:E9 at the row of "Chloe Dubois" and column "Nights".
- Lookup the top (Hard): Name with the largest Nights.
Quick revision cards
Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.


