Chapter 2: Analytics On Spreadsheets
Chapter 2: Analytics On Spreadsheets
Chapter 2: Analytics On Spreadsheets
Objectives:
Why Spreadsheets?
Excel Formulas
Cell references can be relative or absolute. Using a dollar sign before a row and/or column label
creates an absolute reference
o Relative references: A2, C5, D10
o Absolute references: $A$2, $C5, D$10
Using a $ sign before a row label (for example, B$4) keeps the reference fixed to row 4 but
allows the column reference to change if the formula is copied to another cell.
Using a $ sign before a column label (for example, $B4) keeps the reference to column B fixed
but allows the row reference to change.
Using a $ sign before both the row and column labels (for example, $B$4) keeps the reference to
cell B4 fixed no matter where the formula is copied.
Use the Copy button in the Home tab, then use the Paste button
Drag the bottom right corner of a cell (the fill handle) across a row or column
Split Screen
Paste Special
Column and Row Widths
Displaying Formulas in Worksheets
Displaying Grid Lines and Column Headers for Printing
Filling a Range with a Series of Numbers
=MIN(range)
o the Excel MIN functions returns the smallest numeric value in a range of values.
o the MIN functions ignores empty cells, the logical values TRUE and FALSE and text
values.
=MAX(range)
o the Excel MAX functions returns the largest numeric value in a range of values.
o the MAX functions ignores empty cells, the logical values TRUE and FALSE and text
values.
=SUM(range)
o add all the numbers in a range of cells
=AVERAGE(range)
o returns the average of its arguments, which can be numbers or names, arrays or
references that contain numbers
=COUNT(range)
o count the number of cells in a range that contain numbers
=COUNTIF(range,criteria)
o counts the number of cells within a range that meet the given condition.
Excel has other useful COUNT-type functions: COUNTA counts the number of nonblank cells in a
range, and COUNTBLANK counts the number of blank cells in a range. In addition,
COUNTIFS(range1, criterion1, range2, criterion2,… range_n, criterion_n)finds the number of
cells within multiple ranges that meet specific criteria for each range.
other if-type Functions
SUMIF, AVERAGEIF, SUMIFS, and AVERAGEIFS can be used to embed IF logic within
mathematical functions.
For instance, the syntax of SUMIF is
o SUMIF(range, criterion, [sum range]). "Sum range" is an optional argument that allows
you to add cells in a different range.
Example: In the Purchase Orders database, to find the total cost of all airframe fasteners, use
=SUMIF(D4:D97,"Airframe fasteners", G4:G97)
Net Present Value (or discounted cash flow) measures the worth of a stream of cash flows,
taking into account the time value of money.
Excel function: =NPV(rate,value1,value2,…)
o F is the cash flow ($)
o Rate (i) is the discount rate
o value1, value2,…are equally-spaced payments or income values
o t is a time period
Insert Function