M365 Excel Basics Video 12 - SORT and FILTER Features in Excel
M365 Excel Basics Video 12 - SORT and FILTER Features in Excel
Sort ........................................................................................................................................................ 4
Filter....................................................................................................................................................... 7
Page 2 of 11
Busn 216: Computer Application
In this video/lesson we will learn the Sort and Filter Feature, Flash Fill and we will also learn the Text Join
Formula.
We learned for us to be able to use the Data Analysis Tools in Excel, it is very important that we have a
proper Dataset. Refer to M365 Excel Basics Video 02. We learned that a Proper Dataset is also known as a
Table, and we have been using these terms interchangeably in this class.
▪ Column Headers or Field Names in the first row. The Column headers at the top of each column
indicates what data the column contains
▪ Records in the subsequent Rows
▪ Proper Dataset must also be surrounded by empty cells or worksheet column headers (Letters) and
Worksheet row headers (Numbers)
▪ It helps to avoid repetition by having each field listed once, for example the Month field is listed
once.
▪ It enables you to easily make calculations, perform data analysis and create formulas
▪ Many of the tools and features in Excel require proper datasets, for example PivotTables, Filtering,
Power Query and Power Pivot).
Knowing that we need to have a proper dataset for our Data Analysis, this is helpful as we dive into these
new features that we are learning in this lesson.
Page 3 of 11
Busn 216: Computer Application
Sort
By default, records appear in the order in which they were entered. You can use the Sort Feature in your
data by arranging the records by one or more chosen fields.
▪ Sorting organizes a Proper Dataset (Table) or a single column alphabetically, numerically, by color
or you can also do a Custom Sort to organize your data.
▪ Sorting Data helps to effectively organize, analyze and visualize data
▪ If you sort one field/column in a proper dataset, the entire Proper Dataset is sorted so the records
remain intact.
Sorting Options
How to Sort:
1. Select one cell in the column that you want to sort and use the Sorting feature.
2. On the Data Ribbon Tab, in the Sort & Filter group.
a. Click the A to Z button to sort ascending sort (smallest to the largest number)
b. Click on the Z to A button to sort descending sort (largest to smallest number)
c. In the Sort by dropdown list, select the first column on which you want to sort.
Page 4 of 11
Busn 216: Computer Application
d. In the Sort On list, choose Cell Values, Cell Color, Font Color, or Conditional Formatting
Icon.
i. If you select to sort by color
1. Click on any single cell inside the data set
2. On the Data Ribbon Tab, in the Sort & Filter group, click Sort
3. In the dialog box, choose the column you want to sort by
4. Under ‘Sort On” select “Cell Color”
5. Choose the preferred color of sorting
6. Add as many levels as needed
7. Click OK to apply the sorting by color
e. In the Order list, choose the order that you want to apply to the Sort operation—
alphabetically or numerically, ascending or descending (that is, from A to Z (or Z to A) for
text, or lower to higher, or higher to lower for numbers), or the Custom List.
i. If you select the Custom List, Custom Lists dialog box will open, if you do not have a
custom list already created you can create one, or you can delete the one that is
already created and create a new one.
1. Select New List and on the List Entries box, enter your custom sort list. Press
Enter to separate list entries. Once you are done creating your custom List,
click Add to add your custom list to the Customs Lists box and click Ok to
create the list and return to the Sort dialog box.
2. Click OK to apply this Sort order to your selected column/field.
Page 5 of 11
Busn 216: Computer Application
Note: Any custom list that you create will remain part of your Excel settings and is available to all other
workbooks. If you want to remove the custom list, select the custom list in the Custom Lists dialog box, and
click Delete. This will remove the custom list from your Excel Settings.
Page 6 of 11
Busn 216: Computer Application
Filter
What does Filter do?
▪ ** Filter is perfect Feature to Extract Records that match a set of criteria and to show only the data
you want to see.
▪ Filter dropdown Arrows always shows a Unique List of Items from the Field/Column
▪ Filter allows you to filter in these ways:
• Check Box from Unique List
• Built-in features for the Data Types: Date, Text, Numbers
• Search textbox
• You can use an AND Logical Test, Or Logical Test, or a Between Logical Tests
AND Logical Test (using AND Criteria):
o You can have two or more criteria for an AND Logical Test.
o If we select the check the boxes for “Tiana” on the Sales Rep Field AND “LOL
Surprise” on the Product Field:
For each record we are asking two questions:
“Is the Sales Rep Tiana?”
AND
“Is the Product sold LOL Surprise?”
o For each Record we can get these possible answers:
❖ TRUE, FALSE
❖ FALSE, TRUE
❖ FALSE, FALSE
❖ TRUE, TRUE
o For an AND Logical Test you must get "All Are TRUE", in order for the record to be
included in the filtered data set.
Page 7 of 11
Busn 216: Computer Application
BETWEEN Logical Test is a form of AND Logical Test that has an upper and lower limit:
o Only items that are between the upper and lower limit are included.
o Example: Date Filters that only want records that are between October 1, 2024 and
October 31, 2024.
Page 8 of 11
Busn 216: Computer Application
Turn Off Filter
▪ Use “Clear” button in Sort & Filter group in Data Ribbon Tab. Keyboard: Ctrl + Shift + L, L
Page 9 of 11
Busn 216: Computer Application
▪ Join Operator allows to join to items together into one cell, like joining First and Last Name
▪ Formula like; ="Item # "&D28 joins text in double quotes and a number from a cell
▪ Anytime you have to put text into a formula, you must use Double Quotes "Item # " will not change
Text String
Text Functions:
▪ LEFT
o LEFT will extract from the left (start of text string) a specified number of characters in the text
string.
Formula Syntax
= LEFT(text, [num_chars])
• text = The text string that contains the characters you want to extract.
• num_chars = Specifies the number of characters you want extract from the left,
where 1 is first character, 2 is second character and so on.
▪ RIGHT
o RIGHT will extract from the right (end of text string) a specified number of characters in the text
string.
Formula Syntax
= RIGHT(text, [num_chars])
• text = The text string that contains the characters you want to extract.
• num_chars = Specifies the number of characters you want extract from the right, where
is last character, 2 is second to last character and so on
Page 10 of 11
Busn 216: Computer Application
Flash Fill
What does Flash Fill do?
▪ Flash Fill is a fast way to “clean” a column of data, like combining first and last name or extracting
the State Abbreviation from a description.
▪ What does “Cleaning Data” mean?
o You convert non-useful data into useful data.
Examples:
▪ Type enough examples to illustrate the pattern for the "cleaned data" to the right of your column
and when you see the "Ghost List", hit Enter.
▪ You give Excel one or more examples to the right of your data, and it tries to figure out what you
want.
▪ If Excel can see your "Pattern", it will perform the action for the whole column. Actions include;
Combine, Extract, Insert, Reverse
▪ Keyboard to run Flash Fill: Ctrl + E
▪ Flash Fill is in the Data Tools group in the Data Ribbon Tab
▪ Microsoft calls it “Program by example” because you give it an example and behind the scenes it
creates a program that does what you want.
▪ When you want the solution to update when source data changes.
▪ When it is a one-time data cleaning task, when you know the pattern of your data, and you can
provide enough examples for Flash Fill to understand what you want.
Page 11 of 11