Using Formulas and Functions

Similar documents
Agenda. Spreadsheet Applications. Spreadsheet Terminology A workbook consists of multiple worksheets. By default, a workbook has 3 worksheets.

Skill Set 3. Formulas

Microsoft Excel 2010 Handout

Microsoft Excel Microsoft Excel

Watch the video below to learn more about creating formulas in Excel. *Video removed from printing pages. Mathematical operators

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note:

Section 3. Formulas. By the end of this Section you should be able to:

Basic tasks in Excel 2013

Open Learning Guide. Microsoft Excel Introductory. Release OL356v1

Using Basic Formulas 4

Chapter 3 Microsoft Office Excel

Moving and copying data

EDIT202 Spreadsheet Lab Prep Sheet

Excel Lesson 3 USING FORMULAS & FUNCTIONS

Excel. Spreadsheet functions

Status Bar: Right click on the Status Bar to add or remove features.

Formulas Learn how to use Excel to do the math for you by typing formulas into cells.

ECDL Module 4 REFERENCE MANUAL

Using Microsoft Excel

MOVING AND COPYING DATA...

In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

What we will learn in Introduction to Excel. How to Open Excel. Introduction to Excel 2010 Lodi Memorial Library NJ Developed by Barb Hauck-Mah

How to Open Excel. Introduction to Excel TIP: Right click Excel on list and select PIN to Start Menu. When you open Excel, a new worksheet opens

Course contents. Overview: Goodbye, calculator. Lesson 1: Get started. Lesson 2: Use cell references. Lesson 3: Simplify formulas by using functions

Using Microsoft Excel

Microsoft Excel Basics Ben Johnson

EXCEL BASICS: MICROSOFT OFFICE 2010

Section 7. Topics Covered

Microsoft Office Excel 2010 Extra

EXCEL BASICS: MICROSOFT OFFICE 2007

PART ONE 1. LAYOUT. A file in Excel is called a Workbook. Each Workbook is made up of Worksheets (usually three but more can be added).

1) Merge the cells that contain the title and center the title

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar

Excel Basics Tips & Techniques

Microsoft Excel 2007

Activity 1 Creating a simple gradebook

Unit 12. Electronic Spreadsheets - Microsoft Excel. Desired Outcomes

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

Introduction to Microsoft Excel

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited EXCEL INTERMEDIATE

Prepared By: Graeme Hilson. U3A Nunawading

INFORMATION SHEET 24002/1: AN EXCEL PRIMER

Basic Excel Forumlas

March 28, Excel Essentials. Jim Snediker. Suzi Huisman

Excel Level 1

Introduction to Excel 2013

Intermediate Excel 2016

THE FORMULAS TAB, CELL REFERENCING,THE VIEW TAB & WORKBOOK SECURITY THE FORMULAS TAB, CELL REFERENCING, THE VIEW TAB & WORKBOOK SECURITY OBJECTIVES

Computer & Careers Mr. Lewis

Advanced Microsoft Excel 2010

Create an external reference (link) to a cell range in another workbook

EXCEL TUTORIAL.

Advanced Excel. Click Computer if required, then click Browse.

Microsoft Excel. Part 2: Calculations & Functions. Department of Computer Science Faculty of Science Chiang Mai University

Application of Skills: Microsoft Excel 2013 Tutorial

What is a spreadsheet?

ADD AND NAME WORKSHEETS

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

Introduction to Excel 2007 for ESL students

Introduction to Excel Workshop

Working with Data and Charts

EXCEL 2003 DISCLAIMER:

Starting Excel application

Definitions. Spreadsheet. Usefulness of Spreadsheets What do people use it for? Spreadsheet Page. Spreadsheet Cell

Excel 2010: Basics Learning Guide

Performing Basic Calculations

Introduction to Microsoft Excel Parts of the Screen

Contents. Spreadsheet Software ITQ Level 1

MICROSOFT OFFICE APPLICATIONS

Lecture- 5. Introduction to Microsoft Excel

MICROSOFT EXCEL TUTORIAL HANDOUT

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:

Introduction. A cell can contain any of the following:

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Introduction to Microsoft Excel 2010

Excel 2010: Getting Started with Excel

Microsoft Excel for Beginners

A Tutorial for Excel 2002 for Windows

MODULE III: NAVIGATING AND FORMULAS

2. Formulas and Series

Office of Instructional Technology

IFTA Staff Excel Training Manual

EXERCISE 1. OBJECTIVES File management. INSTRUCTIONS. Creating Spreadsheets and Graphs (Excel 2003) New CLAIT

Tips for working efficiently with Excel's fill handle

Presenter: Susan Campbell Wild Rose School Division

Introduction to Microsoft Excel

Sage 300 Intelligence Reporting Editing an Existing Report Template to include Dynamic Ranges

MOVING FROM CELL TO CELL

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS...

Create formulas in Excel

