Spreadsheets in Finance and Forecasting Week 5: Using Functions.

Slides:



Advertisements
Similar presentations
Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
Advertisements

CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel.
REACH-CRC. Lookup Functions INDEX-MATCH LOOKUP Database Functions DSUM DMIN DMAX DCOUNT DAVERAGE.
Spreadsheets in Finance and Forecasting Week 4: Using Formulae.
EXCEL.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 1Advanced Formatting, Formulas, and Data Management Chapter 2Advanced Functions and Formulas.
Capital Budgeting and Financial Planning Course Instructor: M.Jibran Sheikh.
33 CHAPTER BASIC APPLICATION SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 1-2 Announcement: QUIZ#02 In Lecture Session # 9 (5.
Q UIZ Direction: Choose the correct answer from the given choices. Begin.
Tutorial 7: Using Advanced Functions and Conditional Formatting
1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making: What If? Robert Grauer and Maryann Barber Exploring.
Exploring Microsoft Excel 2002 Chapter 3 Chapter 3 Spreadsheets in Decision Making: What If? By Robert T. Grauer Maryann Barber Exploring Microsoft Excel.
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making: What If?
Excel Functions. Prof. Leighton2 A Function Performs a predefined operation Performs a predefined operation A function A function Accepts one or more.
Excel Functions By Hani Almohair Microsoft Office 2003.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
Spreadsheets Objective 6.02
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
Chapter 06: Lecture Notes (CSIT 104) 1 Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved.
Exploring Excel 2003 Revised - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making:
CTS130 Spreadsheet Lesson 7 Using Logical and Financial Functions.
2 Explain advanced spreadsheet concepts and functions Advanced Calculations 1 Sabbir Saleh_Lecture_17_Computer Application_BBA.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Naming Ranges Functions COUNT, COUNTA, COUNTIF, COUNTIFS.
Microcomputers Review Excel. Shortcut Keys The key combination that can be used to show formulas is:formulas Ctrl + ` Show Formulas using Shortcut Keys.
Last Week: Excel 101 with Prof. Bliley: Workbooks, worksheets, rows, columns Cells: Text, Value, Formulas Formulas, Ranges OK? Survive Alive? Questions?
Microsoft Excel How to make a SPREADSHEET. Microsoft Excel IT is recommended that you have EXCEL running at the same time. You can try what you are reading.
AGB 260: Agribusiness Information Technology Advanced Functions and Logic.
Microsoft Excel Diane M. Coyle Spring 2009 CS 105.
Spreadsheets in Finance and Forecasting Presentation 8: Problem Solving.
Excel Functions Abby Wiertzema
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. What Can I Do with a Spreadsheet.
Examining data using Microsoft Access Queries Using Criteria and Calculations SESSION 3.2 This section covers specifying an exact match condition in a.
Exploring Office 2003 Vol 1 2/e - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making:
Lesson 7 Using Logical and Financial Functions
CS105 Fall CS105 Lab 3 – Excel: The IF Function Announcements MP 1 will be released on Monday 9/14, due Monday 9/28 by 9pm Midterm 1 on Tuesday 9/29.
11 Chapter 2: Formulas and Functions Chapter 02 Lecture Notes (CSIT 104) Exploring Microsoft Office Excel 2007.
Chapter 4 Financial Functions, Data Tables, and Amortization Schedules
CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel Martin Schedlbauer, Ph.D.
Chapter 6 Creating, Sorting, and Querying a Table
CSCI-235 Micro-Computers in Science Microsoft Excel 2002 Chapter 3 Spreadsheets in Decision Making: What If?
INTRODUCTION TO SPREADSHEETS MICROSOFT EXCEL. Spreadsheets Allows users to perform simple and complex sorting Allows users to perform calculations quickly.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
- Professor Kurt Brandquist - IT133 Software Applications Unit 6 Seminar: Formulas and Functions Wednesday, 6/22/11.
Chapter 4 Decision Making. Agenda Function Goal Seek command AutoFilter command Worksheet operation Printing worksheet.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
 The term “spreadsheet” covers a wide variety of elements useful for quantitative analysis of all kinds. Essentially, a spreadsheet is a simple tool.
DAY 5: EXCEL CHAPTER 2 Sravanthi Lakkimsetty Feb 1, 2016.
Computers for Executives Using Functions By IMRAN MUGHAL Press F5 to begin.
AGB 260: Agribusiness Information Technology Advanced Functions and Logic.
MS-EXCEL PART 3. Use data validation in Excel to make sure that users enter certain values into a cell. Data Validation Example In this example, we restrict.
MSAA PRESENTS: AN EXCEL TUTORIAL
Exploring Microsoft Office Excel 2007
Exploring Microsoft Office Excel 2007
Exploring Microsoft Office Excel 2007
Microsoft Excel.
MS-Excel Part 1.
IT133 Software Applications
Excel Formatting Rules
Exploring Microsoft Office Excel 2007
Unit 42 : Spreadsheet Modelling
Excel Formulas, Macros & More
Spreadsheets 2 Explain advanced spreadsheet concepts and functions
Spreadsheets, Modelling & Databases
Spreadsheets Objective 6.02
Spreadsheets Objective 6.02
in Excel Instructor: Zhe He Department of Computer Science
Presentation transcript:

Spreadsheets in Finance and Forecasting Week 5: Using Functions

Objectives After working through the materials for week 5 you will be able to: Get Help from Excel on a range of issues, including how to use functions and other commands Understand an use a wide range of different functions in Excel, including arithmetic, text, statistical,utility and financial functions

Getting Help from Excel From this point on in the module you will need to consult with Excel help files on a regular basis. To get well-focussed help from Excel you need to turn off the office assistant. Click on Options and de-select the tick bock for “Use the Office Assistant”

The Excel Help Files Now press F1, and these help files appear. You have a full Excel manual This can be accessed via: Contents Answer Wizard Index

Example of a Help File This is an example of one of the help topics. This can be found in “Creating Formulas”, then “Entering Formulas”, then “How formulas create values”

Functions in Excel A function can be thought of as a tool for doing a specific task. For example, instead of typing in a string of additions: A1+A2+A3+A4, we can use the SUM function: SUM(A1:A4)

Types of Functions CategoryFunction examples Purpose Time NOW( ) WEEKDAY Provides dates and times etc. Maths EVEN RAND( ) Calculation Tools Statistical AVERAGE COUNT Summary of Data Database DMIN DMAX Selection and manipulation of data Financial PMT PV Monetary and financial formulae Logical AND, OR IF To make decisions

Time Functions Two interesting functions are: NOW() This yields the current date and time WEEKDAY (Date) This yields a number corresponding to the date input 1=Sunday, 2=Monday, 3=Tuesday etc.

Time Functions We can use the function TEXT to extract the day of the week: =TEXT( NOW(), “dddd”)

Time Functions There are many more functions to investigate Try looking up: DATEDIF WORKDAYS YEARFRAC

Arithmetic Functions There are two functions for dealing with decimals: TRUNC This truncates a number at the decimal point, removing the fractional part. ROUND This rounds a number, either rounding up or rounding down, according to convention The format is ROUND( value, number of dec. places required)

Arithmetic Functions Examples: suppose A5 contains the number TRUNC TRUNC(A5) yields the answer 3. ROUND ROUND(A5, 1) gives the answer 3.3 ROUND(A5, 2) gives the answer 3.26

Arithmetic Functions Functions related to division: QUOTIENT This gives the whole number part of the answer when one number is divided by another. MOD This gives the remainder when one number is divided by another

Arithmetic Functions Examples: QUOTIENT Format for this function is: QUOTIENT(numerator, denominator) e.g QUOTIENT( 27, 4) gives the answer 6 MOD Format for this function is MOD(Numerator, denominator) e.g. MOD(27,4) gives the answer 3

Functions Examples Download the spreadsheet: Functions Examples.xls The first Challenge is to create a section of a spreadsheet which inputs two dates and calculates the difference between the dates in weeks and days Action Point

Utility Functions 1 These functions are useful in telling you information about the data in the spreadsheet cells COUNT this counts how many cells in the range contain numbers COUNTA this counts how many cells within a particular range contain some sort of information COUNTBLANK this counts how many cells within a particular range are blank

Counting Cells COUNT(A1: D4) gives: COUNTA(A1:D4) gives: COUNTBLANK(A1:D4) gives:

Counting Cells COUNT(A1: D4) gives: 10 COUNTA(A1:D4) gives: 14 COUNTBLANK(A1:D4) gives: 2

Utility Functions 2 These functions are useful in telling you information about the data in specific spreadsheet cells. They return TRUE or FALSE ISBLANK tells you whether a specific cell is empty ISNUMBER tells you whether a specific cell contains a numerical entry ISTEXT Tells you whether a particular cell contains text

What’s in the cell? ISBLANK(D4) gives: ISNUMBER(B1) gives: ISTEXT(A4) gives:

What’s in the cell? ISBLANK(D4) gives: FALSE ISNUMBER(B1) gives: TRUE ISTEXT(A4) gives: TRUE

Functions Examples The next page on the Functions Examples spreadsheet challenges you to count the numbers of different items in cells: Action Point

Look Up Tables Look Up Tables are one of the most useful features of Excel. These tables allow you to select from of a list of options using a particular value as a reference The simplest of the functions is LOOKUP LOOKUP(cell, range)

Look Up Tables For example: A company sell 4 different sizes of roofing slate: A, B,C, D, E Costs per slate are given in the look-up table opposite We read off the cost for D, by looking up the value in the table SizeCost A£0.45 B£0.70 C£0.95 D£1.10 E£1.25

Look Up Tables The contents of the look-up table is place in cells B3 to C7 In cell B10 we have a type of slate for which we need to know the cost In cell C10 we put: =LOOKUP(B10, B3:C7) Action Point

The LOOKUP function The other use of this function is to look up a cost in a table to find an amount For example if we are willing to spend £1.00 per slate, what is the best quality that we can afford? What function should be put in this cell to look up the cost in the table above? Action Point

The LOOKUP function The other use of this function is to look up a cost in a table to find an amount For example if we are willing to spend £1.00 per slate, what is the best quality that we can afford? Solution: LOOKUP(G10,G3:H7) NB The answer is C because as Excel reads down the table that is the best quality for the price.

The LOOKUP function The table must be in alphabetical or numerical order There are two columns of figures We look down column 1, find the and then read off the value in column 2

VLOOKUP VLOOKUP is an extension of the idea, allowing you to create blocks of cells which contain different lookup values for different circumstances

VLOOKUP The simplest format for VLOOKUP is VLOOKUP(cell, range, column number) This looks up the value required in the first column of table, and reads the value from the column specified VLOOKUP (B10, B3:D7, 3) will give the New Price, by looking up D in the first column, and reading across to column 3

HLOOKUP HLOOKUP has the same kind of structure, except that the table is formatted horizontally instead of vertically Format:HLOOKUP(cell, table, row) HLOOKUP(B10, C3:G6, 4) will give the 2001 price for the slate

Naming Cells and Ranges We have seen previously that it is possible to label cells with names. It is equally possible to label ranges of cells in the same way Highlight the cells Click on here and insert a name

Using Name Ranges in Formulae The highlighted area of the table has been called Slates To get the old price in the cost cell: VLOOKUP(B11, Slates, 2) To get the new price in the cost cell: VLOOKUP(B11, Slates, 3)

Functions Examples The Functions Example spreadsheet contains a worksheet called dresses. You should now create the lookup formulae for this page. Action Point

Other Table Functions MATCH This looks for a specific value in a single column or row, and returns a number that indicates the position in an ordered list. e.g MATCH( D5, D1:D10) returns the position that D5 would have if the set of values D1 to D10 were placed in ascending order If the matching is done with text, MATCH yields the position of the text in the list.

MATCH MATCH(B6,B3:B7) yields the value 2, because that is the second value if the goods were placed in order of price. However, MATCH(“Tie”, C3:C7) also yields the value 2, because Tie is the 2 nd item in the unordered list.

Other Table Functions INDEX This function returns the value of a cell which is located within a named range of cells INDEX(range, row, column) gives the contents of a particular cell at the intersection of the row and column of a block of cells

INDEX INDEX(Slates, 3,2) gives the value £0.70, as it is at the intersection of row 3 and column 2 of the Slates Range of Cells

Logical Functions IF This is a very important function, as it allows us to make conditional statements. The Function has the structure: IF(condition, statement 1, statement 2) If the condition is satisfied, statement 1 is executed, otherwise statement 2 is executed. For example, IF(A2>40, “Pass”,”Fail”)

Logical Functions COUNTIF This function combines the idea of an “if” statement with the counting functions Format:COUNTIF( range, condition) Example: COUNTIF(A1:E5, “>100”) counts how many cells in the block A1 to E5 contain values greater than 100

Functions Examples The Functions Example spreadsheet contains a worksheet called Dice. Create a formula to calculate the values required. Action Point

Logical Functions AND and OR These functions are important conditional test tools, which allow us to combine events: To test whether A1>0 and B1>0, we would use the construction: AND(A1>0, B1>0) if both were true the AND function would yield a TRUE result. OR(A1>0,B1>0) yields a true result if either A1>0, B1>0 or both A1>0 and B1>0.

Putting it together: Look at the function: IF(OR(A1<0,B1<0),”One is negative”,A1*B1) This tests whether either A1 or B1 is negative, and if so, puts the a message in the cell to that effect. On the other hand, if both are positive, the two values are multiplied together and the answer put in the cell.

Functions Examples The Sales Returns Worksheet gives the performance figures of 5 salespeople during 2000 and 2001; you are asked to create formulae to test a variety of conditions. Action Point

Text Functions CONCATENATE This is a function used to glue together two or more pieces of text as output in a cell CONCATENATE(“The answer is “, C5) If the numerical value of cell C5 is 3.142, then the text created would say: The answer is An alternative is to use the ampersand sign: & =“The answer is “ & C5

Text Functions MID This function reads a piece of text and extracts part of it. The format is: Mid( text, start, number of letters) For example, suppose the cell A5 contained the word “Spreadsheet” Mid(A5,3,5) would yield the word “reads”

Text Functions Example Suppose that: Cell A1 contains the text: SPREADSHEET Cell A2 contains a whole number from 1 to 11. At the moment the value is 5. What code would you put in cell B10 so that the text would read: The letter in position number 5 is A and that when you put 9 in B10, the text reads: The letter in position number 9 is E

Text Functions Example Cell A1 contains the text: SPREADSHEET, Cell A2 contains a whole number from 1 to 11. In cell B10 the code might read: = “The letter in position number “ & A1 & “ is “ & MID(A1,A2,1) Alternatively: = CONCATENATE(“The letter in position number “, A1, “ is “, MID(A1,A2,1))

Statistical Functions We have already used some of these functions: MINgives the minimum value from a range, MAXgives the maximum value from a range SUMsums a range of values STDEVreturns the standard deviation AVERAGE returns the average of the values e.g. MAX(C2:C40),SUM(A1:D300) etc.

Financial Functions DB This function calculates the depreciation of an asset for the fixed-declining depreciation period. The format is DB(initial cost, salvage, life, period) For example: DB( 5000, 1000, 10, 3) calculates the amount that needs to be written off in year 3 of a car bought for £5000, and expected to have a salvage value of £1000 at the end of 10 years

Financial Functions PMT This function calculates the payment for a loan based on constant payments at constant interest rate Format: PMT(int. rate, no. of payments, pres. value) For example: PMT(8%/12, 12, 10000) calculates the monthly payments on a loan of £10000 that must be paid back in 12 months at a rate of 8% per annum.

Financial Functions FV This is the future value of an investment based on regular constant payments and a constant interest rate. Format: FV(int. rate, no. of payments, payment value) For example: FV(4%, 25, -2500) the future value of an investment in which you make 25 yearly payments of £2500 and a constant interest rate of 4% per annum. NB the value of the payments is required to be accounted as negative, as these are outgoing payments.

Functions Examples The Financial page of the worksheet challenges you to create the financial functions to work out the solutions to a variety of problems. Action Point

More Functions Excel contains literally hundreds of functions, some of which are quite similar to, and may of which are very different from the ones in this lecture. In particular, as you look through the Excel help files, you will notice that we have been using only one form of these functions; each one has many variants.