Excel Basics: Charts, Functions, and Data Management
Excel Basics Overview
Excel is a powerful tool designed to transform raw data into meaningful insights through features such as charts, functions, and cell referencing.
The foundational skills covered include mastering basic data analysis tasks, creating and customizing charts, utilizing functions, and understanding the distinction between absolute and relative cell referencing.
Practice exercises utilize the file
<Intro.xlsx>and its corresponding solution file<Intro solutions.xlsx>.The dataset in the worksheet
testconsists of names for students in column, divided into three groups (,, and) in column. Test scores are located in column.Key performance thresholds are defined in cells
(passing score, e.g., out of ) and(tolerable score).
Charts and Data Visualization
Excel allows for various graph types depending on the nature of the data. For introductory purposes, the focus is on general functionality and common chart types like box plots.
Creating a Box Plot (Box & Whisker)
Navigate to the
Chartworksheet.Select the non-empty cells in column
.Go to the Insert Tab and select the Box & Whisker option.
The chart appears in the Excel grid and can be moved or resized as needed.
Customizing Chart Information
Removing the Title: Select the chart, go to the Chart Design contextual tab, click Add Chart Element, then Chart Title, and select none.
Adding Axis Titles: Select Add Chart Element > Axis Titles > Primary Vertical. Click the resulting text box and enter a descriptive title, such as
test scores.Removing Non-informative Labels: Individual labels, such as the
1on the -axis of a single-series box plot, can be removed by selecting the label and pressing the delete button.
Chart-Data Interaction
Live Updates: If a value in the highlighted data range is adjusted (e.g., increasing the largest score by ), the chart reflects the change instantly (e.g., the box plot extends over a larger range on the -axis).
Select Data Command: The Select Data command under the Chart Design tab displays the specific data range used for the graph.
Chart Formatting Areas
Right-clicking different parts of a chart opens specific formatting panes. These areas include:
Chart Title: Accessible via Format Chart Title.
Axis Title: Accessible via Format Axis Title.
Axis: Right-clicking the numbers on an axis brings up Format Axis.
Chart Area: The area outside the actual graph figure; brings up Format Chart Area.
Plot Area: The rectangle where the graph is displayed but not on the data figure itself; brings up Format Plot Area.
Data Series: Clicking directly on the data figure brings up Format Data Series.
Axis Bounds Adjustment
To set a custom scale for the -axis:
Right-click the vertical scale and select Format Axis.
In the Axis Options pane, locate the Bounds section.
Enter a value (e.g., ) in the Minimum field and press Enter.
Excel Functions and Syntax
Entry Methods
Direct Typing: Typing the formula starting with an equas sign (
) directly into a cell.fx Button: Clicking the button next to the formula bar permits building commands through a dialog screen.
Formula Tab: Selecting the Formula Tab in the ribbon to browse function categories.
The SUM Function
Manual Calculation Example: To find the average for group (students at rows ) in cell
:.Range Summation: To sum all test scores and divide by in cell
:.Syntax:
.Arguments in square brackets (e.g.,
) are optional.The first argument must be a number, cell, or range.
If the list separator on your system is a comma, replace the semicolons in these examples with commas.
Multi-range SUM: You can sum non-contiguous ranges, such as
in cell.
The COUNT and COUNTA Functions
: Counts the number of cells in a specified range that contain numerical values. Example:identifies the sample size of scores.: Counts the number of cells in a range that are not empty, regardless of whether they contain numbers or text. Example:counts all name entries.
Functions with Criteria
The COUNTIF and COUNTIFS Functions
: Counts cells meeting a specific condition.Numbers: Quotation marks are not needed. Example for counting zeroes:
.Text: Must be enclosed in double quotes. Example for Group A:
.Logical Expressions: Must be enclosed in double quotes. Example for "Not Group A":
. Example for passing scores ():.Combined with Cell References: Use the ampersand (
) to join the logical operator and the cell. Example using cellfor tolerance:.
: Counts cells that meet multiple criteria simultaneously. Example:counts group students who passed.
The SUMIF Function
: Adds cells based on a condition.Example:
calculates the average score for group by dividing the sum of their scores by the count of students in group .
The IF Function
Checks whether a condition is true or false and returns defined values for each outcome.
Syntax:
.Example: In cell
,.Unlike
, the condition is a single argument, and quotes are only used for text values, not for the logical expression itself.
Cell Referencing: Relative vs. Absolute
Relative Cell Referencing
By default, Excel uses relative referencing. If you copy a formula from cell
to, the referenceautomatically adjusts toto reflect the move one row down.If a formula is copied across columns (e.g., from
to), both the row and the column references will adjust accordingly.
Absolute Cell Referencing
To prevent a reference from changing when copied, dollar signs (
\) are used to "fix" the cell.Fixing the Row:
fixes the row number. If copied horizontally, the column changes; if copied vertically, the row stays fixed.Fixing the Column:
fixes the column letter. If copied vertically, the row changes; if copied horizontally, the column stays fixed.Fixing Both (Absolute):
fixes both the row and column. The reference will always point to cellregardless of where the formula is pasted.Practice Example: To check scores against a fixed tolerance level in
while dragging a formula down:.
Data Editing and Management
Sorting Data via Ribbon
Select the data range (e.g.,
).Navigate to Home > Sort & Filter.
Sort A to Z: Sorts alphabetically based on the first column selected.
Custom Sort: Allows sorting by specific variables and multiple levels.
Headers: Ensure "My list has headers" is checked if the selection includes titles.
Multiple Levels: Use the
sign to add sorting layers (e.g., first bygroup, then byname).Order: Options include "A to Z", "Z to A", or "Largest to Smallest".
Filtering Data via Ribbon
Select headers (e.g.,
).Go to Home > Sort & Filter > Filter.
Dropdown arrows appear; click them to select specific criteria (e.g., only checking Group
).Equations: Filters can specify conditions like "Equals", "Greater Than", etc.
Dynamic Array Functions
Unlike Ribbon sorting/filtering, these functions update automatically when source data changes. (Requires Excel 365 or 2019).
SORT:
Syntax:
.Example:
sorts by the second column in descending order.
SORTBY:
Syntax:
.Example:
sorts by group (ascending), then by name (ascending).
FILTER:
Syntax:
.Example:
extracts only the rows where the group is "B".
Managing Dynamic Results
When copying results of dynamic arrays, relative cell referencing may cause errors.
Paste Special: To copy the results without the underlying dynamic formula, use Ctrl+C, then right-click and select Paste Special > Values. This removes the dynamic link.
Inserting and Deleting Cells vs. Clearing Content
Clearing: Selecting a cell and pressing Delete or using Clear All removes the content (and potentially formatting) but the cell remains in place.
Deleting: Using the Delete command in the Home tab removes the cell itself.
Shift cells left/up: When a cell is deleted, surrounding cells must shift to fill the void.
Deleting Rows/Columns: Selecting a row number or column letter and using the Delete command removes the entire structure.
Inserting: The Insert command adds new rows or columns, or shifts existing cells (e.g., Shift cells right) to create space.
Summary of Essential Functions
Function | Description |
|---|---|
Counts cells in a range containing numbers. | |
Counts cells in a range that are not empty. | |
Counts cells that meet a single specified condition. | |
Counts cells meeting multiple sets of conditions. | |
Returns one value if a condition is TRUE and another if FALSE. | |
Adds all numbers in a range of cells. | |
Adds cells specified by a given condition. | |
Adds cells specified by a set of multiple conditions. | |
Dynamic function to arrange an array in a specified order. | |
Dynamic function to sort a range based on values in a corresponding range. | |
Dynamic function to extract a subset of data based on criteria. |