How to create a dynamic drop down list in alphabetical order in Excel?
Most of you may know how to create a dynamic drop down list, but in some cases, you may want to sort the drop down list in alphabetical order as below screenshot shown. Now this tutorial introduces the way to create a dynamic drop down list in alphabetical order in Excel。
Create dynamic drop down list in alphabetical order
To create a dynamic drop down list in alphabetical order, you need to do as below steps.
1. Select the original data then click Formulas > Define Name. see screenshot:
2. Then in the New Name dialog, type a name for the selected range in the Name text box, and type this formula =OFFSET(Sheet1!$A$1, 0, 0, COUNTA(Sheet1!$A$1:$A$1001)) into Refers to text box. See screenshot:
Note: In the formula, A1 is the first cell of your original data range, and sheet1 is the worksheet you original data is in.
3. Click OK. Then go to another sheet, here I go to Sheet2, and select a cell to type this formula =IF(COUNTA(List)>=ROWS($A$1:A1), INDEX(List, MATCH(SMALL(COUNTIF(List, "<"&List), ROW(A1)), COUNTIF(List, "<"&List), 0)), "") into it, and press Shift + Ctrl + Enter keys, then drag the autofill handle down until blank cell appears. See screenshot:
Note: In the above formula, List is the name you define for the original data in step 2, A1 is the first cell of the original data.
4. Then select the column the formula cells in, and click Formula > Define Name, then in the Name text box type SortedValues in the New Name dialog. See screenshot:
5. Click OK. Then go to select a cell or a range you need to create the dynamic drop down list, and click Data > Data Validation. See screenshot:
6. Then in the Data Validation dialog, select List from the Allow list, and type =SortedValues into Source text box. See screenshot:
7. Click OK. Now you can see the created drop down list is sorted in alphabetical order.
Tip: If you add new data to the original data, the data will be automatically added to the drop down list and sort them again. See screenshot:
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.
Thank you very much for useful tutorial.
Data validation lists in alphabetical order and containing unique values can be created using VBA codes :
Set dizi = CreateObject("System.Collections.ArrayList")
Son = Sheets("Products").Cells(Rows.Count, 2).End(3).Row For Each Veri In Sheets("Products").Range("B2:B" & Son)
If dizi.Contains(Replace(Veri.Value, ",", ".")) = False Then dizi.Add (Replace(Veri.Value, ",", "."))
End If Next
dizi.Sort For x = 2 To 41
Sheets("Sheet1").Cells(x, 1).Validation.Delete Sheets("Sheet1").Cells(x, 1).Validation.Add Type:=xlValidateList, Formula1:=Join(dizi.ToArray, ",")
Details and sample file at : https://www.technologicaltipstools.online/2020/02/excel-vba-create-dynamic-unique-sorted.html
Excellent tutorial, ty so much! I noticed that my dropdown is displayed scrolled down, where there are blanks. Yours doesn't seem to do so. How can I make the list display the "a" at the top instead of blanks after the "z" and having to scroll up to "a". Thank you so much.