Filtering and Sorting
Filtering and Sorting
In this lab, first you will learn how to use the Filter and Sort tools in Excel to filter and sort our data to enable us to
control what information is displayed, and how it is displayed in our worksheets. Next, you will learn how to use some
of the most common functions a Data Analyst might use; namely IF, IFS, COUNTIF, and SUMIF. Finally, you will learn
how to use the VLOOKUP and HLOOKUP functions in Excel to reference data contained in both vertical and
horizontal lookup tables.
Although you can use the Excel Desktop software if you have access to this version, it is recommended that you use
Excel for the web for the hands-on labs as the lab instructions specifically refer to this version, and there are some small
differences in the interface and available features.
The second dataset used in this lab comes from the following source: https://www.kaggle.com/sudalairajkumar/indian-
startup-funding under a CC0: Public Domain license.
Acknowledgement and thanks also goes to https://trak.in who were generous enough to share the data publicly for free.
We are using modified subsets of these datasets for the lab, so to follow the lab instructions successfully please use the
datasets provided with the lab, rather than the datasets from their original sources.
Objectives
After completing this lab, you will be able to:
about:blank 1/6
29/07/23, 00:34 about:blank
1. Download the file Customer_demographics_and_sales_Lab6.xlsx. Upload and open it using Excel for the web.
2. Select any cell in the data, and click the Data tab, then click Filter.
5. Click the filter drop-down in the column AG, and click Clear Filter From “Purchase_Status”.
about:blank 2/6
29/07/23, 00:34 about:blank
1. Click the filter drop-down in column AD (Order_Value), then Number Filters>Top 10….
2. Change the value from 10 to 50 and Click OK.
3. Click the filter drop-down in the column AD, and click Clear Filter From “Order_Value”.
Task D: Use of COUNTIF to count the number of cells that meet a specified
criterion
1. Select cell BX2 and type count VISA card.
2. Select cell BY2 and type =COUNTIF(N2:N195,”VISA”) and press Enter.
Task E: Use of SUMIF function to sum the values within a specified range
that meet a specified criterion
1. Select cell BX3 and type sum Large order.
2. Select cell BY3 and type =SUMIF(AE2:AE195,”Large”, AD2:AD195) and press Enter.
Formula: =SUMIF(range, criteria, [sum range]).
Task F: Use of SUMIFS function to sum the values within a specified range
that meet multiple specified criteria
1. Select cell BX4 and type sum Large order with Baby Gen.
2. Select cell BY4 and type =SUMIFS(AD2:AD195, AE2:AE195,”Large”,
AL2:AL195,”*BABY_BOOMERS*“) and press Enter.
Formula: =SUMIFS ([sum range], range1, criteria1, range2, criteria2, …).
about:blank 4/6
29/07/23, 00:34 about:blank
Congratulations! You have completed Lab 6, and you are ready for the next topic.
Author(s)
Sandip Saha Joy
Other Contributor(s)
Steve Ryan
Changelog
about:blank 5/6
29/07/23, 00:34 about:blank
about:blank 6/6