CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel Martin Schedlbauer, Ph.D.

Slides:



Advertisements
Similar presentations
Lesson 3 Working with Formulas.
Advertisements

Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel.
Microsoft Excel Presented by ShoWorks Fair Software and Online Entries
EXCEL.
Slides 2c: Using Spreadsheets for Modeling - Excel Concepts (Updated 1/19/2005) There are several reasons for the popularity of spreadsheets: –Data are.
Introduction to Excel Formulas, Functions and References.
CS1100: Computer Science and Its Applications Excel Basics Modified from originals created by Martin Schedlbauer, Peter Douglass and Peter Golbus.
Basics Of Spreadsheets Chapter Spreadsheet spreadsheet: grid of cells, each of which can contain text data or numeric data.
Using Microsoft ® Excel Formulas and Functions Start Microsoft ® Excel. Type data into cells as shown.
Introduction to Powerschool and Excel Jared Schatz Staff Accountant (509)
Introduction to Microsoft Excel 2010 Chapter Extension 3.
33 CHAPTER BASIC APPLICATION SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 1-2 Announcement: QUIZ#02 In Lecture Session # 9 (5.
Copyright 2003, Paradigm Publishing Inc. CHAPTER 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES AutoSum Button Mathematical Operators Mathematical Operators Formula.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 2 1 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making: What If? Robert Grauer and Maryann Barber Exploring.
1 Computing for Todays Lecture 8 Yumei Huo Spring 2006.
1 CS110: Lecture 2 Spreadsheets Prepared by Fred Annexstein University of Cincinnati CC Some rights reserved Today’s Topics Basics of Excel Spreadsheets.
FIRST COURSE Excel Lecture. XP 2 Introducing Excel Microsoft Office Excel 2007 (or Excel) is a computer program used to enter, analyze, and present quantitative.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
Mr Shum Spreadsheets eBooklet. Key Words Key Word CellAn individual box on a spreadsheet RowCells going across in an horizontal line. All rows have a.
XP Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 2 – Working With Formulas and Functions.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Mathematical OperatorsMathematical Operators Formula.
Microsoft Excel Diane M. Coyle Spring 2009 CS 105.
XP Abdul Hameed 1 Microsoft Office Excel 2013 Tutorial 2 – Working With Formulas and Functions.
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
Microsoft Excel Used to organize information for calculations.
Excel Functions Abby Wiertzema
Excel Worksheet # 5 Class Agenda Formulas & Functions
Exploring Excel 1. Introduction to Microsoft Excel: What is a Spreadsheet? What else can Excel do? Calculations – Inventory Lists.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. What Can I Do with a Spreadsheet.
Key Words: Functional Skills. Key Words: Spreadsheets.
11 Chapter 2: Formulas and Functions Chapter 02 Lecture Notes (CSIT 104) Exploring Microsoft Office Excel 2007.
INTRODUCTION TO SPREADSHEETS MICROSOFT EXCEL. Spreadsheets Allows users to perform simple and complex sorting Allows users to perform calculations quickly.
XP 1 Microsoft Office Excel 2003 Working With Formulas and Functions.
Spreadsheets: Part I Creating a Worksheet in MS Excel
PERFORMING CALCULATIONS Microsoft Excel. Excel Formulas A formula is a set of mathematical instructions that can be used in Excel to perform calculations.
XP 1 ﴀ New Perspectives on Microsoft Office 2003, Premium Edition Excel Tutorial 2 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
1 Academic PowerPoint Introduction to Spreadsheets – Fundamental Skills 1.
- Professor Kurt Brandquist - IT133 Software Applications Unit 6 Seminar: Formulas and Functions Wednesday, 6/22/11.
An electronic document that stores various types of data.
 The term “spreadsheet” covers a wide variety of elements useful for quantitative analysis of all kinds. Essentially, a spreadsheet is a simple tool.
