Numeric and Functional. A cell is the intersection of a row and column Each cell in the spreadsheet has a name – The column-name followed by the row-name.

Slides:



Advertisements
Similar presentations
Lesson 3 Working with Formulas.
Advertisements

COMP 4—Power Tools for the Mind 1 Power Tools Spreadsheets What we’ll cover for this lecture topic: –The paper worksheet... –What are electronic spreadsheets?
8. Introduction to Spreadsheet CSCI N207 Data Analysis Using Spreadsheet Lingma Acheson Department of Computer and Information Science,
Excel Features That Would Help You Prepare Class Result.
EXCEL.
FORMULAS & FUNCTIONS EXCEL 2. Excel Input – a collection of informational data typed into the spreadsheet Output – worksheet results Information to be.
FORMULAS & FUNCTIONS EXCEL. Input A collection of information Data typed into the spreadsheet Output Worksheet Results.
Excel – Study Guide #2.
Introduction to Excel Formulas, Functions and References.
Microsoft Office XP Microsoft Excel
Pasewark & Pasewark 1 Excel Lesson 4 Entering Worksheet Formulas Microsoft Office 2007: Introductory.
Basic Spreadsheet Functions Objective Functions are predefined formulas that perform calculations by using specific values, called arguments, in.
Chap 4 Formulas and Functions Exploring Spreadsheet Software.
Copyright 2003, Paradigm Publishing Inc. CHAPTER 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES AutoSum Button Mathematical Operators Mathematical Operators Formula.
33 CHAPTER Basic APPLICATION SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 1-2 Lecture Objectives More Spreadsheet Features What.
Propositional Calculus Math Foundations of Computer Science.
Technology Basics Creating Worksheet Formulas. 2 Understand Formulas Equations used to calculate values in cells are called formulas. Formulas consist.
Spreadsheets Objective 6.02
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Mathematical OperatorsMathematical Operators Formula.
2 Explain advanced spreadsheet concepts and functions Advanced Calculations 1 Sabbir Saleh_Lecture_17_Computer Application_BBA.
Calculations & Graphics using Spreadsheet ADE100- Computer Literacy Lecture 17.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
Computer Literacy BASICS
Microsoft Excel Diane M. Coyle Spring 2009 CS 105.
Programming Logic and Design Fourth Edition, Introductory
General Purpose Packages Spreadsheets. What is a Spreadsheet? Spreadsheets are used mainly for recording mathematical data such as bank records, accounts,
Introduction to Spreadsheets Microsoft Excel A program which allows you to perform complex mathematical operations in an organized manner. What is a spreadsheet?
Chapter 3: Data Types and Operators JavaScript - Introductory.
Introduction to Spreadsheets Program: Excel. Starting Excel Spreadsheets Spreadsheet –A grid of rows and columns used to make calculations. A spreadsheet’s.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. What Can I Do with a Spreadsheet.
CIS100 Test Review REACH Computer Resource Center © 2011 REACH-CRC. All Rights Reserved.REACH.
CS&E 1111 ExLogic Microsoft Excel Logical Functions Objectives: Using Boolean Logic in Spreadsheets l Relational operators l Boolean operators –Functions.
11 Chapter 2: Formulas and Functions Chapter 02 Lecture Notes (CSIT 104) Exploring Microsoft Office Excel 2007.
Unit 4, Lesson 4 Using Function Formulas. Objectives Understand function formulas. Understand function formulas. Use the Average and Sum functions. Use.
VBScript Language. What is VBScript Based on the Visual Basic family of languages Supports object oriented features Interpreted Loosely Typed Implicitly.
DATA RETRIEVAL WITH SQL Goal: To issue a database query using the SELECT command.
Microsoft ® Excel 2010 Core Skills Lesson 3 Using Formulas Courseware #: 3243 Microsoft ® Office Excel 2010.
CIS100 Test Review REACH- CRC © 2011 REACH-CRC. All Rights Reserved.Spring 2011.
CIS100 Test 1 Review REACH Computer Resource Center.
PERFORMING CALCULATIONS Microsoft Excel. Excel Formulas A formula is a set of mathematical instructions that can be used in Excel to perform calculations.
Excel Review By Mr. Griffin Elmira Business Institute.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
Lesson 4: Working with Formulas and Functions. Learning Objectives After studying this lesson, you will be able to:  Create formulas to calculate values,
XP 1 ﴀ New Perspectives on Microsoft Office 2003, Premium Edition Excel Tutorial 2 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
Components of Spreadsheets Computer Applications 1 Obj. 4.01: Understand spreadsheets used in business.
1 Academic PowerPoint Introduction to Spreadsheets – Fundamental Skills 1.
Chapter 2 Excel Fundamentals Logical IF (Decision) Statements Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to spreadsheets IT 8/9 Edmond Chin Microsoft Excel.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 5 Making Decisions.
CIS 100 Test #2 Review 1. EXCEL Functions on Test  SUM, COUNT, COUNTA, MAX, MIN, MEDIAN, MODE, AVERAGE, ROUND, and IF  Possibly Others 
Pages Appendix B: Review of ExcelChapter 3 Market Trends & Analysis IBM 320 CAL POLY POMONA IBM320 Market Trends and Analysis Maha Ghosn.
Resource Review Excel formula basics Demonstrate how to enter manual formulas Examine some of the available functions and their usage Discuss the.
REACH- CRC © 2011 REACH-CRC. All Rights Reserved.Fall 2011 © 2011 REACH-CRC. All Rights Reserved.
Spreadsheet Calculations Formulas & Functions Computer Applications I.
Introduction to Spreadsheets –
Introduction to Spreadsheets
Numeric and Functional
Understanding Spreadsheets
Unit 42 : Spreadsheet Modelling
4.01 Spreadsheet Formulas & Functions
4.01 Spreadsheet Formulas & Functions
Spreadsheets 2 Explain advanced spreadsheet concepts and functions
Introduction to Spreadsheets
Spreadsheets Objective 6.02
Introduction to Spreadsheets –
Mathematical operators
Spreadsheets Objective 6.02
Understanding Spreadsheets
Introduction to Spreadsheet Terminology
Introduction to Spreadsheets
Presentation transcript:

