Using the SORT and FILTER function in the same formula in Google Sheets
Key Takeaways
Using SORT and FILTER functions in Google Sheets for data analysis and manipulation
Full Transcript
in this video i'm going to show you how to use the filter function and the sort function in google sheets first i'll show you how to use these functions individually and then i'll show you how to combine them in the same formula so first let's go over the filter function as you can see in columns a b and c we have data showing sales representatives and the amount of revenue that they earned and what we're going to do is filter this list so that we're only displaying the sales representatives who have earned more than ten thousand dollars so how we're going to do this is enter our filter function into cell e2 so i'm going to click on cell e2 and then i'm going to type equals filter parentheses to begin my filter function and then i'm going to specify the source range which contains the data that i want to filter which in this case is the range a2 through c15 and so i'm typing a2 colon c15 and then i'm going to type a comma and now i'm going to specify the criteria column which is the column that we're checking our criteria for and in this case the criteria column is column c so i'm going to type c2 colon c15 now i'm going to type a greater than sign and then type the number 10 000 then i'm going to press enter and so now we're displaying a filtered list of data that only displays the sales representatives who have earned more than ten thousand dollars and we've done this by using the filter function and what we've told google sheets with this function is to filter columns a through c where column c is greater than 10 000. so now let's go over the sort function in google sheets now we're going to sort the same set of data that we just filtered by using this sort function in cell e2 so i'm going to click on cell e2 and then i'm going to type equals sort parentheses to begin the sort function and just like in the filter function we're going to start by specifying our source range the range that contains the data that we want to sort which again is a2 through c15 and so i'm typing a2 colon c15 now i'm going to type a comma and i'm going to type the number 2 which indicates that i want to sort by the second column of the range that i specified then i'm going to type another comma and then i'm going to type true which indicates that i want to sort in ascending order true means ascending order and false means descending order so now i'm going to press enter so now i have a set of data that's sorted by the representative's name a b c d and so on and so again we're telling google sheets that we want to sort columns a through c by the second column in ascending order now let's go over how to use the sort function with the filter function in the same formula so here we have our filter function that we did earlier which again is filtering the data to only show the representatives who earned more than ten thousand dollars and what we're going to do is add a sort function to this formula in cell e2 so that our filtered list of results is also sorted by representative name so i'm going to click on cell e2 and then i'm going to drag my cursor into the formula bar so that i can edit the formula and so i'm going to click right after the equal sign and then i'm going to type sort parentheses now i'm going to drag my cursor and click at the very right of the formula and then type a comma to another comma and then true and so now we've combined the sort function with the filter function and when we press enter now our filtered results are sorted by representative name and so let's review what these formulas are doing one more time so again first we're telling google sheets to filter columns a through c where column c is greater than 10 000 and then we've wrapped the filter function in the sort function or in other words we've nested the filter function inside of the sort function and we've specified with our sort function that we want to sort by the second column in ascending order if you want to learn more about using the sort function and the filter function i've linked to both articles and videos below that show you both how to use the function individually as well as combined
Original Description
Get help with your spreadsheet project, or personalized training:
https://www.spreadsheetclass.com/consulting/
Get the ultimate formulas cheat sheet
https://www.spreadsheetclass.com/best-google-sheets-cheat-sheet/
Learn to build dashboards in Google Sheets:
https://www.spreadsheetclass.com/google-sheets-dashboards-course/
In this video I will show you how to use the Google Sheets SORT function, and the FILTER function. I'll show you how to use these functions in individual formulas, and I will also teach you how to combine these two functions into one formula.
FILTER function video lesson:
https://youtu.be/934D3YdxZQg
FILTER function article:
https://www.spreadsheetclass.com/google-sheets-filter-function/
SORT function article:
https://www.spreadsheetclass.com/google-sheets-sort-function/
SORT and FILTER functions article:
https://www.spreadsheetclass.com/google-sheets-sort-filter-functions/
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Spreadsheet Class · Spreadsheet Class · 10 of 60
1
2
3
4
5
6
7
8
9
▶
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
How to use the FILTER function in Google Sheets (Single or Multiple Conditions)
Spreadsheet Class
5 formulas that combine columns in Google Sheets (Horizontal and Vertical)
Spreadsheet Class
All the ways to extract text and numbers in Google Sheets
Spreadsheet Class
How to filter based on a list in Google Sheets
Spreadsheet Class
How to fix the "FILTER has mismatched range sizes" error in Google Sheets
Spreadsheet Class
How to color cells, and alternate row colors in Google Sheets
Spreadsheet Class
How to automatically create a series of values in Google Sheets
Spreadsheet Class
Google Sheets Beginner Tutorial
Spreadsheet Class
How to make a Dashboard in Google Sheets (Full Tutorial)
Spreadsheet Class
Using the SORT and FILTER function in the same formula in Google Sheets
Spreadsheet Class
ARRAYFORMULA function: Apply a formula to an entire column in Google Sheets
Spreadsheet Class
Automatically resize columns in Google Sheets with Fit to Data
Spreadsheet Class
How to import or convert a CSV file into Google Sheets
Spreadsheet Class
How to export / download a CSV from Google Sheets
Spreadsheet Class
How to change text case in Google Sheets with UPPER LOWER and PROPER
Spreadsheet Class
How to use the Calendar Template in Google Sheets
Spreadsheet Class
How to rotate text in Google Sheets
Spreadsheet Class
How to create charts in Google Sheets (And how to customize them too)
Spreadsheet Class
How to copy formulas, and lock cell references in Google Sheets (Relative & absolute references)
Spreadsheet Class
How to copy and paste values only in Google Sheets
Spreadsheet Class
How to fix the "Circular Dependency Detected" error in Google Sheets
Spreadsheet Class
Evenly space columns in Google Sheets (Make columns the same size quickly)
Spreadsheet Class
Doing math in Google Sheets: Add, Sum, Subtract, Multiply, Divide, Square, Square Root
Spreadsheet Class
How to filter horizontally in Google Sheets (Filter columns)
Spreadsheet Class
UNIQUE function: Removing duplicates with 2 methods in Google Sheets
Spreadsheet Class
Report Builder template for Google Sheets (Automatically organize / calculate your data)
Spreadsheet Class
Build a Google Sheets dashboard with Google Forms data (Automated)
Spreadsheet Class
Guitar tabs template for Google Sheets (& PDF) | Create your songs in a Google spreadsheet
Spreadsheet Class
Interactive Google Sheets dashboard with drop down menus tutorial
Spreadsheet Class
Student attendance dashboard tutorial in Google Sheets: Simple + advanced
Spreadsheet Class
SORT function in Google Sheets (Sort data vertically or horizontally)
Spreadsheet Class
How to use the SORT function in Google Sheets (Quick Version)
Spreadsheet Class
How to copy chart formatting and duplicate charts in Google Sheets
Spreadsheet Class
How to copy a tab to a new file / sheet in Google Sheets
Spreadsheet Class
How to duplicate tabs in Google Sheets
Spreadsheet Class
How to hide and unhide tabs in Google Sheets
Spreadsheet Class
How to make a copy of a file in Google Sheets
Spreadsheet Class
How to change tab color in Google Sheets
Spreadsheet Class
How to insert, delete, rename, and reorder tabs in Google Sheets
Spreadsheet Class
How to move a chart to another sheet in Google Sheets
Spreadsheet Class
How to wrap text, unwrap text, and clip text in Google Sheets
Spreadsheet Class
Switch columns and rows with the TRANSPOSE function in Google Sheets
Spreadsheet Class
Project management timeline template for Google Sheets (Gantt Chart)
Spreadsheet Class
Build a dashboard in 3 simple steps (Google Sheets)
Spreadsheet Class
Pull data from websites in Google Sheets with IMPORTXML function | Web scraping (Stock prices)
Spreadsheet Class
(Quick version) Pulling data from websites with IMPORTXML function | Google Sheets web scraping
Spreadsheet Class
Pull cryptocurrency prices in Google Sheets (2 methods) | GOOGLEFINANCE and IMPORTXML crypto prices
Spreadsheet Class
Fast & simple dashboard tutorial for Google Sheets (Build in under 15 minutes)
Spreadsheet Class
How to create drop-down lists in Google Sheets (Data validation)
Spreadsheet Class
The ultimate cheat sheet for Google Sheets (Formulas, charts, shortcuts, and more)
Spreadsheet Class
3 ways to pull crypto prices into Google Sheets | GOOGLEFINANCE, IMPORTXML, IMPORTDATA
Spreadsheet Class
Stock & crypto tracker templates for Google Sheets (Portfolio, Analysis, Watchlist, Screener)
Spreadsheet Class
How to indent in Google Sheets (5 Methods)
Spreadsheet Class
Pull stock prices & stock data with the GOOGLEFINANCE function in Google Sheets (& Crypto too)
Spreadsheet Class
How to create and customize charts in Google Sheets (Quick version)
Spreadsheet Class
Apply a formula to an entire column in Google Sheets with the ARRAYFORMULA function | Quick Version
Spreadsheet Class
How to insert a new line in a cell (or formula) in Google Sheets
Spreadsheet Class
How to freeze rows & columns (& How to unfreeze) in Google Sheets
Spreadsheet Class
How to add and sum in Google Sheets (Addition and SUM function)
Spreadsheet Class
How to average in Google Sheets (Using the AVERAGE function)
Spreadsheet Class
More on: Data Literacy
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
My first SQL interaction
Dev.to · Mohammad Meezan
Müşteri Değerini Anlamak: RFM, CLTV ve Tahmine Dayalı CRM Analitiği
Medium · Machine Learning
Müşteri Değerini Anlamak: RFM, CLTV ve Tahmine Dayalı CRM Analitiği
Medium · Data Science
Müşteri Değerini Anlamak: RFM, CLTV ve Tahmine Dayalı CRM Analitiği
Medium · Python
🎓
Tutor Explanation
DeepCamp AI