Using the SORT and FILTER function in the same formula in Google Sheets

Spreadsheet Class · Intermediate ·📊 Data Analytics & Business Intelligence ·5y ago
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/

What You'll Learn

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
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 How to use the FILTER function in Google Sheets (Single or Multiple Conditions)
How to use the FILTER function in Google Sheets (Single or Multiple Conditions)
Spreadsheet Class
2 5 formulas that combine columns in Google Sheets (Horizontal and Vertical)
5 formulas that combine columns in Google Sheets (Horizontal and Vertical)
Spreadsheet Class
3 All the ways to extract text and numbers in Google Sheets
All the ways to extract text and numbers in Google Sheets
Spreadsheet Class
4 How to filter based on a list in Google Sheets
How to filter based on a list in Google Sheets
Spreadsheet Class
5 How to fix the "FILTER has mismatched range sizes" error in Google Sheets
How to fix the "FILTER has mismatched range sizes" error in Google Sheets
Spreadsheet Class
6 How to color cells, and alternate row colors in Google Sheets
How to color cells, and alternate row colors in Google Sheets
Spreadsheet Class
7 How to automatically create a series of values in Google Sheets
How to automatically create a series of values in Google Sheets
Spreadsheet Class
8 Google Sheets Beginner Tutorial
Google Sheets Beginner Tutorial
Spreadsheet Class
9 How to make a Dashboard in Google Sheets (Full Tutorial)
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
Using the SORT and FILTER function in the same formula in Google Sheets
Spreadsheet Class
11 ARRAYFORMULA function: Apply a formula to an entire column in Google Sheets
ARRAYFORMULA function: Apply a formula to an entire column in Google Sheets
Spreadsheet Class
12 Automatically resize columns in Google Sheets with Fit to Data
Automatically resize columns in Google Sheets with Fit to Data
Spreadsheet Class
13 How to import or convert a CSV file into Google Sheets
How to import or convert a CSV file into Google Sheets
Spreadsheet Class
14 How to export / download a CSV from Google Sheets
How to export / download a CSV from Google Sheets
Spreadsheet Class
15 How to change text case in Google Sheets  with UPPER LOWER and PROPER
How to change text case in Google Sheets with UPPER LOWER and PROPER
Spreadsheet Class
16 How to use the Calendar Template in Google Sheets
How to use the Calendar Template in Google Sheets
Spreadsheet Class
17 How to rotate text in Google Sheets
How to rotate text in Google Sheets
Spreadsheet Class
18 How to create charts in Google Sheets (And how to customize them too)
How to create charts in Google Sheets (And how to customize them too)
Spreadsheet Class
19 How to copy formulas, and lock cell references in Google Sheets (Relative & absolute references)
How to copy formulas, and lock cell references in Google Sheets (Relative & absolute references)
Spreadsheet Class
20 How to copy and paste values only in Google Sheets
How to copy and paste values only in Google Sheets
Spreadsheet Class
21 How to fix the "Circular Dependency Detected" error in Google Sheets
How to fix the "Circular Dependency Detected" error in Google Sheets
Spreadsheet Class
22 Evenly space columns in Google Sheets (Make columns the same size quickly)
Evenly space columns in Google Sheets (Make columns the same size quickly)
Spreadsheet Class
23 Doing math in Google Sheets: Add, Sum, Subtract, Multiply, Divide, Square, Square Root
Doing math in Google Sheets: Add, Sum, Subtract, Multiply, Divide, Square, Square Root
Spreadsheet Class
24 How to filter horizontally in Google Sheets (Filter columns)
How to filter horizontally in Google Sheets (Filter columns)
Spreadsheet Class
25 UNIQUE function: Removing duplicates with 2 methods in Google Sheets
UNIQUE function: Removing duplicates with 2 methods in Google Sheets
Spreadsheet Class
26 Report Builder template for Google Sheets (Automatically organize / calculate your data)
Report Builder template for Google Sheets (Automatically organize / calculate your data)
Spreadsheet Class
27 Build a Google Sheets dashboard with Google Forms data (Automated)
Build a Google Sheets dashboard with Google Forms data (Automated)
Spreadsheet Class
28 Guitar tabs template for Google Sheets (& PDF) | Create your songs in a Google spreadsheet
Guitar tabs template for Google Sheets (& PDF) | Create your songs in a Google spreadsheet
Spreadsheet Class
29 Interactive Google Sheets dashboard with drop down menus tutorial
Interactive Google Sheets dashboard with drop down menus tutorial
Spreadsheet Class
30 Student attendance dashboard tutorial in Google Sheets: Simple + advanced
Student attendance dashboard tutorial in Google Sheets: Simple + advanced
Spreadsheet Class
31 SORT function in Google Sheets (Sort data vertically or horizontally)
SORT function in Google Sheets (Sort data vertically or horizontally)
Spreadsheet Class
32 How to use the SORT function in Google Sheets (Quick Version)
How to use the SORT function in Google Sheets (Quick Version)
Spreadsheet Class
33 How to copy chart formatting and duplicate charts in Google Sheets
How to copy chart formatting and duplicate charts in Google Sheets
Spreadsheet Class
34 How to copy a tab to a new file / sheet in Google Sheets
How to copy a tab to a new file / sheet in Google Sheets
Spreadsheet Class
35 How to duplicate tabs in Google Sheets
How to duplicate tabs in Google Sheets
Spreadsheet Class
36 How to hide and unhide tabs in Google Sheets
How to hide and unhide tabs in Google Sheets
Spreadsheet Class
37 How to make a copy of a file in Google Sheets
How to make a copy of a file in Google Sheets
Spreadsheet Class
38 How to change tab color in Google Sheets
How to change tab color in Google Sheets
Spreadsheet Class
39 How to insert, delete, rename, and reorder tabs in Google Sheets
How to insert, delete, rename, and reorder tabs in Google Sheets
Spreadsheet Class
40 How to move a chart to another sheet in Google Sheets
How to move a chart to another sheet in Google Sheets
Spreadsheet Class
41 How to wrap text, unwrap text, and clip text in Google Sheets
How to wrap text, unwrap text, and clip text in Google Sheets
Spreadsheet Class
42 Switch columns and rows with the TRANSPOSE function in Google Sheets
Switch columns and rows with the TRANSPOSE function in Google Sheets
Spreadsheet Class
43 Project management timeline template for Google Sheets (Gantt Chart)
Project management timeline template for Google Sheets (Gantt Chart)
Spreadsheet Class
44 Build a dashboard in 3 simple steps (Google Sheets)
Build a dashboard in 3 simple steps (Google Sheets)
Spreadsheet Class
45 Pull data from websites in Google Sheets with IMPORTXML function | Web scraping (Stock prices)
Pull data from websites in Google Sheets with IMPORTXML function | Web scraping (Stock prices)
Spreadsheet Class
46 (Quick version) Pulling data from websites with IMPORTXML function | Google Sheets web scraping
(Quick version) Pulling data from websites with IMPORTXML function | Google Sheets web scraping
Spreadsheet Class
47 Pull cryptocurrency prices in Google Sheets (2 methods) | GOOGLEFINANCE and IMPORTXML crypto prices
Pull cryptocurrency prices in Google Sheets (2 methods) | GOOGLEFINANCE and IMPORTXML crypto prices
Spreadsheet Class
48 Fast & simple dashboard tutorial for Google Sheets (Build in under 15 minutes)
Fast & simple dashboard tutorial for Google Sheets (Build in under 15 minutes)
Spreadsheet Class
49 How to create drop-down lists in Google Sheets (Data validation)
How to create drop-down lists in Google Sheets (Data validation)
Spreadsheet Class
50 The ultimate cheat sheet for Google Sheets (Formulas, charts, shortcuts, and more)
The ultimate cheat sheet for Google Sheets (Formulas, charts, shortcuts, and more)
Spreadsheet Class
51 3 ways to pull crypto prices into Google Sheets | GOOGLEFINANCE, IMPORTXML, IMPORTDATA
3 ways to pull crypto prices into Google Sheets | GOOGLEFINANCE, IMPORTXML, IMPORTDATA
Spreadsheet Class
52 Stock & crypto tracker templates for Google Sheets (Portfolio, Analysis, Watchlist, Screener)
Stock & crypto tracker templates for Google Sheets (Portfolio, Analysis, Watchlist, Screener)
Spreadsheet Class
53 How to indent in Google Sheets (5 Methods)
How to indent in Google Sheets (5 Methods)
Spreadsheet Class
54 Pull stock prices & stock data with the GOOGLEFINANCE function in Google Sheets (& Crypto too)
Pull stock prices & stock data with the GOOGLEFINANCE function in Google Sheets (& Crypto too)
Spreadsheet Class
55 How to create and customize charts in Google Sheets (Quick version)
How to create and customize charts in Google Sheets (Quick version)
Spreadsheet Class
56 Apply a formula to an entire column in Google Sheets with the ARRAYFORMULA function | Quick Version
Apply a formula to an entire column in Google Sheets with the ARRAYFORMULA function | Quick Version
Spreadsheet Class
57 How to insert a new line in a cell (or formula) in Google Sheets
How to insert a new line in a cell (or formula) in Google Sheets
Spreadsheet Class
58 How to freeze rows & columns (& How to unfreeze) in Google Sheets
How to freeze rows & columns (& How to unfreeze) in Google Sheets
Spreadsheet Class
59 How to add and sum in Google Sheets (Addition and SUM function)
How to add and sum in Google Sheets (Addition and SUM function)
Spreadsheet Class
60 How to average in Google Sheets (Using the AVERAGE function)
How to average in Google Sheets (Using the AVERAGE function)
Spreadsheet Class