Numeric and Functional

A cell is the intersection of a row and column Each cell in the spreadsheet has a name – The column-name followed by the row-name

A range denotes a block of cells. A range is typed as: – upper-left-cell:bottom-right-cell For example: – A5:C7

A cell can contain one of three kinds of data – Value : yes, we’re talking about numbers – Formula : yes, we’re talking about math things Formula are used to derive information (values or text) from already existing information (values or text) A cell containing a formula will display the value obtained by the formula – not the formula itself! – Text : yes, we’re talking about everything else

A formula is a mathematical expression that combines existing data to produce a result. Formula always begin with an ‘=‘ symbol Formula may contain values, cell-references, operators, parenthesis, and function calls. =10+A5 =B1+B2+B3 =C9/B2 =Max(A1:B3)+10

consider the following formula =3 + A1 What does the “A1” mean? – A1 is a “cell reference” – The value contained in cell A1 is substituted in the above expression – What if cell A1 contains a 3 =a2 =3+9 =3+a2 6 6

All operators take data as input (operands) and produce a result. – Binary operators take two inputs and produce a result – Binary operators in Excel include Addition: (+) as in =10+A5 Subtraction: (-) as in =10-A5 Multiplication: (*) as in =10*A5 Division: (/) as in =10/A5 Exponentiation: (^) as in=10^A5 10 A5 Result +

Question: what does the following formula produce? – = * 2 ^ 2 – 1 – 10 / 5 All operators have a precedence which determines the order of evaluation within a large formula – Addition and Subtraction have lowest precedence – Multiplication and Division have identical mid-level precedence – Exponentiation has the highest precedence Rule for formula evaluation is: – Select the highest-precedence operator and evaluate – If two operators have the same highest-precedence, choose the left-most operator – Repeat until there are no more operators

= * 2 ^ 2 – 1 – 10 / 5 Rule for formula evaluation is: – Select the highest-precedence operator and evaluate – If two operators have the same highest-precedence, choose the left-most operator = * 4 – 1 – 10 / 5 = – 1 – 10 / 5 = – 1 – 2 =150 – 1 – 2 =149 – 2 =147

=( ) * 2 ^(( 4 – 1) – 10 / 5) Parenthesis can change the precedence: – Evaluate sub-expressions in parenthesis first and then proceed. =45 * 2 ^ ((4-1) – 10 / 5) =45 * 2 ^ (3 – 10 / 5) =45 * 2 ^ (3 – 2) =45 * 2 ^ 1 =45 * 2 =90

Formula may also contain function calls. – A function is a way of processing input to obtain output. – Excel has 100’s of built-in functions. We will discuss the most commonly used. Function syntax is: – FUNCTION_NAME ( input1, input2, … ) – Inputs are numbers, cell references, or ranges that the function needs in order to perform it’s job – The entire expression represents the function’s value (or output). 11

