Excel - Combine the SORT, UNIQUE, and COUNT functions
Posted on: 01/27/2023
Excel has dynamic array functions. Two of the dynamic array function are SORT and UNIQUE. I will combine SORT and UNIQUE and also combine them with COUNT and the COUNTA functions. This came from a user that asked how many unique zip codes were in a spreadsheet.

SORT and UNIQUE Functions combined
YouTube Video
Excel Function used in this video
The following functions are used in the video:
-
Unique
-
Sort
-
Count
-
CountA
-
Text
Unique Function
The UNIQUE function returns a list of unique values in a list or range.

UNIQUE Function in Excel
SORT Function in Excel
The SORT function sorts the contents of a range or array.
In the SORT screenshot below, we are sorting the range by the second column in ascending order.
-
Range
-
Sort priority - 2nd column in the example
-
Ascenting - 1

SORT Function in Excel
COUNT and COUNTA Functions in Excel
The COUNT and COUNTA functions are very similar. The COUNT function counts the number of cells that contain numbers.COUNT will not include cells that contain text. COUNTA will count cells that contain any data, including errors. COUNTA will not count blanks.

COUNT and COUNTA Functions
TEXT Function
The TEXT Function converts numbers to text and has two required arguments. Use the TEXT function when you have zip codes and the leading zero is dropped with a number.

TEXT Function in Excel
Online Microsoft Teams Training with Chris Menard
50% off coupon
Just some of the topics covered
-
Navigation Teams
-
Using private Chat
-
Using group Chat
-
Teams Meetings
-
Scheduling Meetings
-
Meeting controls
-
Roles in a meeting
-
Sharing resources
-
PowerPoint in a meeting
-
Scheduling Team meetings from Outlook
-
Working with Teams and Channels
-
Conversations
-
Files
-
Wiki and OneNote
-
Using Outlook and Teams
-
Using apps in Teams

Recent Articles
Excel - Advanced Filters
Excel filters are great for seeing just a subset of your data. You can use filters for text, numbers, and dates, but also by color. You can use font color or fill color (the paint can). You can also use Advanced Filters. You Advanced Filters when you are looking at multiple fields but for different criteria. For example, I want to filter and only see people in Georgia and New York. That is easy to do and can be done with the drop-down filter. But, for Georgia, I want to see people who are Single, and for New York, I want to see Family. That requires an Advanced Filter.
Microsoft Word to Adobe Acrobat with Bookmarks
We don't usually want to email, or share are Word files. Frequently, we make our Word documents PDF files. If you lay out your Word document correctly, it is easy to make bookmarks in the PDF.
Categories