This article below provides guidance on crafting Lists and Drop Down Menus in Excel.
1. Creating a standard drop-down list
For example, when dealing with data fields like provinces or cities, implementing a drop-down list expedites the data entry process.
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/tao-list_090729.jpg)
Step 1: Go to the Data tab -> Data Validation.
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/data-validation_090729.jpg)
Step 2: In the dialog that appears under the Settings tab, choose List in the Allow field. In the Source field, enter the names of the components in the drop-down, separated by commas.
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/ok_090729.jpg)
Alternatively, without directly entering data, you can input drop-down elements on another sheet. For example, create a sheet named Data with provinces:
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/tao-sheet-du-lieu_090729.jpg)
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://gcs.tripi.vn/public-tripi/tripi-feed/img/474989fDo/anh-mo-ta.png)
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/chon-toan-bo-cac-tinh_090729.jpg)
The result is the same as creating it directly.
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/ket-qua_090729.jpg)
2. Creating a list dependent on another list
For example, inputting lists of provinces and cities dependent on provinces.
To create a dependent list, it's recommended to input data for the list using the second method. Consider having a data table:
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/bang-du-lieu_090729.jpg)
Step 1: Name the data ranges.
It's essential to name the relevant data ranges during the process of creating a dependent list:
+ For the data range within Quang Ninh province, select the range from cell C2 -> C7 -> name it QuangNinh (pay attention to correct punctuation and uppercase, and avoid using spaces).
+ Name the data range from cell D2 -> D5 as HaiPhong.
+ Name the data range from cell E2 -> E7 as ThaiBinh.
-> To name, follow these steps: Right-click on the data range you want to name -> Select Define Name:
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/define-name_090729.jpg)
- The dialog appears, enter corresponding names for the ranges as specified above:
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/ok-2_090729.jpg)
Make sure to name them similar to the province values (but without spaces).
Step 2: After naming the data, click on the cell where you want to create the list -> Go to the Data tab -> Data Validation.
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/data-validation-2_090729.jpg)
Step 3: In the dialog under the Allow field, choose List. In the Source field, enter the formula: =INDIRECT(SUBSTITUTE(C15,' ','')).
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/ok-3_090729.jpg)
Pay attention in this step; use the formula to maintain relative addressing, ensuring values between cities remain dynamic.
Step 4: Click OK to see the result:
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/ket-qua-2_090729.jpg)
Similarly, copy the formula for the remaining cells to achieve the desired outcome:
![](https://img.tripi.vn/cdn-cgi/image/width=700,height=700/https://thuthuatphanmem.vn/uploads/2016/05/02/ket-qua-3_090729.jpg)
You have successfully created a dependent list using the INDIRECT function combined with SUBSTITUTE, extracting the province name without spaces to reference the data range with the same name.
For example, when the province list retrieves the result 'Thái Bình,' the SUBSTITUTE function removes the spaces => the reference value becomes ThaiBinh => referencing the data range named ThaiBinh => The returned values are the districts within Thái Bình province from cell E2 -> E7 in the named data sheet.
Wishing you all success!