Excel Training
Excel Training
Agenda – Session 1
• Introduction to Excel
– # of Rows and Columns
– Cell/Table Formatting
– Copy, Cut, Paste and Paste Special
– Text to Column
– Naming Ranges
• Charting
– Charting – Creating Excel Charts Using Chart Wizard
– Finished Standard Chart Examples
– Custom Charts – Creating & Saving Custom Charts
– Finished Custom Chart Examples
– Pasting Data Into Power-point
• Pasting Graphs
• Pasting Tables – 2 ways of pasting data, disadvantage of using Paste Special
Introduction
• Open a New Excel Workbook.
• Excel is widely used for making tables and charts, statistical and mathematical
analysis.
• Each Worksheet has 16,777,216 cells - 65,536 rows and 256 columns
• As default, a new excel workbook places three blank worksheets in front of you.
Each one of these has the default name Sheet1, Sheet2, Sheet3 at the bottom.
– You can change the number of default blank Worksheets by going to Tools
Options/General and changing Sheets in new workbook: by typing in the number
you require.
• Inserting Worksheets: Adding new Worksheets to a Workbook can be done in a
number of ways. The most common are:
– Go to Insert Worksheet
– Right click on another Sheet name tab and select Insert and then select
Worksheet.-It will add worksheet to the left of the selected worksheet.
• Deleting Worksheets : This can be done in any of the following ways.
– Right click on the Worksheets name tab and select Delete
– Go to Edit Delete sheet.
Basics Of Excel: Renaming Worksheets
• Naming Worksheets: You can rename your worksheets with meaningful names as
follows:
– Double click the Worksheet Name tab. This will allow you to now type the name.
Once finished, push Enter or click any cell.
– Right click on the Worksheet Name tab and select Rename from the shortcut
menu. Then type the name and hit Enter or click somewhere else on your
Worksheet.
– Go to Format Sheet Rename type the chosen name and hit Enter or click
somewhere else on your Worksheet.
Cut: moving cell’s content from its current location to a new location
• Can be done in different ways:
– Right click on the cell and from the Shortcut menu select Cut.
– Go to Edit Cut
– Push Ctrl + X on your keyboard
– Select the Cut icon from the Standard Toolbar
Paste: placing either the Cut or Copied data in its new destination.
• Can be done in different ways:
– Right click on the cell and from the Shortcut menu select Paste
– Go to Edit Paste
– Push Ctrl + V on your keyboard
– Select the Paste icon from the Standard Toolbar
Paste Special
• Excel will allow you to define a new name for a range of cells, making it easier for
reference
• For Example:
– Cells A2:C10 can be renamed to “Data”
– When referencing the cells, you can just use the name “Data”
• =Sum(Data) This will sum all of the cells in A2:C10
• How to Name a Range:
– Choose Insert Name Define
– Click the button next to the “Refers To:” input box
– Select the cells you want the range to refer to
– Type a name for the range in the “Names in Workbook” text box
– Click “Add”
Microsoft Excel – Defining A Name For A
Range Of Cells (Cont.)
Displays Name of Range
Any additional named ranges in the
workbook will appear here
Step 2
Step 3
Step 4
Few Finished Standard Chart Examples
sales Volume
Media W1 W2 W3 W4 W5
TV 1,082 686 367 243 1,206
Print 769 1,410 1,115 879 4,002
BroadBand 379 2,244 5,029 7,672 9,848
Website 56 236 346 593 3,793
Total 2,286 4,576 6,857 9,387 18,849
100% 2% 5%
5% 6%
17% 20%
80%
49%
% o fVo lu me
34%
60% 73%
82% 52%
40%
31%
47%
20%
21%
16%
15% 9%
5% 6%
0%
3%
W1 W2 W3 W4 W5
Weeks
Market Share
BASE
11%
TRADE
14% 37%
FSCI
4%
HALO TV
HALO TV -
34% SCC
Volume
0
1000
2000
3000
4000
5000
6000
7000
8000
8/18/2007
10/18/2007
12/18/2007
2/18/2008
4/18/2008
6/18/2008
8/18/2008
10/18/2008
12/18/2008
Weeks
2/18/2009
4/18/2009
6/18/2009
8/18/2009
10/18/2009
12/18/2009
2/18/2010
Few Finished Chart Examples
4/18/2010
6/18/2010
ACTUAL
PREDICTED
Session 2
Agenda – Session 2
• Array Formulas
Formulas And Functions: Location
Formulas And Functions: Categories
Formulas And Functions
• LOGICAL: IF
• MONTH
– Returns the month, a number from 1 (January) to December (12)
– Syntax: Month(Serial_number)
– Serial_Number is a number in the date-time code of Excel
– Example: 1-Oct-2007 1-Oct-2007, Month function on this would return value as
‘10’
• YEAR
– Returns the year, a number from 1900 to 9999
– Syntax: Year(Serial_number)
– Serial_Number is a number in the date-time code of Excel
– Example: 1-Oct-2007, Year function on this would return value as ‘2007’
• NOW
– Returns the current date and time
– The function takes no arguments
– Syntax: Now()
Formulas And Functions : Math & Statistical
• SUMPRODUCT
– Returns the sum of products of corresponding ranges/arrays
– Syntax: Sumproduct(array1, array2…., arrayN)
– Example:
» Array1 = 10, 20, 30
» Array2 = 1, 2, 3
» Sumproduct(array1, array2) = 140 ( 10*1+20*2+30*3)
Formulas And Functions : Text
• CONCATENATE
– Joins several text strings into one text string
– Syntax: Concatenate(String1, String2…….,StringN)
– Example:
» Example: Concatenate(A1,”-”,B1)=NEURO-HIGH where A1=NEURO and B1= HIGH
– Frequently used with LOOKUP functions when we have to lookup on more than one columns/ rows
• Example
– IF(A1<=50,”Under Capacity”,IF(A1>=80,”Over Capacity”, ”Within Capacity”))
• If Cell A1 is <=50, then the formula will return “Under Capacity”
• If Cell A1 is >=80, then the formula will return “Over Capacity”
• Otherwise, the formula will return “Within Capacity”
Formulas And Functions : Lookup &
Reference
• VLOOKUP
– Searches for a value in the leftmost column of a table, and then returns a value in
the same row of the table from a column you specify
– Example
• =VLOOKUP(2,A2:C10,2)
• Excel will return the value in the second column of the table in the row that
contains the value of “2” in the first column of the table containing cells A2:C10
Formulas And Functions : Lookup &
Reference (cont.)
• HLOOKUP
– Searches for a value in the topmost row of a table, and then returns a value in the
same column of the table from a row you specify
– Example
• =HLOOKUP(2,A2:C10,2)
• Excel will return the value in the second row of the table in the row that
contains the value of “2” in the first row of the table containing cells A2:C10
Formulas And Functions : Advance
Functions
• MATCH (lookup_value, lookup_array, match_type)
– Returns the relative position of an item in an array that matches a specified value
in a specified order
– match_type
• 1 - MATCH finds the largest value that is less than or equal to lookup_value.
Lookup_array must be placed in ascending order
• 0 - MATCH finds the first value that is exactly equal to lookup_value.
Lookup_array can be in any order.
• -1 - MATCH finds the smallest value that is greater than or equal to
lookup_value. Lookup_array must be placed in descending order
Formulas And Functions : Advance
Functions (cont.)
• INDEX (array, row_num, column_num)
– returns the value of a specified cell or array of cells within array
– array – contiguous range of cells
– row_num – specifies the row in the array from which to return a value (if not specified
then column_num must be)
– column_num - specifies the column in the array from which to return a value (if not
specified then row_num must be)
– If both row_num and column_num are specified, then the function will return the value
at the intersection
9500
Session 3
Agenda – Session 3
• Pivot Tables
• Naming Ranges
• Macro
• Data Analysis
– Random Number
– Histogram
– Correlation
– Regression
Pivot Tables
• A PivotTable report is an interactive table that quickly combines and compares large
amounts of data. You can rotate its rows and columns to see different summaries of
the source data, and you can display the details for areas of interest.
• To create a PivotTable report, you run the PivotTable and PivotChart Wizard. In the
wizard, you select the source data you want from your worksheet list or external
database. The wizard then provides you with a worksheet area for the report and a
list of the available fields. As you drag the fields from the list window to the outlined
areas, Microsoft Excel summarizes and calculates the report for you automatically.
Pivot Tables (cont.)
After Running Pivot Table Wizard
Data
Purpose
• Buttons, check boxes, drop-down lists, and other kinds of controls can make a
worksheet easier for you and others to use.
• A macro is a short program written using VBA that can be used to carry out a specific
task
• VBA is the language that Excel macros are written in. It is a programming language
that is included with all of the Microsoft Office applications e.g. Word, Access,
PowerPoint, Excel as well as others.
– VBA is a subset of Microsoft Visual Basic, an extremely popular programming
language that has been around for over 10 years.
• Detailed discussion on macro is outside the scope of this presentation. However, we
will aim to teach macro recording using toolbar.
Macro : Recording
• To record a macro, go to the Tools menu, go to “macro” and then “Record
New Macro”.
• You can assign a name to your macro if you'd like, as well as type a short
description.
• You can also assign a keyboard shortcut to it (so you can press a sequence
of keys to run the macro).
Assign macro to
the button
Macro: Running It Through A Button On A
Worksheet (Contd.)
• Protecting Cells
– Data in protected cells can not be changed (edited or modified).
– By default all cells in a worksheet have the locked property turned on (the cell is
capable of being protected).
• Protecting a Worksheet
– Click Tools, click Protection, click Protect Sheet.
– Enter a password (only if desired).
– Confirm password (only if entered).
– Click OK.
• Protecting a Workbook
– Click Tools, click Protection, click Protect Workbook.
– Enter a password (optional).
– Choose to protect the Structure, Windows, or both.
– Click OK.
Data Analysis
• Microsoft Excel provides a set of data analysis tools -
called the Analysis ToolPak - that you can use to save
huge amounts of time when you perform complex
statistical analyses.
• If the Data Analysis command is not on the Excel Tools
menu, you need to install the Analysis ToolPak:
– 1. On the Tools menu, click Add-Ins.
– 2. Select the Analysis ToolPak check box.
– 3. Install.
• To use the Analysis ToolPak:
– On the Tools menu, click Data Analysis.
– In the Analysis Tools box, click the tool you want to
use.
– Enter the input range and the output range, and then
select the options you want.
Data Analysis (Contd.)
• Among the tools available on the Analysis ToolPak are:
– Analysis of variance (ANOVA)
– Correlation
– Descriptive Statistics
– Histogram
– Random Number Generation
– Rank and Percentile
– Regression
• Before using an analysis tool, you must arrange the data you want to analyze in
columns or rows on your worksheet. This is your input range.
ANOVA: Analysis of Variances
Compares variances in two or more data sets
If difference is found it can be assumed that the means of the data sets are
different
Two Factor with Replication – useful when data can be classified along 2 different
dimensions
Two Factor without Replication – as above but only one observation for each pair
Correlation and Regression
Correlation is a measure of the strength of linear association between two variables
» Values between -1 and +1
» Values close to -1 indicate strong negative relationship
» Values close to +1 indicate strong positive relationship
» Values close to 0 indicate weak relationship
Linear Regression is the process of finding a line of best fit through a series of data
points
» Can also use the SLOPE, INTERCEPT, CORREL and RSQ functions
Descriptive Statistics