Summary
This comprehensive guide covers Microsoft Excel for data analysis, starting with fundamental concepts like cells, rows, and columns. It demonstrates data manipulation through filtering, sorting, and conditional formatting to identify duplicates and improve data quality. The tutorial introduces Power Query for automated data cleaning and transformation from various sources, including web scraping. It then delves into essential Excel formulas and functions (like COUNTIFS, SUMIFS, AVERAGEIFS, FILTER, UNIQUE, MINIFS, MAXIFS, XLOOKUP) to answer complex business questions and build dynamic reports. Finally, it explains the creation of interactive Pivot Tables and dashboards for visualizing call center data, offering a complete workflow for data analysis in Excel.
Key Insights
Excel shortcuts can be discovered and utilized by pressing the ALT key.
To find shortcuts for buttons without a visible shortcut, press the ALT key to reveal ribbon shortcuts, then follow the sequence (e.g., ALT+H for Home, then S for Sort & Filter, then C for Clear).
Right-clicking a cell value offers a quick filter option.
Right-clicking on a specific value in a column and selecting 'Filter' > 'Selected Sales Value' is a quick way to filter data based on that exact value.
Power Query is essential for saving time and accessing data efficiently.
Power Query is a data cleaning and transformation tool available in Excel and Power BI, streamlining data preparation processes.
COUNTIFS counts entries based on multiple criteria.
The COUNTIFS function counts rows that meet specific criteria across multiple ranges (e.g., counting employees per department).
SUMIFS sums values based on multiple criteria.
The SUMIFS function sums values in a specified range that meet criteria in other ranges (e.g., total salary per department).
AVERAGEIFS calculates the average of values based on multiple criteria.
The AVERAGEIFS function calculates the average of cells that meet multiple criteria (e.g., average salary per department).
FILTER function extracts subsets of data based on dynamic criteria.
The FILTER function (Excel 365) dynamically returns rows that meet specified criteria from a dataset, with optional 'if not found' handling.
XLOOKUP offers a modern, versatile alternative to VLOOKUP and INDEX/MATCH.
XLOOKUP (Excel 365) can look up values in any column and return values from any other column, handling exact matches, approximate matches, and missing values directly.
Sections
Excel Basics and Data Exploration
Excel is a primary tool for data analysis, tracking, updating, and collaboration.
Excel is by far the most important and versatile software for data analysis, capable of tracking information, updating projects, and collaborating with others.
The Excel interface features a ribbon, a grid of cells, and a status bar.
The Excel screen is divided into three main areas: the ribbon at the top, the grid area with row and column numbers, and the status bar at the bottom.
Cells are the intersection of rows and columns where data is entered.
A cell is the intersection of a row and a column, where users can input values, text, images, or other data.
Excel sheets can be added or removed using the plus button.
The grid is divided into sheets, and you can add multiple sheets using the plus button at the bottom. Initially, one or three sheets might be present.
Resources are available for each concept covered in the lesson.
A set of resource files for each concept (introduction, formulas, pivots, portfolio project, Power Query) is available from a link in the video description.
Filtering data allows for specific subset selection based on criteria.
To filter data, select the data, go to the Home ribbon, Sort & Filter, and apply a filter. You can then select specific items or criteria to subset the data, including numeric and date filters.
Sorting data arranges it in ascending or descending order.
Data can be sorted by selecting a column and choosing smallest to largest or largest to smallest. For multi-level sorting, specific options within sort are required.
Excel shortcuts can be discovered and utilized by pressing the ALT key.
To find shortcuts for buttons without a visible shortcut, press the ALT key to reveal ribbon shortcuts, then follow the sequence (e.g., ALT+H for Home, then S for Sort & Filter, then C for Clear).
Conditional formatting highlights duplicate values for data quality checks.
Use conditional formatting (Home ribbon) to 'Highlight Cells Rules' > 'Duplicate Values' to easily spot repeated entries, which can indicate data quality issues.
Filtering by color on highlighted cells can isolate duplicate or specific entries.
After highlighting duplicates, you can filter the data by color to view only those highlighted cells.
Right-clicking a cell value offers a quick filter option.
Right-clicking on a specific value in a column and selecting 'Filter' > 'Selected Sales Value' is a quick way to filter data based on that exact value.
Number filters can identify entries within a specific range or above/below a threshold.
For number columns like salary, use Number Filters (e.g., 'Greater Than', 'Top 10') to extract relevant subsets of data.
AutoSum quickly calculates sums for selected columns.
To sum a column, select the entire column and press AutoSum (ALT + equals sign) to insert a SUM formula at the bottom.
The F2 key allows editing of formulas in cells.
Pressing F2 on a cell with a formula allows you to edit that formula.
Power Query for Data Cleaning and Transformation
Power Query is essential for saving time and accessing data efficiently.
Power Query is a data cleaning and transformation tool available in Excel and Power BI, streamlining data preparation processes.
Power Query can connect to and import data from web pages.
Using the 'Get Data' > 'From Web' option, Power Query can connect to a URL, navigate to tables on the page, and import them.
The Power Query Editor allows for detailed data transformation steps.
The editor includes ribbons for various transformations (Home, Transform, Add Column, View) and displays applied steps, data preview, and formulas.
Power Query records all transformation steps, enabling repeatable data cleaning.
Every action taken in the Power Query Editor is recorded as a 'step' on the right pane. These steps can be reviewed, edited, or reapplied to new data.
Headers can be set by promoting the first row using a dedicated button.
In the Home ribbon, the 'Use First Row as Headers' button promotes the first row of the data to become the column headers.
Text transformation includes replacing values and trimming spaces.
Values can be replaced (e.g., removing asterisks from country names) by right-clicking a column and selecting 'Replace Values'. 'Trim' removes leading/trailing spaces.
The 'Fill Down' transformation populates null values from the cell above.
In the Transform ribbon, 'Fill' > 'Down' is used to fill null cells with the value from the row directly above them, useful for shared ranks.
Data types can be changed from text to numbers or dates within Power Query.
Column data types can be changed by right-clicking the column header or using the 'Transform' ribbon options (e.g., 'Change Type' to 'Whole Number' or 'Date').
Creating new columns can involve arithmetic operations like division for percentages.
New columns can be added using the 'Add Column' ribbon. For example, dividing 'Gold Medals' by 'Total Medals' and formatting as a percentage.
Filtering rows removes unwanted data, such as summary or total rows.
Rows can be filtered by unchecking specific values in a column's filter dropdown or using more advanced filter options to remove unwanted entries like a 'Total' row.
Power Query can connect to local files like Excel workbooks.
Data can be imported from local files via 'Get Data' > 'From File' > 'From Excel Workbook' (or other file types like Text/CSV).
Column quality indicators help identify data issues.
At the top of each column in Power Query, indicators (green, yellow, red bars) show column quality like valid, error, or empty values.
Customizable replacement rules handle missing or erroneous data.
Missing values (nulls) can be replaced with specific text (e.g., 'Missing', 'Need to Check') using 'Replace Values'. Question marks can be replaced with correct department names.
Filtering rows can remove entries based on conditions like zero or null salary.
Rows with zero or null salary can be removed by unchecking these values in the salary column's filter dropdown.
Splitting columns by delimiter allows for separating combined data points.
The 'Split Column' feature (Transform ribbon) can divide a column by a delimiter (like space) into multiple columns (e.g., splitting names into first and last names).
Conditional columns group data into categories based on specific criteria.
The 'Conditional Column' feature (Add Column ribbon) allows creating new columns based on IF-THEN-ELSE logic (e.g., categorizing salaries into buckets like 'Under 50K', '50K-100K').
Calculating tenure involves subtracting start dates from the current date.
After ensuring 'Start Date' is a date type, the 'Add Column' > 'Date' > 'Age' option calculates tenure in days, which can then be converted to years.
Custom columns allow writing simple M language code for transformations.
The 'Custom Column' feature (Add Column ribbon) enables users to write simple M language code for more complex transformations, like creating an 'Employee Type' based on FTE.
Power Query connections are dynamic and can be refreshed.
Data loaded via Power Query maintains a connection to the source. Right-clicking the resulting table and selecting 'Refresh' updates the data with any changes.
Data transformations in Power Query can be applied to local files or web data.
The process of cleaning and transforming data using Power Query applies uniformly whether the source is a local file or a web page.
Essential Excel Formulas and Functions
Excel tables (Ctrl+T) simplify formula references and data management.
Converting data to an Excel Table (Ctrl+T) provides structured referencing (e.g., 'Staff[Department]') and automatic formatting, making formulas more readable.
COUNTIFS counts entries based on multiple criteria.
The COUNTIFS function counts rows that meet specific criteria across multiple ranges (e.g., counting employees per department).
SUMIFS sums values based on multiple criteria.
The SUMIFS function sums values in a specified range that meet criteria in other ranges (e.g., total salary per department).
AVERAGEIFS calculates the average of values based on multiple criteria.
The AVERAGEIFS function calculates the average of cells that meet multiple criteria (e.g., average salary per department).
Excel 365's spill functionality (unique, sort, filter) automatically populates results.
Newer Excel versions (365) support spilling, where a single formula can return multiple results into adjacent cells, eliminating the need to drag formulas down.
FILTER function extracts subsets of data based on dynamic criteria.
The FILTER function (Excel 365) dynamically returns rows that meet specified criteria from a dataset, with optional 'if not found' handling.
Nesting functions, like FILTER with CHOOSECOLS, enables complex data extraction.
Nesting allows the output of one function (e.g., FILTER) to be used as input for another (e.g., CHOOSECOLS) to select specific columns from the filtered data.
FILTER can handle multiple conditions combined with mathematical operators.
Multiple criteria for the FILTER function can be combined using multiplication (*) for AND logic and addition (+) for OR logic within bracketed conditions.
MIN, MAX, LARGE functions find lowest, highest, and Nth highest values.
MIN finds the smallest value, MAX finds the largest, and LARGE finds the Nth largest value in a dataset. These are available in most Excel versions.
SORT and TAKE functions (Excel 365) dynamically sort and select data.
SORT arranges data, and TAKE selects a specified number of rows or columns from the sorted data, useful for top/bottom N lists.
MINIFS, MAXIFS, COUNTIFS, SUMIFS, AVERAGEIFS apply criteria to calculations.
These functions (available from Excel 2016/2019 onwards) extend their counterpart functions by allowing one or more criteria to be applied.
XLOOKUP offers a modern, versatile alternative to VLOOKUP and INDEX/MATCH.
XLOOKUP (Excel 365) can look up values in any column and return values from any other column, handling exact matches, approximate matches, and missing values directly.
XLOOKUP's 'if not found' argument simplifies error handling.
XLOOKUP has a built-in 'if not found' parameter, eliminating the need for separate IFNA or IFERROR functions for missing lookups.
XLOOKUP can return multiple columns or entire rows as a spilled array.
By specifying multiple return columns or the entire data range as the return array, XLOOKUP can spill multiple results.
Combining XLOOKUP with TRANSPOSE creates dynamic record lookups.
XLOOKUP can retrieve an entire row of data, and TRANSPOSE then converts this row into a column for a clean vertical display.
TEXTJOIN concatenates text strings with specified delimiters.
The TEXTJOIN function combines multiple text strings into one, with the ability to specify a delimiter and ignore empty cells.
Date functions like MONTH extract specific parts of a date.
Functions like MONTH, YEAR, and DAY can extract specific components from a date value, enabling date-based filtering or calculations.
UNIQUE function returns a list of distinct values from a range.
The UNIQUE function (Excel 365) extracts a list of unique values from a column or range, useful for creating lists of departments or categories.
Hash (#) operator with spilled arrays refers to the entire spilled range.
When a formula spills results into multiple cells, referring to the top cell with a hash symbol (e.g., B6#) references the entire spilled range.
Calculating percentage difference from average involves subtraction and division.
Percentage difference from the overall average is calculated by subtracting the overall average from the department average and dividing by the overall average.
Conditional formatting data bars visualize magnitude within cells.
Data bars in conditional formatting provide a visual representation of a cell's value relative to others in the selected range.
MEDIAN function calculates the middle value in a set of numbers.
The MEDIAN function finds the middle value of a dataset, providing a measure of central tendency that is less affected by outliers than the average.
Calculating gender ratio involves counting specific genders and dividing by total count.
The ratio of female employees can be calculated by dividing the count of female employees (using COUNTIFS) by the total employee count (using COUNT A on the spilled range).
Pivot Tables for Interactive Analysis
Pivot Tables provide concise, interactive reports for data analysis.
Pivot Tables allow for efficient summarization and analysis of large datasets, offering dynamic exploration of data through various dimensions.
Converting data to an Excel Table (Ctrl+T) is a prerequisite for Pivot Tables.
Before creating a Pivot Table, it is best practice to format the data as an Excel Table (Ctrl+T) and name it for easier referencing.
Pivot Tables can be created from an Excel Table using 'Summarize with PivotTable'.
From the Table Design ribbon or Insert ribbon, select 'Summarize with PivotTable' to create a Pivot Table from an existing Excel Table.
Pivot Table fields can be dragged into Rows, Columns, Values, and Filters areas.
The PivotTable Fields pane allows users to drag and drop fields into different areas to define the structure of the report (e.g., Customer ID in Rows, Count of Call ID in Values).
Counts, sums, averages, and other aggregations can be applied in the Values area.
The 'Values' area of the PivotTable Fields pane is where calculations (count, sum, average, min, max) are performed on the selected fields.
Pivot Tables can be used to analyze call center data for various insights.
Using call center data, Pivot Tables can analyze call counts by customer, call duration by representative, purchase amounts by date, and satisfaction ratings.
Ask a Question
*Uses 1 Wisdom coin from your coin balance