COM: 111 Introduction to Computer Applications Department of Information & Communication Technology Panayiotis Christodoulou.
Microsoft Excel 2007 Noris Bt. Ismail Faculty of Information and Communication Technology Tel : (Ext 8408) BCOMP0101.
Principles of Finance with Excel, 2 nd edition Instructor materials Chapter 26 Excel functions.
Resource Review Excel formula basics Demonstrate how to enter manual formulas Examine some of the available functions and their usage Discuss the.
CTS130 Spreadsheet Lesson 6 Working with Math & Trig, Statistical, and Date & Time Functions.
XP Practical OpenOffice.org Chapter 5 1 Creating a Worksheet.
Click once to reveal the definition. Think of the answer. Then click to see if you were correct. Spreadsheet / Workbook A grid of rows and columns containing.
Introduction to Spreadsheets –
MSAA PRESENTS: AN EXCEL TUTORIAL
CSE111 Introduction to Computer Applications
Chapter 2 Using Spreadsheets.
Introduction to Spreadsheets
Microsoft Excel.
Computer Fundamentals
MS-Excel Part 1.
Excel Formatting Rules
4.01 Spreadsheet Formulas & Functions
Microsoft Excel 101.
Excel: Formulas & Functions I Participation Project
4.01 Spreadsheet Formulas & Functions
Topic 2 Lesson 1 –Excel Basics
Formatting vs. Rounding
Intro to Excel CSCI-150.
Topic 3 Lesson 1 – Conditional Logic
Introduction to Spreadsheets –
Introduction to Spreadsheet Terminology
Introduction to Spreadsheets
Presentation transcript:

CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel Martin Schedlbauer, Ph.D.

INTRODUCTION TO SPREADSHEETS Excel Basics CS1100Excel Basics2

Spreadsheets Spreadsheets are among the most useful business and technical applications. Principally used for calculations and manipulation of tabular data. Common spreadsheet applications: – Microsoft Excel – Google Spreadsheet – Zoho Sheet – GNU Gnumeric CS1100Excel Basics3

Spreadsheet Layout Tabular layout arranged in rows and columns. – Columns are labeled with letters – Rows are labeled with numbers Cells are at the intersection of rows and columns – Example cell reference: A3, D9 Cells can contain: – Numbers, dates, text, or other data – Formulas using functions and cell references CS1100Excel Basics4

Microsoft Excel 2010 CS1100Excel Basics5

FORMATTING Excel Basics CS1100Excel Basics6

Formatting Formatting changes the way values are displayed, but does not change the actual value being used in functions. Common formatting options: – Currency values – Time and date values – Numeric formats and decimal points – Percent CS1100Excel Basics7

Demo: Formatting CS1100Excel Basics8 Unformatted values Formatted values Percent Currency Accounting Click here to watch demonstration…

Rounding Rounding actually changes the value by rounding up or down to some specified accuracy. The rounded value is copied to another cell. To round, use the ROUND() function: =ROUND(A1,2) =ROUNDUP(A1,2) CS1100Excel Basics9

Entering Formulas and Functions To enter formulas and functions: – start entry with = Example: CS1100Excel Basics10

CELL RANGES Excel Basics CS1100Excel Basics11

Cell Ranges Many functions require cell ranges: – Column Range: A1:A10 – Row Range: A5:K5 – Matrix: A1:C5 Absolute cell references are not adjusted when copied: – $A1:$A5 is not adjusted when column copied – A$1:C$1 is not adjusted when row copied – $A$1 is never adjusted when copied CS1100Excel Basics12

Named Ranges To make your formulas easier to read, use named cell ranges. To create a named range: – Highlight cells to include in named range – Click right mouse button on any cell in the selected range for context menu – Choose “Define Name…” and provide name Note: named ranges are never adjusted when row or column copied CS1100Excel Basics13 Click here to watch demonstration…

EXPRESSIONS & FORMULAS Excel Basics CS1100Excel Basics14

Functions Excel provide thousands of functions to build spreadsheet models: – Financial, e.g., pmt, irr, fv, db – Aggregation, e.g., sum, count, average – Text, e.g., left, mid, trim – Date & Time, e.g., today, time, second – Lookup, e.g., choose, vlookup, match – Logical, e.g., if, not, or – Statistical, e.g., median, correl – Engineering, e.g., bessel, imlog – Trigonometric, e.g., sin, tan, acos CS1100Excel Basics15

Cell References in Functions Most functions require parameters. To keep your model flexible and correct even when the data changes, only use cell references in functions. CS1100Excel Basics16

