CPSC-130 Computing With Spreadsheets Decision Making Week 3

advertisement
CPSC-130
Computing With Spreadsheets
Decision Making
Week 3
Decision Making
Quality of decisions
Ways Excel helps
5/29/2016
Brenda Vander Linden and Aaron Armstrong
2
Garbage In, Garbage Out
Tale of James A. Cummings Inc.
5/29/2016
Input
Processing
Output
Bad
Whatever
Bad
Good
Bad
Bad
Good
Good
Good
Brenda Vander Linden and Aaron Armstrong
3
Making Quality Decisions
Excel is only a tool.
Double check


Input
Processing
Good formatting helps
Then and only then use the spreadsheet
for decision making.
5/29/2016
Brenda Vander Linden and Aaron Armstrong
4
Ways Excel helps
Functions
Built in commands



5/29/2016
Goal Seek
Scenario Manager (Chapter 6)
Solver (Appendix B)
Brenda Vander Linden and Aaron Armstrong
5
Functions
Predefined formulas


Take arguments (parameters) as input
Return some calculated value as output.
Examples


Sum
Average
Writing a function



5/29/2016
Insert Function
fx Icon
Just type
Brenda Vander Linden and Aaron Armstrong
6
Functions Continued
In conjunction with cell ranges, allow
addition/deletion of rows/columns
Logic functions allow rudimentary
programming
Useful



5/29/2016
Predefined: PMT is hard to write
Smart: auto add inserted column/row
Flexible: IF allows conditional behavior
Brenda Vander Linden and Aaron Armstrong
7
Many functions available
Math
Finance
Date
Text
Database
Statistical
Logical
5/29/2016
Abs, Log, Rand, Round, Sum
FV, PV, Pmt
Today, Now, Minute
Find, Substitute, Trim, Upper
DAverage, DCount, DMin
Average, Rank, Stdev
If, And, Or, Not
Brenda Vander Linden and Aaron Armstrong
8
IF
If condition


Then Value1
Else Value2
Example

=IF(A1>60, “Pass”, “Fail”)
Nesting Example

5/29/2016
=IF(A1>85, “Good”, IF(A1>60, “Okay”, “Fail”))
Brenda Vander Linden and Aaron Armstrong
9
VLookup
Looks up a value from a sorted table
Parameters



Value to look up
Table reference
Column number
=VLOOKUP(I4, $I$20:$J$24, 2)
5/29/2016
Brenda Vander Linden and Aaron Armstrong
10
PMT and FV
PMT: Periodic Payments



Interest rate
Number of payments
Present value (negative for loans)
FV: Future value of an investment



5/29/2016
Interest rate
Number of payments
Payment made each period
Brenda Vander Linden and Aaron Armstrong
11
Built-in Commands
Hide
Freeze panes
AutoFilter
Sort
Goal Seek
5/29/2016
Brenda Vander Linden and Aaron Armstrong
12
Download