Commonly used functions include: – AVERAGE( values ) Computes the average value of the input numbers. Values is typically a range but may be a comma-separated list of items. – MAX( values ) Computes the maximum value of the input numbers. Values is typically a range but may be a comma-separated list of items. – MIN( values ) Computes the minimum value of the input numbers. Values is typically a range but may be a comma-separated list of items. – SUM( values ) Computes the sum of the input numbers. Values is typically a range but may be a comma-separated list of items. 12

13 What should be entered into cells – B13 to obtain classroom average for HW1? – C13 to obtain classroom average for HW2? – D13 to obtain classroom average for HW3? – E6 to obtain the total points for Britney Spears? – E13 to obtain the classroom average for all HW? =AVERAGE(B6:B10) =AVERAGE(C6:C10) =AVERAGE(D6:D10) =SUM(B6:D6) =AVERAGE(E6:E10) =( )/5

Relational operators produce logical values There are exactly two logical values – True – False Comparison operators are binary operators – Each operand must be a number OperatorMeaning <Less than >Greater than =Equal to >=Greater than or equal to <=Less than or equal to <>Not equal to 14

15 Relational operators produce logical values =10 < 30 =30 = 30 =30 <> 30 =35 > 30 =A5 > B5

16 Logical functions process logical values – There are exactly two logical values True False – Logical values can be combined using Conjunction (and) Disjunction (or) Negation (not)

Logical functions include – AND( input1, input2) Each input value must be either true or false. The result of the function TRUE if both inputs are true and FALSE otherwise – OR( input1, input2) Each input value must be either true or false. The result of the function FALSE if both inputs are false and TRUE otherwise – NOT( input ) The input must be either true or false The result of the function is TRUE if the input is false and FALSE otherwise 17

In logical predicates, logical expressions used OPERATORS – The OR was used BETWEEN the operands A OR B In Excel, logical predicates are FUNCTIONS – The OR occurs BEFORE the operands =OR( A5 > 10, B5 > 10) 18

19 Often need to make decisions based on a criteria For example: a company contributes 4% of an employees salary to health care if they are full time and makes no contribution if they are part timers. What to enter?

20 The IF function is used to select exactly ONE value from exactly TWO choices IF( criteria, ifTrue, ifFalse ) – Criteria must be a logical (boolean) value – Function returns ifTrue if criteria is true and ifFalse otherwise =IF(10>5, “YES”, “NO”) YES =IF(10>=20, 30, 50) 50 =IF(A5=10, B5, C5) ??

21 What to enter into cell E10? =IF(B10=“PT”, 0, C10*.04)

22 What to enter into cell D10 to compute the scholarship award for Britney Spears? =IF(OR(B10>=MIN_GPA, C10>=MIN_SAT), award, 0) =IF(OR(B10>=B5, C10>=B6), award, 0)

23 When a cell reference occurs in a formula it may be a – RELATIVE Reference Default References are interpreted with respect to the containing cell When moving/copying relative cell reference, the cell reference changes by the amount moved – ABSOLUTE Reference Must be explicitly written (not the default) The cell reference is always the same, even if it is moved/copied to another cell. – MIXED Reference Either the column-part or the row-part is RELATIVE while the other part in ABSOLUTE

24 To specify absolute referencing for part of a reference, prefix the row and/or column part with a ‘$’ For each of the following cell references, identify it as absolute, mixed, or relative. MixedA$3 Mixed$A3 Absolute$A$3 Relative (default)A3 ModeCell Reference Example

25 ABCDE = D10+D13 14 =B11+B14 Using relative addressing, the formula changes when copied For example, copy the formula from cell A14 to cell C13 The reference B11 in A14 MEANS the cell one col right and two rows up The reference B14 in A14 MEANS the cell one col right and zero rows up Since the MEANING is preserved when copying – the formula must change =??+??

26 ABCDE = D$11+D$14 14 =B$11+B$14 Using relative addressing, the formula changes when copied For example, copy the formula from cell A14 to cell C13 The reference B$11 in A14 MEANS the cell one col right in row 11 The reference B$14 in A14 MEANS the cell one col right in row 14 Since the MEANING is preserved when copying – the formula must change =??+??

27 ABCDE = $B10+$B13 14 =$B11+$B14 Using relative addressing, the formula changes when copied For example, copy the formula from cell A14 to cell C13 The reference $B11 in A14 MEANS the cell in col B 3 rows up The reference $B14 in A14 MEANS the cell in col B in the same row Since the MEANING is preserved when copying – the formula must change =??+??

28 Most times, a formula will be copied into a large number of adjacent cells in order to fill a spreadsheet. Complete the “Cost to Coop”, “Revenue Amount”, and “Item Profit” columns below! Select the pink-highlighted range and copy to the green highlighted area.

29 All cell entries end up being altered in the desired (row-oriented) manner