This video teaches how to use the SORT and FILTER functions in Google Sheets, both individually and combined, to manipulate and analyze data. It provides a comprehensive guide to using these functions for data analysis and dashboard building.

Key Takeaways
  1. Open Google Sheets and create a new spreadsheet
  2. Enter sample data into the spreadsheet
  3. Use the FILTER function to filter data based on conditions
  4. Use the SORT function to sort data in ascending or descending order
  5. Combine the SORT and FILTER functions into one formula
  6. Apply the formula to the sample data and analyze the results
💡 The SORT and FILTER functions can be combined into one formula to efficiently manipulate and analyze data in Google Sheets.

Related AI Lessons

The Nervous System of the Telco: Unlocking the Real-Time Power of the Network Element Interfaces…
Unlock the power of network element interfaces to enable real-time insights in telco operations
Medium · Data Science
Enhanced RFM Analysis for Customer Segmentation using K-Prototypes
Learn how to enhance RFM analysis for customer segmentation using K-Prototypes, a clustering algorithm that handles categorical and numerical data, to improve marketing strategies and customer targeting.
Medium · Machine Learning
One Survey Asked Rich People Ten Times More Often Than Poor People.
Learn how a biased survey sample can impact data analysis and decision-making, and why it's crucial to ensure representative sampling in data science
Medium · Data Science
Data Cleaning Fundamentals: Building a Reproducible Data Cleaning Pipeline
Learn to build a reproducible data cleaning pipeline to transform raw data into analysis-ready datasets
Medium · Data Science
Up next
Spreadsheet Guy Meets the CFO: "Define How Much"
Digital Transformation with Eric Kimberling
Watch →