Lecture 4
Lecture 4
Part 1
Lecture 4 1
Data Sorting
Ranges can be sorted using the Sort Ascending and Sort Descending commands
2
Data Sorting
The commands are found in the Ribbon under the Sort & Filter menu
3
Sort (numbers)
Select the range, i.e., A2:A21
4
Sort (Text)
Select the range
5
Sort (Text): Note
A:23, Text, is not included as it is the header for the column
6
Sort (Text): Note
A:23, Text, is not included as it is the header for the column
7
A Non-Working Example
Sorting one column in a range
8
A Non-Working Example
The attempt to sort results in a warning
It is not recommended to sort the names alone because it will break the relationship between
the columns
9
A Non-Working Example
10
Sorting More Than One Column
Select the whole range when sorting ranges with more than one column
Note: When sorting multiple columns, it will always sort by the first column (leftmost)
11
Sorting More Than One Column
12
Data Filtering
13
Data Filtering
Filters can be applied to sort and hide data
Note: Filter is similar to formatting a table, but it can be applied and deactivated
14
Data Filtering
The menu is accessed in the default Ribbon view or in the Data section in the navigation bar
15
Applying Filter
Filters are applied by selecting a range and clicking the Filter command
The filter keeps the relationship intact between the columns while sorting and filtering
16
Applying Filter
17
Filter options
"Items" are the different categories in that column
Uncheck to hide
18
Advanced Filtering
"Items" are the different categories in that column
Uncheck to hide
19
Filter Function
Purpose
Return value
Syntax
20
Filter Function
Arguments
21
Outline (group-Ungroup) data
22
Outline data
If you have a list of data you want to group and summarize, you can create an outline of up to
eight levels
It displays detailed data for the preceding outer level, represented by a lower number in the
outline symbols
23
Outline data
Use an outline to quickly display
group
24
How to group?
Make sure that each column (or row) of the data that you want to outline has a label in the
first row (or column), contains similar facts in each column (or row), and that the range has no
On the Data tab, in the Outline group, click Group > Group Rows or Group Columns
Continue selecting and grouping inner rows or columns until you have created all of the levels
25
Ungroup rows or columns
To ungroup, select the rows or columns, and then on the Data tab, in
the Outline group, click Ungroup and select Ungroup Rows or Ungroup Columns
26
Subtotals
Subtotals are calculated with a summary function, such as Sum or Average, by using the
SUBTOTAL function
You can display more than one type of summary function for each column
27
Grand totals
Grand totals are derived from detailed data, not from the values in the subtotals
For example, if you use the Average summary function, the grand total row displays an average
of all of the detail rows in the list, not an average of the values in the subtotal rows
28
Note
If the workbook is set to automatically calculate formulas, the Subtotal command recalculates
subtotal and grand total values automatically as you edit the detailed data
The Subtotal command also outlines the list so that you can display and hide the detail rows
29
Insert Subtotals
Make sure that each column in a range of data for which you want to calculate subtotals has a
label in the first row, contains similar facts in each column, and that the range does not include
30
Insert Subtotals
To sort the column that contains the data you want to group by, select that column, and then
on the Data tab, in the Sort & Filter group, click Sort A to Z or Sort Z to A
31
Insert Subtotals
Make sure that each column in a range of data for which you want to calculate subtotals has a
label in the first row, contains similar facts in each column, and that the range does not include
32
Conditional Formatting
33
Conditional Formatting
Conditional formatting is used to change the appearance of
34
Conditional Formatting
Note: The web browser version of Excel only offers a
35
Colour Scale Formatting
Highlight with Colour Scales
Dark green is used for the highest values and dark red for
36
Highlight Cell Rules
Highlight Cell Rules are the predefined conditional
values etc
37
Appearance Options
Light Red Fill with Dark Red Text
Red Text
Red Border
38
Cell Rule Types
Between
Equal To
39
Text to Columns
40
Text to Columns
Select the cell or column that contains the text you want to split
41
Text to Columns
Select the Delimiters for your data.; For example, Commas and Space
You can see a preview of your data in the Data preview window
Select Next
Select the Destination in your worksheet which is where you want the
Select Finish
42
What-if Analysis
43
What-if Analysis
This feature can help you experiment and answer questions with your data
44
Goal Seek
Whenever you create a formula or function in Excel, you put various parts
It lets you start with the desired result, and it calculates the input value that will
45
Scenarios
Scenarios let you substitute values for multiple cells (up to 32) at the same time
You can create as many scenarios as you want and then compare them without
46
Data tables
Data tables allow you to take one or two variables in a formula and replace them
This option is especially powerful because it shows multiple results at the same
47