TIPS AND TRICKS IN WORKING WITH EXCEL

In Google Sheets simple formulas can help you calculate important data. Learn how to create simple formulas in Google Sheets.

USING FORMULAS AND FUNCTIONS...

3/31/2016. Spreadsheets. Spreadsheets. Spreadsheets and Data Management. Unit 3. Can be used to automatically

Excel Lesson 1 Microsoft Excel Basics

Using Microsoft Excel

Excel 2010-Part. Two

Formulas and Functions

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40

Transcription:

Using Formulas and Functions Formulas... 1 Using operators in formulas... 1 Creating formulas... 2 Good Practice: The easy way to create formulas... 2 Copying formulas... 3 Operators... 3 Formula error messages... 4 Order of Operations... 5 Relative & absolute cell referencing... 6 Relative cell referencing within formulas... 6 Absolute cell referencing within formulas... 6 Mixed cell referencing... 8 Using the SUM Function... 8 University of St Mark & St John

Using operators in formulas Formulas Open a workbook called Formula operators and make sure you are in Sheet1. Click on cell C3 and enter the following which will add the number 3 and 7: =3+7 Press the Enter key and you will see the result displayed in the cell. Click on cell C4 and enter the following which will subtract the number 4 from the number 18: =18-4 Press the Enter key and you will see the result displayed in the cell. Click on cell C5 and enter the following which will divide the number 20 by the number 4: =20/4 Press the Enter key and you will see the result displayed in the cell. Click on cell C6 and enter the following which will multiply the number 4 by the number 9: =4*9 Press the Enter key and you will see the result displayed in the cell. Go to Sheet2 enter a formula for each operator next to the cells using the data from cells C2 and D2 using cell references instead of values: in cell C3 enter in cell C4 enter in cell C5 enter in cell C6 enter =C2+D2 =C2-D2 =C2/D2 =C2*D2 See what happens when you change the value of C2 to 45 Save your changes and keep the workbook open. University of St Mark & St John 1

Creating formulas Open a workbook called Formulas. Click on cell E3. In cell E3 we need to create a formula that will calculate the value of the stock for that particular component. To do this we need to multiply the contents of cell C3 by the content of cell D3. All formulas within Excel start with the 'equal' symbol. Type in the following formula. =C3*D3 TIP: the * symbol means 'times'. Press the Enter key and you will see the result of the calculation in cell E3. Click on cell E3 and you will see the formula displayed in the formula bar above the worksheet. Good Practice: The easy way to create formulas Click on cell E4 and type in the equal sign. Click on cell C4. Type in the * symbol Click on cell D4 and you will see this. Press the Enter key and you see the result of the calculation. This method may seem more complicated at first but when you are creating complex formulas, you will find this method is actually easier and helps to reduce errors, such as typing incorrect cell references. University of St Mark & St John 2

Copying formulas Click on cell E4. Move the mouse pointer to the bottom-right border of this cell and you will notice that the mouse pointer changes to the shape of a small, solid black cross. When you see this shape change press the mouse button and while keeping the mouse button depressed, drag down to cell E9. Release the mouse button and you will see the formula copied down this range. If you look at the formula in each cell of the range the cell references are automatically adjusted to match each row, i.e. row 8 contains the formula =C8*D8, while row 9 contains the formula =C9*D9. Your screen will now look like this. This operation is known as replicating formulae or copying formulae. Save your changes and close the workbook. Leave the Formula operators workbook open. Operators Operators sound complicated. In reality they are items such as: + (plus) - (minus) / (divide) * (multiply) You use operators as part of your formulas. There are other operators but these are the commonly used ones. You can use more than one operator in a formula but make sure that you use brackets to identify which part of the formula you want to be calculated first (see order of operations on page 5). 2 + 3 * 4 = 20 2 + 3 * 4 = 16 The two formulae above will have different results based on the placement of the brackets. University of St Mark & St John 3

Formula error messages When writing formulas it is easy to make a mistake: listed below are some common error messages. ####### The contents of the cell cannot be displayed correctly as the column is too narrow. #REF! Indicates that a cell reference is invalid. This is often displayed when you delete cells which are involved in a formula. #NAME? Excel does not recognise text contained within a formula. #DIV/0! This indicates that you have tried to divide a number by zero (0). Added Extra: Ensure Formula operators is open. Now return to sheet 2 and enter 0 in cell D2 see what happens to cell C5 press Undo This time enter D in cell D2 and see what happens to the results press undo Go to cell C6 and enter =C2*D2D and see what happens to the result press undo Delete row 2 and again see what happens to the results - press undo Save and close the workbook. University of St Mark & St John 4

