Data Analysis
Data Analysis
Data Analysis
800-639-3535
[Link]
training@[Link]
Lesson Notes
Excel 2019
Data Analysis
5/6/2020
Developed by:
Brian Ireson
Suzanne Hixon
Thelma Tippie
Edited by:
Jeffery DeRamus
Cheri Howard
Published by:
RoundTown Publishing
5131 Post Road, Suite 102
Dublin, Ohio 43017
for
Copyright © 2020 by RoundTown Publishing. No reproduction or transmittal of any part of this publication,
in any form or by any means, mechanical or electronic, including photocopying, recording, storage in an
information retrieval system, or otherwise, is permitted without the prior consent of RoundTown Publishing.
Disclaimer:
Round Town Publishing produced this manual with great care to make it of good quality and accurate, and
therefore, provides no warranties for this publication whatsoever, including, but not limited to, the implied
warranties of merchantability or fitness for specific uses. Changes may be made to this document without
notice.
Trademark Notices:
The Computer Workshop, Inc. and The Computer Workshop logo are registered trademarks of The
Computer Workshop, Inc. [Microsoft], [Windows], [PowerPoint], [Excel], [Word], and [Access] are registered
trademarks of Microsoft Corporation. [Photoshop] and [InDesign] are a registered trademark of Adobe. All
other product names and services identified throughout this book are trademarks or registered trademarks
of their respective companies. All NASA information was obtained from public resources. Using any of
these trade names is for editorial purposes only and in no way is intended to convey endorsement or other
affiliation with this manual.
Preface
Using this Welcome to the Advanced Excel 2013 course. This manual and
the data files are designed to be used for learning, review and
Manual reference after the class. The data files can be downloaded any
time from The Computer Workshop website:
http:\\[Link]
There is no login or password required to access these files. You
will also find handouts and supplementary materials on the
website in the Download section.
Locating Blanks While removing blank rows can be easily managed, you may
need to see where the blanks are before removing the entire row.
This can be done for an individual column or the entire data set
by using the Conditional Formatting tool.
Counting Blanks
To help in getting an idea of how many blanks exist within a data
set, you can use the Count, CountA, or CountBlank formulas.
Count: This returns the number of cell containing
numeric data from a range.
=COUNT(range1,[range2])
CountA: this function returns the number of cell
containing data from a range.
=COUNTA(rangee1,[range2])
CountBlank: This returns the number of empty cells
from a range.
=COUNTBLANK(range)
Page 8 Excel 2019: Data Analysis, Rel. 1.0, 5/6/2020
Action 1:1 - Locating Blank Cells
5. Holding both the Ctrl and Shift keys Using the Ctrl And Shift keys allows for
down, tap the Right Arrow key once, quick and efficient directional selection.
then the Down Arrow key three times.
7. In the Style Group, click the The New Formatting Rule dialog opens.
[Conditional Formatting] button drop-
down and choose New Rule.. from the
menu.
8. Select the Format only cells that contain The options below in the Edit the Rule
in the list of rule types at the top of the Description section change, offering
dialog. control associated with the selection of
rule type.
9. In the first field, change the Cell Value to The controls change again to reflect your
Blanks. choice.
10. Click the [Format] button. The Format Cells dialog opens.
11. Activate the Fill Tab, choose a color, and This will be the color used to highlight
click the [OK] button. blank cells.
12. Click the [OK] button to apply the All blank cells are now highlighted.
formatting.
14. Right-click the colored cell, hover on the All the records are sorted with all blanks
Sort option and choose Put Selected Cell in the column A on top.
Color On Top from the menu.
15. Re-select all the data in the data set. Cells A8:N78.
16. On the Home Tab, click the [Sort & The Sort dialog opens. Using the right-
Filter] button drop-down, then select click method would also give access to
Custom Sort from the menu. the custom sort. This will allow you to set
blanks across all the columns top the top
of the data set.
17. The first level sort should already be set. If not then set the first sort level to Sort By
to Column A, the Sort On to Cell Color,
the Order to color, and leave the locate set
to On Top
18. Click the [Add Level] button. This will allow for a secondary search and
sort. Each new level will be run after the
previous level is completed.
19. Continue adjusting the parameters of All records with blank cells are shown at
each sort level. Add levels related to the top of the data set in descending order
columns A, D, E, H, and J. When done, of importance.
click the [OK] button.
20. Right-click the row header for row 8 and Since this record is invalid without an ID,
choose Delete from the menu. the record needed to be removed.
21. On the Home Tab, click the [Conditional All highlights are removed.
Formatting] button and choose to Clear
Rules from Entire Sheet.
4. On the Home Tab click the [Find & Use the [F5] key to open the Go To dialog
Select] button drop-down in the Editing and click the [Special] button to open the
Group and choose Go To Special. Go To Special dialog.
5. Click the Blanks radio button and click Only blank cells are selected.
[OK].
6. On the Home Tab, click the [Delete] All the blank rows have been removed.
button drop-down in the Cells Group Note: if there are blank cells within the
and choose Delete Sheet Rows. data set doing this could remove records
from the data set. This is another reason
why having blank cells in the data can
cause problems.
7. Click into any cell containing data. To deselect the current selection.
2. Select the InvalidRecords sheet then Holding the [Ctrl] as sheet tab is dragged
click and drag it beside the original to a new position will duplicated the entire
sheet while holding the [Ctrl] key. spreadsheet. You should now see a second
sheet tab labeled as InvalidRecords(2).
3. Repeat step 2 to create a third copy of There should now be three copies of the
the sheet. same sheet in the workbook.
5. Select the first InvalidRecords sheet tab. The original sheet is active.
7. On the Data Tab, click the [Remove The Remove Duplicate dialog opens and all
Duplicates] button in the Data Tools connected cells are selected.
Group.
8. Ensure that the My data has headers If the data set does not have headers, then
checkbox is checked in the Remove the My data has headers checkbox should
Duplicates dialog. not be checked. Which will include the
first row within the search for duplicates.
9. Click the [Unselect All] button. All the check marks in the checkboxes
beside each column are removed.
10. Click the checkbox for Emp# and click This will be the only column being
[OK] the button. searched for duplicate entries. A message
window opens, stating; "7 duplicate values
found and removed; 64 unique values
remain."
Removing When using the Remove Duplicate function, the first record of
many found will be the only one kept, all others are removed.
Duplicates, While this will work in most cases there will be times when
continued you need to see the duplicates in order to determine which is
the correct one to be retained. The Conditional Formatting tool
allows for this to be done in a quick and efficient manner.
Duplicates,
continued
In the Format Cells dialog, click the Fill Tab and choose
any color you want.
You can choose to apply any formatting changes to
the Numbers, Text, Borders, and/or Fill.
Click the [OK] button to close the Format Cells dialog.
Click the [OK] button to close the New Formatting Rule
dialog and apply the your formatting to the duplicate
values.
Once the duplicate values are formatted you can sort the data
set based on the cells color and examine the duplicate records to
determine which are the ones to be deleted. Select the unwanted
rows and delete them by right-clicking the selection and
choosing Delete from the menu.
Duplicates,
continued
Do not use Choose what ever formatting options you want and
the [Arrow] click the [OK] button.
keys to move
forward or backwards Click the [OK] button to apply the formatting to all
in the formula. It cells that match the other cell range.
will change the cells
being referenced in Now you are able to sort the data in the column based on cell
the formula. Use the color, select either the unwanted duplicates or unique value rows
mouse to reposition and delete them. Once your unwanted data has been removed
the cursor in the clear the Conditional Formatting.
formula if necessary.
3. Hold the [Ctrl] and [Shift] keys then tap The rest of the column is selected.
the [Down Arrow] key
4. On the Home Tab, click the [Conditional The Conditional Formatting options are
Formatting] button drop-down in the displayed.
Style Group.
5. Choose New Rule... from the menu. The New Formatting Rule dialog opens.
6. Choose the Format only unique or The options related to the Format only
duplicate values option in the Select a unique or duplicate values are displayed.
Rule Type: field.
7. Choose Duplicate from the Format All You can choose to apply formatting to
field drop-down. either unique or duplicate values form the
drop-down.
9. Click the Fill Tab in the Format Cells The fill cells options are displayed.
dialog.
10. Choose any color from the list and click This will be the color applied when a
the [OK] button. duplicate is found. Choose a color that will
stand out from the rest of the formatted
data set.
11. Click the [OK] button in the New The dialog is closed and the formatting
Formatting Rule dialog. applied to all duplicates.
Combining Cell Data can come broken down into the smallest usable parts
but that may not what is required in the current file, it would
Values be better to re-combine the data into a single cell. Excel offers
several methods to assist in this type of undertaking; a simple
add formula, the new CONCAT function, or TEXTJOIN function.
=text1&text2&.....
Ampersand will join the elements
You can add strings of your own by wrapping the string in
quotation marks.
CONCAT Function
A new function which replaces the Concatenate function.
Although the Concatenate function will still work, ensuring older
files using that function continue to work as excepted.
Syntax
Function First String
=CONCAT(text1,[text2],.....)
Second String
If the string is held within a cell, the formula will use the cell
addresses. To add the subsequent strings, use a comma to
separate one string from the next.
Values,
continued =CONCAT("text1"," ", "text2")
Second String
TEXTJOIN Function
Similar in function to the CONCAT formula, this can add a
delimiter directly into the returned value. Instead of having
to add a quoted space or comma to separate each string the
TEXTJOIN functions first argument allows you to define a
delimiter once..
Syntax
=TEXTJOIN(delimiter,ignore_empty,text1,.....)
Delimiter: as a text entry it should be held inside of
quotation marks. for a space you would enter- " "
for a comma with a space you would enter - ", "
Ignore_Empty: this will be either True or False. True
will ignore empty cells in the returned value while
False would add empty cells as blank spaces in the
formula results.
Text1,Text2,..: these are the cell addresses that are to be
joined by the formula.
=PROPER(CONCAT(text1,text2))
3. Select cell E3. You will combine the first name in this cell.
5. Use the autofill to combine the other Double clicking the autofill handle runs
names. the formula down
7. Enter the following formula: The " " are used to add the blank space
=CONCAT(J3," ",K3," ",I3) delimiters between the the cell values.
[Ctrl+Enter] to apply the formula.
10. Enter the following formula: The first argument of this formula defines
=TEXTJOIN(" ",True,B22,C22,A22) what the delimiter will be, TRUE will
[Ctrl+Enter] to apply the formula. ignore any blank cells in the returned
value, then the list of cell addresses are
what will be joined.
13. Enter the following formula: Nesting the CONCAT function inside a
=PROPER(CONCAT (J3," ",K3," ",I3)) PROPER function will return the data
[Ctrl+Enter] to apply the formula. formatted in the desired manner.
Splitting Cell It may become necessary to split a cell into smaller data
components spanning adjacent columns. Excel offers a variety
Values of tools and methods to accomplish this task. Just as there
are function formula used to combine cells, there are function
used to extract data from cells; LEFT, MID, RIGHT, the [Text to
Columns] button, and Flash Fill.
Text to Columns
This tool works best when the data has a consistent structure
with a common character to use as the delimiter.
Examine the Column to be broken into multiple
columns in order to determine how many columns
will be needed.
Select that number of columns to the right of the
Note column being separated, right-click on the selected
If columns are
not added before columns and choose Insert from the menu.
completing the Text Select the column to be separated.
to Columns, existing
data will be replaced Activate the Data Tab.
to accommodate the
additional columns. Click the [Text to Columns] button.
Function Formulas
Right: This function returns the right-most character or characters
from a string. The number of characters specified will be what is
returned.
Syntax
=RIGHT(text,[num_chars])
Text: The cell address which contains the text string to
be extracted.
Num_chars: if this is not included in the formula, then
only the last character is extracted from the string.
Entering a value will return that number of characters
from the string, blanks are considered characters.
Syntax
=LEFT(text,[num_chars])
Text: The cell address which contains the text string to
be extracted.
Num_chars: if the is not included in the formula, then
only the first character is extracted from the string.
Entering a value will return that number of characters
from the string, blanks are considered characters.
Splitting Cell Mid: This function will return a specific number of characters
from a text string. You are able to set the starting position, in
Values, number of character from the left. as well as the number of
continued character being extracted.
Syntax
=MID(text,start_num,num_chars)
Text: The cell address which contains the text
string to be extracted.
Start_num: The number of chacters over from the
left where the extraction is to begin. (Blank spaces
are chacters)
Num_chars: Sets to number of characters to be
extracted from the text string.
Syntax
=LEN(cell)
Cell: contains the string whose characters are to be
counted. Spaces are included in the results as thet are
hidden characters.
Syntax
=LEFT(cell,LEN(cell)-value)
LEFT(cell,: where the left characters will be extracted
from.
LEN(cell): counts the number of characters in the Left
functions cell.
-value): sets the starting point of left character
extraction from the cell. This completes the LEFT
function.
4. Right-click the selected columns and To avoid replacing data, it is a good idea
choose Insert from the menu. to set up space for the new columns to be
added before splitting up the data.
6. On the Data Tab, in the Data Tools The Text to columns dialog opens.
Group, click the [Text to Columns]
button.
7. Check to see the Delimited radio button Step 1 is completed and the dialog
is active and click the [Next] button. advances to step 2.
8. In the Delimiters section, check only the As delimiter checkboxes are modified,
Other checkbox and in the field enter a - the preview of how the data is separated
.(Hyphen) changes. Since a hyphen separates each
Check the Treat consecutive delimiters component part of the data, that is the
as one checkbox, then click the [Next] delimiter needed to break the data into the
button. desired sections. Step 2 is completed and
the dialog advances to step 3.
9. Select the third column in the preview This ensures the data type is correctly set
and in the Column data format section, and formatted.
choose the Date: radio button.
10. Set the cursor into the Destination: field By not using cell A1 as the destination, the
and set the cell address to B1. Then click original data is not replaced and lost.
the [Finish] button.
11. Add the headers for columns C:D. Location and Date
9. Select cell L2 and enter the following This formula extracts the last four
formula: characters from the string in cell J2.
=RIGHT(J2,4)
[Ctrl+Enter] when done.
- OR -
2. Select cell I1 and type: This will be the header for the new column
Full Name.
3. Select cell I2 and type: This is how the fisrt and last names will be
Jones, Alan. combined.
4. Select cell I3 and begin typing: As you begin entering the second entry,
Adams Flash Fill recognizes the pattern and
when the Flash Fill list is displayed, tap prompts to apply it.
the [Enter] key.
5. Auto adjust the width of column I. Set the cursor between columns I and J,
double-click when the cursor is a double-
headed arrow.
7. Select cell J2 and type: This will both extract and combine data
[Link]@[Link]. from existing data with addition you have
entered.
8. Select cell J3 and use the [Ctrl+E] Flash fill is run and the column of email
shortcut. addresses has been added.
Tables Managing and analyzing related data is made easier when the
range is converted into an Excel table. Tables are comprised of
adjacent columns of data, each with unique labels or headings,
and each row represents an individual entry within the table.
Another way to consider the structure of a table is that the
columns are fields and rows are records. When creating tables, it
is recommended to not include any blanks rows or columns.
Table Elements
Header Row: Tables can have a header row. When the header
row is enabled, filtering is also turned on by default. Filtering
offers the ability to both sort and filter data in the data.
Total Row: Tables can have a total added, the row comes with
a drop-down which offers a list of common built-in formulas.
These are similar to using the AutoSum functions found on the
Home and Formula Tabs.
When using the Get Data tools, Excel will automatically bring the
data in as a Table by default. Although, you are able to choose to
bring the data in as a PivotTable, or PivotChart with Table.
3. Select the SalesData spreadsheet and Notice there are no blank columns or rows
click on any cell containing data. included in this dataset.
4. On the Home Tab in the Styles Group, A gallery of styles will be displayed.
click the [Format As Table] button.
5. Choose the first style from the gallery. The Format As Table dialog is displayed.
6. In the Format As Table dialog, check to Since all the data is contiguous, Excel
see should recognize all the connected data as
=$A$1:$H$193 is displayed in the the source for the table.
Where is the data for your table field.
7. Also, make sure the My table has Excel automatically checks this option
headers checkbox is selected. since the first row of the dataset is not
necessarily in-line with the data beneath. If
you remove the checkmark, your headers
will be replaced with Column 1, Column
2, etc.
9. Observe the Table Tools Design Tab This is a contextual tab that is only
which has been added to the Ribbon. available when any cell in the table is
actively selected.
10. Click any empty cell. Notice that the Table Tools Design Tab is
gone.
11. Click any cell in the table. Notice that the Table Tools Design Tab is
back although, it may not be the active tab.
3. On the Insert Tab, click the [Table] The Create Table dialog is displayed.
button in the Table Group.
4. Make sure the Where is the data for This defines the contiguous range of cells
your table field is displaying the range that make up the table.
$A$1:$H$193.
5. Make sure the My data has headers Excel will automatically add Autofilter
checkbox is checked. drop-downs to each header in the table.
9. Make the SalesData(3) spreadsheet This is the third sheet in the workbook.
active.
10. Select all the cells containing data. Click into any cell containing data and use
the keyboard shortcut [Ctrl+A] to select all
connected data.
11. Click the Quick Analysis smart tag. It will be located at the bottom right corner
of the selected range. You can also use the
shortcut of [Ctrl+Q] to bring the smart tag
into view without having to scroll to it.
12. Click the Table category at the top of the It is the fourth option.
Quick Analysis options.
Autofilters An Autofilter is an Excel feature that lets you filter out records
from a Table. When you select an Autofilter option, only records
that meet the specified criteria will be shown. When you create a
table from raw data or import data into Excel as a table, filtering
is automatically turned on. Each column header displays a drop-
down that allows you to filter the data quickly.
If the Table does not have Filters turned on, go to the Table Tools
Note Design Tab and in the Table Styles Options Group click the
Table now have
Filter Buttons on by checkbox for Filters.
default.
Basic Filtering
To filter a Table based on a specific criteria do the following:
Click the Autofilter arrow next to the column heading
you want to filter.
Filtering options will correspond to the type of data
held in the field (column).
Data can be Text, Numbers, or Dates.
You will see the corresponding field values from your
Table in ascending order. Notice that each unique field
entry is present in the list. If you have a lot of records
in your Table, the Autofilter list will scroll to show all
of the fields.
Remove the checkmarks by the list items you want
filtered out, and leave checkmarks by list items you
want shown.
Unchecking Select All will allow for speedier
filtering since you will not have to uncheck as many
boxes.
3. Click the Autofilter drop-down for the The Autofilter options are displayed.
Sales Rep column.
4. From the drop-down menu uncheck the Since you are picking only one specific
Select All checkbox and check the Clotts item, unchecking all the unwanted items
checkbox and click the [OK] button. would be very time consuming. By
unchecking the Select All option you will
only need to find the individual item to
filter for. Only records where Clotts was
the sales rep are displayed in the table. All
the other data is hidden, not deleted.
6. Uncheck the Select All checkbox and Now only sales of product 3227 made by
check the 3227. checkbox and click [OK]. Clotts are displayed.
7. On the Data Tab, in the Sort & Filter All filter are cleared and all the data is re-
Group, click the [Clear] button. displayed in the table.
9. Select the SalesData(4) sheet. The last sheet that doesn't have the data in
a table.
10. Select any cell with data. It is not necessary to select the entire data
set before applying filtering.
11. On the Data Tab, in the Sort & Filter The Autofilter drop-downs are placed in
Group, click the [Filter] button. the header row.
13. Uncheck the Select All checkbox and Only sales by Adams are displayed, just
check the Adams checkbox. as before. You can also applying filter to
multiple columns as when in the Table.
14. On the Data Tab in the Sort & Filter All the data is re-displayed. You can also
Group, click the [Clear] button. click the Autofilter button on the State
column and choose Clear Filter From
"Sales Rep'.
Autofilters, If you display the Autofilter menu for a column you will see
continued either Text Filters, Date Filters or Number Filters depending
on the type of data held in the column. If you click on any of
these Filter options, you will see a submenu of further filtering
selections.
Note
A Number filter
allows you to apply
a filter to numerical
data. A Text filter allows
you to apply a filter to
textual data referred to in
the records. A Date filter
allows you to apply a
filter to date or time data
referred to in the records.
Autofilters, When the data is filtered, the column header will show a funnel
continued icon next to the drop-down list button. You are able to filter by
one or as many columns as needed to find specific data within
the dataset.
Using Wildcards
There are times when you want to search for a set of variables.
Using wildcards in the search allows for boarder searches. There
are two character used as wildcards;
* represents any number of any characters.
? represents any single character.
If you where to enter a search of PRO*: the results would be any
words that simply begin with PRO, no matter how long the word
is.
3. Select Number Filters and choose Between The Custom Autofilter dialog is displayed.
from the menu.
4. In the Custom Autofilter dialog box, This establishes the parameters of the data
Under the is greater than or equal to you wish to view based on information in
field, type: 20 the Unit Price column.
and under the is less than or equal to
field, type: 35
5. Click [OK] and examine the filtered Only information matching the defined
data. parameters ares displayed. All the other
data is hidden, not deleted.
7. Choose Clear Filter from the menu. This removes filtering from this column. If
several columns were being filtered, you
could use the [Clear] button on the Data
Tab in the Sort & Filter Group to clear all
the filters.
Advanced Filter If you can’t get the results you want from a Custom Filter, you
can construct an Advanced Filters to create a query that can
extract specified information from the dataset. This is a two step
process; the first step is to create a set of cells to define which
columns in the dataset are being search and then the define
parameters of the search within the specified columns.
The second step in the process uses the Advanced Filters to
extract the desired information.
To use an
Advanced Filter,
your data does not
Using an Advanced Filter
necessarily need to be Establish a Criteria Range
in an Excel Table, but Type or copy the column headings that correspond to
it should adhere to the the Fields in the dataset on which you want to Filter.
basic dataset principles,
excluding blank rows Paste or type them into a cell outside the Table range.
and columns. This heading must be exactly the same as the corresponding
heading in the Data Table that you want to base the Filter
on; so it may be easiest to copy and paste.
Criteria
Range
To display the full Table again, select the Data Tab and
in the Sort and Filter Group, click the [Clear] button.
Advanced Filter, You may want to extract your Filtered Records to a new place
in the worksheet or even to a different worksheet altogether.
continued
Copying your Filtered Records to a new location leaves the view
of your original dataset unchanged.
2. Select cell D1. This will be the first filed of the Advanced
Filter.
3. Copy the cell and paste it into cell K1. Copy / pasting will ensure there are no
discrepancies with the headers in the data
set.
5. Copy the cell and paste it into cell L1. Our goal is to construct an Advanced Filter
to retrieve the records where a specific
Sales Rep sold more than 25 units per sale.
6. Select cell K2, and type: The Sales Rep the filter will search for.
Clotts.
7. Select cell L2, and type: This is the second criteria that must be met
>25 in the filter. When the criteria are in the
same row it means AND.
8. Select the Data Tab, and in the Sort The Advanced Filter dialog opens.
& Filter Group, click the [Advanced]
button.
10. Click [OK]. Only records where Clotts sold more than
25 units are displayed.
11. On the Data Tab in the Sort & Filter All the records in the data set are re-
Group, click the [Clear] button. displayed.
Data Forms You can use a Data Form to add, find, change, and delete rows
in a range or table. To add the Form, you need to use the Form
Tool. The Form Tool is not included on the Ribbon or in the
QAT by default.
3. Select the Quick Access Toolbar The Quick Access Toolbar modifications
category. are available.
4. Change the Choose commands from: The list of available commands is changed,
field to All Commands from the drop- every command in Excel is displayed in
down list. the left panel. The list is laid out in an
alphabetical manner.
5. Find the Form... in the list of All Scroll through the list to find the
Commands. command.
6. Click the [Add] button. The command is added in the right panel
that shows any commands already on the
QAT. Double-clicking the command in the
left panel will also add the command to
the right panel.
7. Click the [OK] button. The Excel Option dialog is closed and the
command is now on the QAT.
2. Click the Form command on the QAT. The Form dialog opens, notice that the
dialog is named the same as the active
sheet. It is displaying the first record in
the table.
3. Click the [Find Next] button. The second record is displayed in the Form
dialog.
4. Click the [Criteria] button. All the fields are cleared, allowing you to
enter search criteria.
5. In the Sales Rep field, type in; In this case you are looking for any records
<Clotts> where Clotts was the Sales Rep.
and click the [Find Next] button.
6. Click the [Find Next] button. The next record where Clotts was the Sales
Rep is displayed.
7. Click the [New] button All the fields are cleared, allowing you to
enter a new record into the table.
9. Click the [New] button. The record is added to the table and you
are ready to begin entering another new
record.
Lesson Overview
Note
When accessing
data from web sites,
that data must be in
tables in order for Excel
to access it. Common types of external data sources have buttons in full view
within the Get & Transform Group. There are many others
available by using the [Get Data] drop-down button. This menu
of options offers a list of data types with fly-out menus.
Once a choice of data type is made the next step in the process is
to locate the data source in the Import Data dialog.
After the data source is located and opened, the Navigator dialog
opens, which is the next step in the process.
Navigator The Navigator dialog shows users a list of available tables or data
sets on the left and a preview of the data on the right. Choosing
a source table, data set, or spreadsheet will change the preview
to that of the selected source. If more than a single table from the
source is required, checking the Select multiple items checkbox
allows all selected tables to be imported.
Data Table Search Refresh
Data Table List Data Preview
Clicking the [Load] button will place the selected data sets into
the workbook, beginning in the actively selected cell. Choosing
Load To... from the drop-down of the [Load] button opens an
Import Data dialog. This dialog allows you to determine how and
where the data will be placed into the workbook.
Clicking the [Transform Data] button will open the data set in
Power Query.
Power Query The Power Query window is very similar to the Excel interface
in that, both have a Quick Access Toolbar and tabbed ribbon
Editor navigation components.
QAT Ribbon Data Set
Power Query Once all the data modifications are completed; unnecessary row
and columns removed, data has been split into more manageable
Editor, components, and columns of data being combined the data is
continued loaded into an Excel workbook by using the [Close & Load]
button on the Home Tab. This button offers the same options and
functionality as in the Navigator dialog.
Choosing the Close & Load To.. option from the button's drop-
down will display the Import Data dialog .
Data from Using the Get & Transform tool allows you to connect to data
stored in other workbooks. The data can be a simple data set or
Another formatted as a table, either can be brought into and managed in
Workbook new or existing workbooks.
Data from Loading the data directly into Excel is done by clicking
the [Load] button. This will place the data in cell A1 of
Another a new worksheet as a table.
Workbook,
continued
3. Locate the Get & Transform Group. This is the first group on the Data Tab.
4. Click the [Get Data] button drop- The [Get Data] button offers many options
down and choose From File, then From for connecting to external data sources.
Workbook. When the choice is made the Import data
dialog opens.
5. In the Import Data dialog, navigate to the The Navigator dialog opens.
data files folder and choose the Invoices.
xlsx file.
6. Locate the list of available worksheets These are all named tables and worksheets
and tables in the source. in the file. Another example of will it is
good practice to name the worksheets and
tables in your files.
7. Check and uncheck the Select multiple When the Checkbox is checked,
items checkbox . checkboxes are added in front of each
options Checking these will include
them in the importation of data. When
unchecked you are able to select only one.
8. Select the Invoices from the list of The data in that table is displayed in the
available sources displayed on the left of preview on the right of the window.
the window.
10. Rename Sheet2 as Invoices. Double-click the sheet tab to rename it.
Data from a Text Many of us will receive data in the form of CSV or tab delimited
text files. The process for getting and importing those types of
File data will be done in the same manner as importing data from
other Excel files. Using the tools in the Get & Transform Data
Group, you will search for and connect to the source data by
clicking the [From Text/CSV] button. When importing a text
file, the Navigator dialog just shows the preview along with a set
of fields above the preview.
Choosing Custom will add a new field below the Delimiter field
where you are able to type in the delimiter of your choosing.
Choosing Fixed Width from the Delimiter field will add a new
number field below the delimiter field. Allowing you to set
the number of characters to divide the content by in order to
generate columns .
3. Click the [From Text/CSV] button locate The Import Data dialog opens.
in the Get & Transform Group
5. Locate the Delimiter field. As a textually based source file, you are
able to set the delimiter if needed.
6. Using the Delimiter field drop-down The preview now shows all the data in a
change the delimiter from Comma to Tab. single column. This is because the source
is not using tabs to separate the data.
7. Change the delimiter back to Comma. The data is broken into multiple columns
again.
8. Click the [Load] button drop-down and A second Import Data dialog opens.
choose Load To...
9. Leave the Select how you want to view This will apply a table format to the data.
this data in your workbook choice as
Table.
10. In the Where do you want to put the This allows you to define where the data is
Data? section, placed.
choose the Existing worksheet radio This is where it will be placed.
button. The data is placed and formatted as a
Click into the field below, table. The table does not use the column
highlight any existing text and delete it, headers as headers, this will be fixed later.
select cell A1 on Sheet1,
click the [OK] button.
Data from an Gathering data from an Access Database follows similar lines as
within importing Excel or text content. Sometimes we want to
Access Database bring in a table from a database but not know what other tables
are related; the Navigator dialog allows you to Select multiple
items. When the Select multiple items checkbox is checked and
a table is selected, the [Select Related Tables] button becomes
active. Clicking this button will select all related tables in the
database at once; alleviating the need to know and understand
the entire database structure.
To connect to the access database use the [Get Data] button drop-
down and choose From Microsoft Access Database from the list of
database types.
Data from an The Navigator dialog opens, in the left of the dialog is the list of
tables in the database. You will notice that the [Select Related
Access Database, Tables] button is greyed out and inactive. In order to make it
continued active; you must first check the Select multiple items checkbox,
then select a table from the list. Then the [Select Related Tables]
button is active. Clicking the button will allow the Navigator
to follow all the primary to foreign key threads to include all
necessary data in the import..
3. Click the [Get Data] button drop-down The Import Data dialog opens.
and choose From Database, then From
Microsoft Access Database.
5. Select CompanyNames from the list of The table is displayed in the preview area.
tables.
6. Check the Select multiple items The preview is removed and checkboxes
checkbox. are added to each table in the list.
8. Click the [Select related Tables] button. Since the Countries and Orders tables have
a relation with CompanyNames table they
are added to the selection.
10. Click the [Select related Tables] button Any tables related to the Orders table are
again. now also selected.
11. Uncheck the Select multiple items All selections are cleared and the
checkbox. checkboxes are removed.
12. Select the Orders table and click the The data is loaded onto a new worksheet
[Load] button. as a formatted table.
Transforming Raw data is not often configured in the best and most useful
manner; requiring users to spend time removing unnecessary
Data data and splitting data into smaller more manageable pieces.
This quickly becomes very time consuming when updated data is
required every week or two. With the Transform tools available
in Power Query you can take care of most of those changes
before bringing the data into Excel. Once the connection has been
established along with a process to transform the raw data into
useful data developed, the query can be saved and rerun as new
data is comes in.
Transforming Once the columns have been selected, got to the Home
Tab and locate the Manage Columns Group.
Data,
continued
3. Click the [From Text/CSV] button The Import Data dialog opens.
located in the Get & Transform Group
5. Click the [Transform] button. The data is opened in the Power Query
Editor window.
6. Examine the Power Query Editor interface. Locate the QAT, click through the tabs in
the ribbon, note the left Queries pane is
collapsed, and the Query Settings pane is
expanded on the right.
7. Click the arrow at the top of the Queries The Queries pane is on the left of the data
pane to expand the pane. Use the arrow view. When expanded, it showa and
again to collapse the pane. gives access to all queries in the current
workbook.
8. On the Home Tab, locate and click the The Remove Top Rows dialog opens.
[Remove Rows] button. Choose Remove
Top Rows from the menu.
9. Enter 4 in the Number of rows field and The top four rows are removed from the
click the [OK] button. data.
10. On the Home Tab, locate and click the Any blank rows are removed from the
[Remove Rows] button. Choose Remove data.
Blank Rows from the menu.
11. On the Home Tab, locate and click the Any duplicate rows are removed from the
[Remove Rows] button. Choose Remove data.
Duplicate Rows from the menu.
13. Select the Name header cell, right-click A [Rename] button can also be found on
on it and choose Rename from the menu. the Transform Tab in the Any Column
Group.
15. Rename the Name_1 header as L_Name. Use either the button or right-click method
to rename the header.
16. Scroll to right to locate and select Select the first column then hold the Ctrl
the Age, Vision, Dental, and Health key as you select the others.
columns.
17. On the Home Tab, locate and click The columns are removed from the data.
the [Remove Columns] button in the If you wanted to keep only these columns,
Manage Columns Group. use the [Remove Columns] button drop-
down and choose Remove Other Columns.
18. Leave the file as is. Do not exit the Power Query Editor.
Spliting Data One aspect of the Rules of Normalization is that data should
be broken down into the smallest logical components. As an
example consider an address; to be normalized it should have
a column(field) for street, city, state, and zip to truly be used
effectively.
Data may not be normalized when you first receive it, so it may
be necessary to re-organize the data in a more useful manner.
This can also be done within the Power Query environment.
Splitting Data
Select the column which needs broken into smaller
component parts.
Oh the Home Tab locate the [Split Column] button in
the Transform Group.
Clicking the button opens the menu of option for
splitting the column.
2. On the Home Tab, locate and click the A drop-down menu is displayed allowing
[Split Column] button in the Transform you to choose how the column will be
Group. split.
3. Choose the By Digit to Non-Digit option The leading number of the addresses are
from the drop-down list. separated from the text and there are now
two columns to represent the address data.
4. Select the Address.1 heading and rename Use either of the renaming methods from
it Address_Number. the previous exercise.
7. On the Home Tab, locate and click the The list of options are displayed.
[Split Column] button in the Transform
Group.
8. Choose the By Delimiter option from the The Split Column by Delimiter dialog opens.
drop-down list.
9. From the Select or enter delimiter field Often when choosing By Delimiter, the
drop-down choose Custom (if necessary), data is analyzed and the correct delimiter
in the new Delimiter field type in a / , is put in place.
in the Split at section, choose Each The data is now broken into three separate
occurrence of the delimiter radio button (if columns.
necessary),
and click the [OK] button.
10. Select the Date.1 heading and rename it Try double-clicking the header in order to
DOB_Month. rename it.
13. Leave the file as is. Do not exit the Power Query Editor.
Adding a Then select the last name column from the list of
Available columns and click the [Insert] button.
Column,
continued Click the [OK] button to add the column.
The new column will be added to the far right
of the column, click the header and drag it into
position.
3. Locate and click the [Custom Column] This should be the second button on the
button in the General Group. tab. The Custom Column dialog opens.
4. In the New column name field enter the This will be the column name.
name: Full Name.
5. Set the cursor into the Custom column This will add the values in the F_Name
formula field beside the equal sign, column, to a blank space, and the values in
choose the F_Name column in the the L_Name column together to combine
Available columns field and click the these fields.
[Insert] button, Double-clicking the column name in the
type in &" "& , Available columns list will also insert the
choose the L_Name column in the column into the formula.
Available columns field and click the
[Insert] button, then click the [OK] New columns are added to the far right of
button. the columns.
6. Click the Column header and drag it into The column is now in the correct position.
position after the L_Name column.
7. Click the [Custom Column] button The Custom Column dialog opens.
again.
8. In the New column name field enter the This will be the column name.
name: YearlySalary.
9. Set the cursor into the Custom column This will multiply the values in the
formula field, beside the equal sign, WEEKLY PAY column by 52. If there is
choose the WEEKLY PAY column in the an error in your formula, you will see a
Available columns field and click the warning and the [OK] button is inactive.
[Insert] button,
type in *52 , then click the [OK] button.
10. Click the Column header and drag it into The column is now the correction position.
position after the Weekly Pay column.
Data Types As data is brought into the Power Query Editor it is analyzed and
data type is applied to each column. Data will fall into one of
three data types: text, dates, or numbers. Within each of these
data types are formatting variations: date, date and time, whole
number, currency, percentages. When the format is applied
within Power Query, the data is simply being defined not visually
formatted. Formatting will be done in Excel after the data is
imported.
Applied Steps As changes are made to the raw data, each step in the process is
recorded and displayed in the Applied Steps pane. When a data
modification does not return an expected or desired result, that
step can easily be removed from within the Applied Steps pane.
2. On the Home Tab, locate the [Data Type] Currently the data type is set to Any.
button in the Transform Group.
3. Click the button drop-down and choose The icon to the left of the column header is
Currency from the menu. now a dollar sign.
5. Click the [Data Type] button drop-down The column now displays an error for the
and choose Whole Number from the entire column. This is because the SSN
menu. uses dashes as separators,which numbers
can't have.
7. Select the Added Custom 1 step. Any step listed after are not in play in the
data. This allows you to easily find the
last step which was correct.
8. Select the last step and click the X to the That step is removed from the list and
left of the step. undone from the data. Unfortunately it
also removed the data type change from
the YearlySalary column.
9. Re-select the YearlySalary column and Apply the Currency data type.
apply the correct data type.
10. Leave the file as is. Do not exit the Power Query Editor.
Loading a Query Once the data has been transformed and it is ready to be brought
into Excel, you can choose how the data will be placed into the
workbook.
2. Clicking the drop-down of this button These function the exact same way
will allow you to choose Close & Load or the Load and Load To... work in the
Close & Load To.... Navigator dialog.
3. Choose Close & Load if using the drop- The data is loaded as a Table to a new
down or simply click the top half of the worksheet.
button.
Editing a Query When the data has been imported into Excel, you will work with
it as any other data. As the workbook now has data connected
to an outside source the Queries & Connections pane is displayed
to the right of the interface. Should this pane be in the way, it
can be closed. To bring the Queries & Connections pane back into
view, click the [Queries & Connections] button in the Queries &
Connections Group on the Data Tab.
The Queries & Connections pane lists any and all external sources
the current workbook is using. Hovering over an existing
connection will bring up a preview of the sources data along
with connections details and options.
Clicking the [Edit] at the bottom of the preview pane will take
the data back into the Power Query Editor. All applied steps are
still listed in the Applied Steps pane and you are able to continued
transforming the data as needed. When finished editing, click
the [Close & Load] button as before.
Saving and Once the query has been created, you may want or need to save
it to use again in other files.
Running A
Query The Query Tools Query Tab is a contextual tab, if you are
working inside the imported data, the tab is available, if not in
the data set the tab is not displayed on the ribbon.
Running a Query
On the Data Tab, click the [Existing Connections]
button in the Get & Transform Data Group.
The Existing Connections dialog opens, allowing you to
search for the saved queries.
If your query is not in the list, click the [Browse for
More...] button.
2. The Queries & Connections pane should When data has been imported into a
be open, if not go to the Data Tab and workbook, this pane should be active.
click the [Queries & Connections] This pane shows all imported data
button. connections.
3. Hover over the EmployeeList connection. A preview panel opens, showing some
details about the connection, and
connection tools.
6. Click the [Refresh] button in the Load The data is refreshed. If you hover over
Group. the EmpoyeeList connection again the Last
Refreshed detail will show when you ran
the refresh command. The Data Tab also
has a [Refresh] button available.
7. On the Query Tab, locate and click the This is the last button on the tab. Clicking
[Export Connection File] button. it opens a File Save dialog.
8. Give it a meaningful name and click the Do not change the location of where it is
[Save] button. being saved. This makes finding it later
easier.
2. On the Data Tab, click the [Existing The Existing Connections dialog opens.
Connections] button in the Get &
Transform Group.
3. Select the query you just saved and click The Import Data dialog opens.
the [Open] button.
4. Leave the settings as they are in the The data is imported as a table to a new
Import Data dialog and click the [OK] worksheet.
button.
Lesson 3: Database
Functions
Lesson Overview
Database When there are large amounts of data within your datasets the
D-Functions can make searching for specific information faster.
Functions While simple functions are used in many instances there will
be times where calculations need to be made based on a set of
criteria. The D-Functions allow you to query the dataset based
on a defined set of specified criteria to control what is being
calculated by modifying the formula's criteria. Using database
functions is similar to advanced filtering; you must establish a
When using criteria range before the function itself.
the D-Function
formulas you
There are many D-Functions in Excel designed to help you extract
can change the criteria
and the formula subsets of data from within large datasets. The D-Functions
results will update include:
immediately.
DAVERAGE: Calculates the average of values in a field
of a list or database, that satisfy specified conditions
DCOUNT: Returns the number of cells containing
numbers in a field of a list or database that satisfy
specified conditions
DCOUNTA: Returns the number of non-blank cells
in a field of a list or database, that satisfy specified
conditions
DGET: Returns a single value from a field of a list or
database, that satisfy specified conditions
DMAX: Returns the maximum value from a field of a
list or database, that satisfy specified conditions
DMIN: Returns the minimum value from a field of a
list or database, that satisfy specified conditions
DPRODUCT: Calculates the product of values in
a field of a list or database, that satisfy specified
conditions
DSTDEV: Calculates the standard deviation (based on
a sample of a population) of values in a field of a list or
database, that satisfy specified conditions
DSTDEVP: Calculates the standard deviation (based
on an entire population) of values in a field of a list or
database, that satisfy specified conditions
DSUM: Calculates the sum of values in a field of a list
or database, that satisfy specified conditions.
Basic Syntax of While each type of D-Function will return different values, they
all share the same arguments. So the component which changes
D-Functions will be the function name itself as the argument structure
remains consistent.
=Dfunction(Database,Field,Criteria)
The Arguments breakdown as follows:
Database: The range of cells containing the data being
searched.
Field: This is the column being calculated on in the
function.
If the column header has text then be sure that the
All of the text you enter here is wrapped within quotation
database marks.
functions use the Numeric values do not require quotations.
same argument
format. If using number to represent columns then enter a
1 for the first column, 2 for the second column, and
so on.
Criteria: A cell range containing the conditions
that must be met in order to be included in the final
calculation.
Any range of cells can be the criteria argument, it
must include at least one column label and a cell
below the column label that defines the condition
to be considered in the calculation.
D-Function
Formula,
continued
2. Save the file as My_Class_List. Save the file in the lessons folder.
4. Copy the selected cells. Right click and choose Copy or use the
shortcut of [Ctrl+C].
5. Select cell P1 and paste the cells. Right click and choose Paste or use the
shortcut of [Ctrl+V]. You are beginning
to establish the criteria range for the
D-Function.
9. Select cell P8 and type in; These cells represent the desired
< Total Earnings >. information to be extracted from the raw
data set.
10. Select cell R2, type in; You will be looking for any 2010 entries in
< 2010 >. the Version column of data.
11. Select cell S2, type in; You will be looking for any Level 2 entries
< Level 2 >. in the Class column of data.
12. Select cell Z2, type in; You will be looking for any number of
< >5 >. students greater than five within the
Number of Student column of data.
13. Select cell Q5. This is where the DSUM formula will be
entered
15. In the Insert Formula dialog, select the You have chosen the type of function to
following: insert and the Function Arguments dialog
Category: Database opens.
Function: DSum
and click [OK].
16. In the Function Arguments dialog, input The Database field refers to the data set
the following: being queried.
Database: A1:N267 The Field field refers to which column of
Field: Z1 data will be summed.
Set Criteria: P1:AC2 The Criteria field refers to the search
and click [OK] to apply the formula. parameters.
18. Select cell Z2 and delete the current This removes the specific parameter of
contents. more the five students in the class from the
search criteria.
19. Notice that the value in cell Q5 changes. The value in the cell now show the full
total of students who took 2010 Level 2
classes.
2. Select cell Q6. In this cell you want to know how many
times the 2010 Level 2 class has be run.
3. Enter the following formula The formula has counted every instance of
< =DCOUNT(A1:N267,T1,P1:AC2) >. a 2010 Level 2 class within the dataset.
4. Select cell T2, type in; By adding a new criteria to the search
< >6-30-2016 >. parameters , the search results are
narrowed to only classes run after June 30th
2016.
5. Notice the changes in cells Q5 and Q6. The results in both cells are updated to
reflect the additional search parameter
added to the criteria range.
6. Select cell T2, type in; The formulas now return only 2010 Level 2
< <6-30-2016 >. classes run before June 30th 2016.
7. Clear the contents in cell T2. The search no longer is limited by any date
constraints.
2. Select cell Q7. In this cell you want to know the average
number of students who attended 2010
level 2 classes.
3. Enter the following formula The formula returns the average number
< =DAVERAGE(A1:N267,Z1,P1:AC2) >. of students that attended 2010 Level 2
classes. Although, it is showing the results
with decimals.
4. Double click into cell Q7. By double clicking a cell, you editing
the cell contents and in this case able to
modify the formula.
7. Right click cell Q8 and click the [$] The cell now has the Accounting
button in the Mini Toolbar. formatting applied.
Looking for all version 2016 and only version 2013 Level 2 classes
Page 104 Excel 2019: Data Analysis, Rel. [Decrease Decimals] , 5/6/2020
Action 4.5 - Expanding the Criteria Range
2. Change the criteria ranges from P1:AC2 You are adding another row each the
to P1:AC3 in cells Q5:Q8. criteria range to allow for multiple
parameters to be searched for within the
3. Select cell R3, type in; formulas.
< 2013 >.
You are now searching for all records of
4. Notice that all the values in cells Q5:Q8 2010 Level 2 and any 2013 version classes.
have been updated.
The values now reflect the expanded
search criteria .
5. Select cell R3 and press the [Delete] key. The cell contents are removed.
6. Select cell T2, type in; You are again search for classes run after
< >6-30-2016 >. June 30th 2016.
7. Select cell T3, type in; You are now also limiting the search to
< <10-1-2016 >. classes run before October 1st 2016. In this
manner you are able to search for classes
run within a specific time period.
The first set in this process will be to extract unique values from
columns within the dataset using the Advanced Filter tool used
earlier. Once you have extracted the unique values from each
column you can move on to the next step in the process.
Page 106 Excel 2019: Data Analysis, Rel. [Decrease Decimals] , 5/6/2020
Lesson 3: Database Functions
Down Menu's, You can type your list in manually here. If you are
continued typing the list in yourself, use a comma to separate
each list entry.
-OR-
Refer to a cell range that contains the list entries by
highlighting the desired cells.
You could add Input and Error Messages by clicking
the appropriate tab in the dialog.
Click the [OK] button.
The active cell now has a drop-down arrow when selected. Click
the arrow allows users to choose any item from the list you
created.
Excel 2019: Data Analysis, Rel. [Decrease Decimals] , 5/6/2020 Page 107
Action 4.6 - Extracting Lists from the Dataset
2. Select cells C1 and D1. These are two of the columns that you will
extract unique values from.
3. Copy the cells and paste them into cells This is where the filtered data will be
P10 and Q10. placed.
5. Copy the cells and paste them into cell This is where the filtered data will be
R10. placed.
7. Copy the cells and paste them into cell This is where the filtered data will be
S10. placed.
8. On the Data Tab, in the Sort & Filter The Advanced Filter dialog opens.
Group, click the [Advanced] button.
9. Click the Copy to another location radio The returned values will now be copied to
button. another location in the spreadsheet.
10. Click into the List Range: field and type This is the dataset that contains the source
in; < A1:N267 >. data.
11. Click into the Criteria range: field and This is the field within the data set to be
type in: < P10 >. searched.
12. Click into the Copy to: field and type in; This is where the data will be placed, if
< P10:P11 >. you don't include the column header the
filter will return all columns from the
dataset.
13. Check the Unique records only checkbox. As implied by the name, only unique
values will be returned by the filter.
16. Repeat steps 8 through 15 for each of the Make the necessary adjustments to the
remaining columns of required data. filtering for each column of data.
2. Select cell R2. This is the first cell where you will place
the drop-down menu for users to choose
items.
3. Click the Data Tab, then click the [Data The Data Validation dialog opens.
Validation] Button in the Data Tools
Group.
4. On the Setting Tab in the Data Validation This is the type of input setting the Data
dialog, choose List from the Allow: field Validation tool inserts.
drop-down.
5. Click into the Source: field. This is where you can define the list
manually or enter a cell range containing
the values to be used as the list.
7. Click the [OK] button. The Data Validation dialog closes and a
drop-down arrow in displayed in cell R2.
8. Use the Autofill handle to pull down to Cell R3 now is also setup.
cell R3.
9. Repeat steps 2 through 8 to add drop- Each section of the criteria range used in
down list for cells S2:S3, X2:X3, and the D-FunctionS formulas now has drop-
AA2:AA3 respectively. down to make user input flawless. Make
sure you refer to the correct source rang of
cell in each Data Validation.
10. Clear any values currently within the The D_FUNCTION formulas should all
Criteria range. read 0.
11. Try using the new drop-downs to Depending on the choices made using the
modify the data being returned by the drop-downs, the formula values change.
D-Function formulas.
Lesson 4: Data
Modeling
Lesson Overview
Data Modeling Excel has added data modeling as new feature, you no longer
have to add the plug-in as in the previous version. This tool
allows you to connect tables of data, creating a relational data
structure within Excel. These related tables are used in Pivot
Tables, Pivot Charts, and Power View reports greatly extending
their functionality. The data used in can be in the Excel file or
can be imported by using the Get External Data tools.
If the Power Pivot Tab is not displayed in the ribbon you may
need to enable Power Pivot from the Excel Options dialog.
Data Modeling, The Power Pivot Tab should now be displayed on the
continued ribbon.
Data modeling tools are also found in the Data Tools Group on
the Data Tab.
Although you can easily build huge data models in Excel, there
are some considerations to keep in mind when working with
Data Models.
Large models containing many tables and columns are
overkill for most analyses.
Excel has a file size limit of 10MB, and having lots of
large tables of data will reach the limit quickly.
As the file size grows, it will negatively affecting
other applications and reports sharing the same
system resources due to high demands of system
memory.
Avoid calculated columns, since they will need regular
updating to keep current data in the Data Model.
(Draws more system resources)
Ensure that the data has a Primary key column of data
to create relationship between the data tables.
It is recommended to use a 64 bit version of the
program with a minimum of 8GB of RAM, 16GB
preferred.
Relational Databases
A relational database's structure inherently recognizes
relationships among the data. These relationships let you quickly
search and retrieve specific information, view the same dataset in
multiple ways and reduce data errors and redundancy.
5. On the Home Tab , in the Styles Group, The table styles are displayed.
click the [Format as Table] button.
6. Choose the first table option from the The Format As Table dialog opens.
menu.
7. Check the Where is the data for your All the connected data should be listed as
Table: field to see that it reads; the data to be converted into a table.
=$A$1:$G$980
8. Check the My table has headers This will set the row 1 as the header row of
checkbox. the table.
9. Click the [OK] button. The formatting is applied to the data range
and the Table Tools Design Tab is added to
the ribbon.
10. Click the Table Tools Design Tab. The table tools are displayed.
11. In the Properties Group, click into the You must tap the [Enter] key after entering
Table Name: field and type in: a name in order for it to be applied. If you
< Classes > then tap the [Enter] key to forget. the name will not be applied.
apply the name to the table.
12. Format the data on each of the other Repeat steps 4 through 11 on each
sheets as tables and name each table with worksheet. When naming tables you can
the same name as the worksheet. not have blank spaces, so add underscores
or camel case the names.
3. In the Table: field choose Companies from In this case you are setting Sales_Reps
the drop-down, then from the Column column in the Companies table as the
(Foreign): field drop-down choose Sales_ data that will connect to another table.
Reps. This is the many side of the one-to-many
relationship
4. In the Related Table: field choose Sales_ You are now setting Emp-ID as the column
Reps from the drop-down, then from the as the unique primary key in the Sales_
Related Column (Primary): field drop- Reps table, this will be the one side of the
down choose Emp-ID. one-to-many relationship between the
Sales_Reps and Companies tables.
7. In the Table: field choose Clients from The many side in the relationship to the
the drop-down, then from the Column companies table, many clients work for the
(Foreign): field drop-down choose same company.
Company_ID.
8. In the Related Table: field choose The one side in the relationship.
Companies from the drop-down, then
from the Related Column (Primary):
field drop-down choose Company_ID.
10. Click the [New] button. The Create Relationship dialog opens.
14. Click the [New] button. The Create Relationship dialog opens
18. Once all the relationships have been The Manage Relationships dialog is closed.
created, click the [Close] button.
Managing the Once relationships are established you may need or want to
manage the data model. When managing a data model,Excel
Data Model will open the Power Pivot for Excel-(File name) window from
within this environment you are able to see, edit , and create new
relations.
Tables do
not have to be
on separate
- OR -
worksheets to build
data models. On the Power Pivot Tab, click the [Manage] button in
the Data Model Group.
The Design and Advanced Tabs offer other tools for functions,
calculations, freezing, examining and creating relations,
properties, as well as more features.
In this view you are able to see all the data tables in the
file as well as the connections between the tables.
To move the tables, click and drag the Title Bar of
the table.
As you move the tables around the connection
lines are maintained, so you are able to see the
connections
To resize the table, use the double headed arrow
cursor that appears as you hover over the table
border.
2. Click the [Diagram View] button in the The diagram view of the existing named
View Group on the Home Tab. tables and the connections added is
displayed.
3. Arrange the tables in so you can see Click and drag the Title Bar of the table
them all and the connection lines. to reposition it. You may also need to
zoom out to see all the tables. If so, use the
Zoom Slider in the lower right corner of
the window.
4. Resize each table to see all the fields. Hover over the bottom of the table, when
the doulbe-headed arrow cursor appears,
click and drag to resize the table.
6. Close the Power Pivot for Excel- Click the close button in the upper right
[Link] window and save corner of the window and [Ctrl+S].
the file
Creating PivotTables
It is easier to
visualize the
Pivot Table data
in it's own worksheet
than in an existing In this dialog, you are able to set where the new
worksheet.
PivotTable will be placed within the workbook.
Choose where the new PivotTable will be placed and
click the [OK] button.
A blank PivotTable is added to a New Worksheet or on
the existing worksheet you chose.
Creating In Excel
PivotTables, If the Power Pivot for Excel window was closed and you are back
in an Excel window, it is still possible to create a PivotTable from
continued
the established Data Model.
Working with a Once the PivotTable is created, it will be empty of content until
fields are added. The blank table is located on the worksheet and
PivotTable the PivotTable Field pane is displayed on the right side of the
Excel window.
Blank PivotTable
If all the Tables are not displayed in the PivotTable Field pane,
click the [All] button at the top of the pane.
Should the Add this data to the Data Model checkbox not have
been checked, a [More Tables] button is shown below the list of
fields in the current table. Clicking that button will open a dialog
asking if you want to create a new PivotTable. You must click the
[Yes] button to continue.
[Expand] Button
Working with a The power of a PivotTable is that you can rearrange the fields
to see your data from different perspectives. With the Filter,
PivotTable, Columns, and Rows areas field, it is easy to filter the data to look
continued at specific subsets that would otherwise be difficult to see within
the raw data sets.
2. On the Data Tab, in the Data Tools The Power Pivot for Excel window opens.
Group, click the [Data Model] button.
3. In the Power Pivot for Excel window, on The Create PivotTable dialog opens.
the Home Tab, click the [PivotTable]
button.
4. In the Create PivotTable dialog, choose New Worksheet is the default choice, so
New Worksheet option and click the [OK] simply ensure that is the active option.
button.
5. Examine the PivotTable Field pane. All the tables in the data model should be
listed in the upper field of the PivotTable
Filed pane.
6. Click the [Expand] arrow button to the The list of fields ( these are the columns in
left of the Sales_Reps table. that table) in this table are displayed.
7. Drag the Last Name field down into The Last Name field is added to the Filters
the Filters field at the bottom of the field. You will be able to filter the data
PivotTable Field pane. based on individual sales reps.
8. Click the [Collapse] arrow button for the The table's fields are collapsed. Since this
Sales_Reps table. is the only field needed in the PivotTable
from the Sales_Reps table, there is no need
to leave the table field list expanded.
9. Click the [Expand] arrow button to the The list of fields in this table are displayed.
left of the Classes table.
10. Drag the Date field down into the Rows The dates are added in the Rows field and
field. displayed in the PivotTable. Every date is
listed.
11. Right click any date in the worksheet and The Grouping dialog opens. You can
choose Group from the menu. choose how to group the dates by a single
or multiple choice.
13. Right click any Month on the worksheet All the dates within the months are shown.
and from the Expand/Collapse options
choose Expand Entire Field.
14. In the Rows field of the PivotTable field, The individual dates are removed from
drag the Dates field out. the PivotTable while the Months are still
displayed.
15. Drag the Name field down below the Now all the Names of the classes taught
Date(Month) field in the Rows field. that month are displayed. If not then
repeat step 13 to display the data.
16. Drag the Version field down below the The Version of the class is added to the
Name field in the Rows field. PivotTable.
17. Drag the Client_ID field down into the A count of the clients who took that given
Values field. class is added in the second column of the
PivotTable.
18. Collapse the Classes table field list. In the PivotTable field pane click the
[Collapse] button beside the Classes table.
20. Expand the Courses table. The list of fields in the Course table is
displayed.
21. Drag the Price field to the Values field. The Price field is added as a new column
in the PivotTable. The data is not coming
in correctly, you will need to add a new
calculated column in the Data Model.
22. Drag the Price field out of the Values The data is removed from the PivotTable.
field.
Calculated
Column,
continued
2. On the Data Tab, in the Data Tools The Power Pivot for Excel window opens to
Group, click the [Data Model] button. the Data View.
3. Select the Classes Table tab. The table tabs are listed at the lower left of
the window.
4. Click into the blank cell below the Add This will add a new column as you enter
Column header. data or in this case a calculated column.
5. Activate the Design Tab. Click the Design Tab in the ribbon.
6. Click the [Insert Function] button in the The Insert Function dialog opens.
Calculations Group.
7. Leave the Select a category: field set to All available functions are listed in the
All. Select a Function: field.
8. From the Select a Function: field list The Insert Function dialog closes and the
choose Related and click [OK]. function is added in the Formula Bar.
9. Select the Course Tab, then select the Price Since these tables have a connection based
column header and tap the [Enter] key. on the Course_ID, the Classes table will
now compare the Course_ID columns and
return the price of each class. The ata can
now be used to see how much revenue was
earned from each class in the PivotTable.
10. Double click the column header and type To apply a name to the column.
in;
< Cost_Per >
and tap the [Enter] key.
11. Close the Power Pivot for Excel window. Click the [Close] button in the upper right
corner of the window. The Power Pivot for
Excel window closes and you are back in
the PivotTable worksheet.
13. Drag the new Cost_Per field into the The price data is calculated and displayed
Values field. in the PivotTable.
Adding the Add- Check the Microsoft Power Pivot for Excel checkbox and
click the [OK] button.
In,
continued
2. From the list of categories on the left of The Options Window opens.
the backstage, choose Options.
3. In the Options Window, choose the Add- The Excel Add-ins controls are displayed
ins category. in the Options Window.
4. Click the drop-down arrow of the This field allows you to choose which set
Manage: field and choose COM Add-ins. of Add-ins to search through.
5. Click the [GO] button. The COM Add-ins dialog opens, showing a
list of checkbox options.
6. Check the Microsoft Power Pivot for Excel The Power Pivot Tab is now available on
checkbox and click the [OK] button. the ribbon.
2. In the Add-ins Group, click the [COM The COM Add-ins dialog opens.
Add-ins] button.
3. Check the Microsoft Power Pivot for Excel The Power Pivot Tab is now available on
checkbox and click the [OK] button. the ribbon.
Modify tables
Add or remove table rows and columns L-2
Configure table style options L-2
Insert and configure total rows L-2
TCW Book Filter and sort table data
Codes Filter records L-2
Sort data by multiple columns L-2
Excel Level 1 L-1
Excel Level 2 L-2
Excel Level 3 L-3 Insert references
Excel Formulas FM Insert relative, absolute, and mixed references L-1
Excel Data Analysis DA Reference named ranges and named tables in
Excel Charts CH L-2
formulas
Excel PivotTables PT
Excel Data Analysis with
PowerPivot PPT
Calculate and transform datas
Perform calculations by using the AVERAGE(),
L-1
MAX(), MIN(), and SUM() functions
Count cells by using the COUNT(), COUNTA(),
DA
and COUNTBLANK() functions
Perform conditional operations by using the
FM
IF() function
Create charts
Create charts L-2 / CH
Create chart sheets L-2 / CH
Modify charts
Add data series to charts L-2 / CH
Switch between rows and columns in source
L-2 / CH
data
Add and modify chart elements L-2 / CH
TCW Book
Codes
Microsoft Office excel
Excel Level 1 L-1
Expert Exam MO-201
Excel Level 2 L-2
Excel Level 3 L-3 Manage workbooks
Excel Formulas FM Copy macros between workbooks L-3
Excel Data Analysis DA Reference data in other workbooks L-3
Excel Charts CH Enable macros in a workbook L-3
Excel PivotTables PT Manage workbook versions L-2
Excel Data Analysis with
PowerPivot PPT
Prepare workbooks for collaboration
Restrict editing L-2
Protect worksheets and cell ranges L-2
Protect workbook structure L-2
Configure formula calculation options FM
Manage comments L-2