Named Ranges in Functions Named ranges can make function parameters easier to understand: CS1100Excel Basics17

Common Functions: SUM There are several functions that can be used to add values: – Add columns manually: =B1+B2+C9 – Add a range of cells: =SUM(B5:B10) – Add a range of cells conditionally with SUMIF and SUMIFS CS1100Excel Basics18

Common Function: SUMPRODUCT SUMPRODUCT requires two ranges. It multiplies the corresponding numbers and then adds the products. Business AnalysisExcel Basics19 =SUMPRODUCT(A2:A6,B2:B6) A2 * B2 + A3 * B3 + A4 * B4 + A5 * B5 + A6 * B6

Common Statistical Functions FunctionUse/Description SUM Sum of a range of cells AVERAGE Arithmetic mean STDEV Standard deviation MEDIAN Median of a range of cells (middle value in a sorted list of values) MAX and MIN Maximum and minimum values of a range of cells CORREL Correlation of two sets of values LINEST Linear regression of two sets of values CS1100Excel Basics20

FLEXIBLE MODELS Excel Basics CS1100Excel Basics21

Building Flexible Models Don’t use actual numbers of text in your formulas and functions, i.e., don’t “hard code” values. To keep your model general and flexible when data change, use only cell references. CS1100Excel Basics22

Copying Cells To copy cells: – CTRL+C to copy and CTRL+V to paste or – Use cell dragging Note that cell references in formulas are automatically adjusted unless the cell references are locked with $. CS1100Excel Basics23

Copying Formulas Relative cell references adjust when copying: – Columns references adjust when copying across columns – Row references adjust when copying across rows Generally, the adjustment is desirable, but sometimes it is not: – Lock cell references by making them absolute references – Use $ before row and/or columns for locking CS1100Excel Basics24

Demo: Copying Formulas Notice what happens to the cell references when copying from row to row or column to column. Observe the effect of cell locking with $. CS1100Excel Basics25 Click to watch video demonstration

Showing Formulas To show the formulas in your spreadsheet, press CTRL+~. CS1100Excel Basics26

Hiding Columns or Rows To make spreadsheets easier to read, you may wish to hide rows or columns that contain auxiliary (or supporting) values or temporary calculations. Click on the row or column header and select “Hide”. CS1100Excel Basics27 Click here to watch demonstration…

CONDITIONAL EXPRESSIONS: IF Excel Basics CS1100Excel Basics28

The IF Function The IF function allows a cell to be filled with one of two possible values. General form of IF: =IF(condition,value_if_true,value_if_false) Example: CS1100Excel Basics29 Cell B4 is either $0 if the customer is tax exempt or the tax due is the order total multiplied by the tax rate. =IF(B1="Yes",0,B2*B3)

Taking a Closer Look at IF CS1100Excel Basics30 =IF(B1="Yes", 0, B2*B3)

A Closer Look at the Statement CS1100Excel Basics31 true false =IF( B1="Yes", 0, B2*B3)

How Does IF Work? IF does not perform any calculation, it simply fills a cell with one of two values. The values can be: – literals (actual numbers or text), e.g., 0 – results of functions or formulas – empty cells ("") are two double-quotes – some cell reference, e.g., B2 CS1100Excel Basics32

The IF Condition The IF condition is a logical expression that tests: – equality (=) – less than (<) or less than or equal (<=) – greater than (>) or greater than or equal (>=) Complex conditions can be built with the AND and OR functions. CS1100Excel Basics33

A Complete Spreadsheet Model Spreadsheet to calculate the market value of a precious metals portfolio. CS1100Excel Basics34 =B5*(IF(A5="Gold",$D$2,$D$1)-D5) =SUM(E5:E7) =SUMIFS(E5:E7,A5:A7,"Gold")

Filtering Data An alternative way of summing data. CS1100Excel Basics35 =IF($A5=F$4,$E5,0) =SUM(F5:F7) Try it out online with Zoho Sheet

Random Numbers Random numbers between 0 and 1: – =rand() – =rand()*m scales number from 0 to m – produces a fractional random number Whole random numbers between n and m: – =randbetween(n,m) These function are volatile meaning that their values change anytime the spreadsheet changes. Business AnalysisExcel Basics36

Any Question? CS1100Excel Basics37