Order of Operations If more than one operator is used in a formula, there is a specific order that Excel will follow to perform these mathematical operations. This order of operations can be changed by adding brackets to the equation. An easy way to remember the order of operations is to use the acronym: BEDMAS The Order of Operations is: Brackets Exponents (not discussed in today s session) Division Multiplication Addition Subtraction How the Order of Operations Works Any operation(s) contained in brackets will be carried out first followed by any exponents. After that, Excel considers division or multiplication operations to be of equal importance, and carries out these operations in the order they occur left to right in the equation. The same goes for the next two operations addition and subtraction. They are considered equal in the order of operations. Whichever one appears first in an equation, either addition or subtraction is the operation carried out first. More Practice on using brackets Added Extra For more practice on using brackets open the workbook Using Brackets Go to the sheet named Short Courses and enter a formula in cell E2 and enter a formula to find the total cost of the course (with the appropriate use of brackets) Replicate the formula down to E8 Go to the sheet named Badmington place the cursor in F3 and enter a formula to find the total income for the day. Note that you will have to use two sets of brackets for this formula. Replicate this formula down to cell F9. Save and close this workbook. University of St Mark & St John 5

Relative & absolute cell referencing Relative cell referencing within formulas Open a workbook called Cell referencing. The first worksheet within the workbook lets us look at relative addressing. Click on cell E4. We need to insert the formula for multiplying items in column C by the items in columns D. Type in the following formula: =C4*D4 Press the Enter key and you will see the result of the calculation in cell E4. Click on cell E4, and replicate the formula down to cell E12. If you click on cell E5 you will see the following =C5*D5 in the formula bar. If you click on cell E6 you will see the following =C6*D6 in the formula bar. If you click on cell E7 you will see the following =C7*D7 in the formula bar. If you click on cell E8 you will see the following =C8*D8 in the formula bar. If you click on cell E9 you will see the following =C9*D9 in the formula bar. If you click on cell E10 you will see the following =C10*D10 in the formula bar If you click on cell E11 you will see the following =C11*D11 in the formula bar. If you click on cell E12 you will see the following =C12*D12 in the formula bar. As you can see the referencing is completely relative. Absolute cell referencing within formulas Click on the Absolute tab at the bottom of the worksheet. Click on cell D4. We need to enter a formula that will take the price and then add 5% to the price to give a total value. The 5% figure has been entered into cell C15. Type in the following formula into cell D4. =C4*C15 If you do the sums, you will find that this formula displays the correct delivery charge price in cell D4. Click on cell D4, and move the mouse pointer to the bottom-right corner of cell D4, and when the pointer changes to the shape of a small black cross, press the mouse button, and keep it pressed down. Drag down the page to cell D12 and then release the mouse button. University of St Mark & St John 6

The data will look like the following image: As you can see something has gone very wrong, as the 5% delivery charge appears to be 0 for most of the items. Click on cell D5 and you can see what the problem is. The formula contained within this cell is: =C5*C16 Part of the cell reference points to cell C16 (which if you check is empty). The problem is that because of the relative nature of the formula, the component that should always refer to the contents of the cell in C15 (i.e. the delivery charge percentage), in fact moves down as you drag down the screen to extend your calculations. Select the range D4:D12 and press the Del key to delete the cell contents. Click on cell D4 and we will try again. This time type in the following formula. =C4*$C$15 The dollar signs make the reference to cell C15 absolute. The first $ makes the column absolute and the second $ makes the row absolute. Try extending the formula to fill the range down to D12. This time you should find that the delivery charges are calculated correctly. University of St Mark & St John 7

Mixed cell referencing Go to the Mixed tab and click in cell D4 and enter the formula =C4+$C15 C15 is not completely absolute as the row can change when replicated but column C will remain unchanged. So when you replicate the formula down there should be no problem as the column reference (C) has not been changed; however try replicating horizontally to the right and you can see that this was not appropriate as the row references have now changed. You can show the formula view- by using the Accent and Ctrl button on the keyboard and also going to the Formula tab/formula Auditing group/show Formulas button. Look at the other two tabs to see the formulas. Save your changes and close the workbook. More Practice Extra Added Open the workbook Using brackets. Go to the worksheet Badmington 2. Compare the layout of this worksheet with the layout of Badmington worksheet. Enter a formula in D6 to calculate the Income for the day. Replicate the formula. Change the cost of the tickets in cells B2 and B3 and see what happens- save and continue working with the document. Using the SUM Function In the Using brackets workbook go to the SUM worksheet. Place the cursor in cell I4 and enter a formula to add cells B4:H4 using formula =B4+C4+D4+E4+F4+G4+H4 Delete column H (Sunday) and see what happens so it is good practice to use a SUM function when adding a range of cells instead of adding them individually Undo the command so that Sunday column is back to normal. Insert a SUM function in cell I4, =SUM(B4:H4) and replicate down Insert the total sales for all fruits for all days in I12 Insert a formula in I13 to calculate the Income minus expenses =I12 (B13+B14) the brackets are important (refer to BEDMAS). Try changing the rent and the rates values to see the changes. Save and close the workbook. University of St Mark & St John 8