Basic Formulas in Excel. Why use cell names in formulas instead of actual numbers?



Similar documents
Formulas & Functions in Microsoft Excel

Formulas & Functions in Microsoft Excel

Creating Basic Excel Formulas

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

Summary of important mathematical operations and formulas (from first tutorial):

Excel Spreadsheet Activity Redo #1

Step Sheet: Creating a Data Table and Charts

What is Microsoft Excel?

Microsoft Excel Tips & Tricks

The Center for Teaching, Learning, & Technology

Microsoft Excel 2010 Part 3: Advanced Excel

PA Payroll Exercise for Intermediate Excel

Excel 2007: Basics Learning Guide

Performing Simple Calculations Using the Status Bar

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

Getting Started with Excel Table of Contents

Excel Level Two. Introduction. Contents. Exploring Formulas. Entering Formulas

Q&As: Microsoft Excel 2013: Chapter 2

Microsoft Excel 2010 Tutorial

Excel Basics By Tom Peters & Laura Spielman

Excel 2007 A Beginners Guide

Introduction to Microsoft Excel 1 Part I

APPLYING BENFORD'S LAW This PDF contains step-by-step instructions on how to apply Benford's law using Microsoft Excel, which is commonly used by

Excel 2003 A Beginners Guide

Excel 2007 Basic knowledge

To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click.

This activity will show you how to draw graphs of algebraic functions in Excel.

Using VLOOKUP to Combine Data in Microsoft Excel

MICROSOFT EXCEL Formulas, Functions, & Macros. Documented by Vincent J. Yanusauskas Computer Training Coordinator

Basic Microsoft Excel 2007

MICROSOFT EXCEL FORMULAS

Easy Calculations in Excel

Spreadsheets Hop-around Cards

Excel Project From the Start menu select New Office Document. If necessary, click the General tab and then double-click Blank workbook.

Introduction to Microsoft Excel 2010

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Creating a Gradebook in Excel

Creating Personal Web Sites Using SharePoint Designer 2007

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Basic Excel Handbook

Intro to Excel spreadsheets

Bank Reconciliation: Improvements for the Shelby v5 Spring 2006 Release

ACADEMIC TECHNOLOGY SUPPORT

Microsoft Excel Introduction to Microsoft Excel 2007

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

This activity will guide you to create formulas and use some of the built-in math functions in EXCEL.

Our goal, as journalists, is to look for some patterns and trends in this information.

USING EXCEL ON THE COMPUTER TO FIND THE MEAN AND STANDARD DEVIATION AND TO DO LINEAR REGRESSION ANALYSIS AND GRAPHING TABLE OF CONTENTS

Graphing Parabolas With Microsoft Excel

Making a Chart Using Excel

Introduction to MS EXCEL 2007 Data entry & formatting Using formulas & functions Presenting data with charts Database features in Excel

Using Formulas, Functions, and Data Analysis Tools Excel 2010 Tutorial

Statgraphics Getting started

SECTION 2-1: OVERVIEW SECTION 2-2: FREQUENCY DISTRIBUTIONS

MICROSOFT EXCEL STEP BY STEP GUIDE

How to test and debug an ASP.NET application

Using Excel to Execute Trigonometric Functions

Microsoft Excel: Exercise 5

Excel 2003 Tutorial I

INTRODUCTION TO EXCEL

Creating A Grade Sheet With Microsoft Excel

Task Card #2 SMART Board: Notebook

Interactive Excel Spreadsheets:

Introduction To Microsoft Office Excel Bob Booth July 2008 AP-Excel8

Excel. Microsoft Office s spreadsheet application can be used to track. and analyze numerical data for display on screen or in printed

Microsoft Excel Basics

How To Use Excel With A Calculator

Introduction to Microsoft Excel 2007/2010

Everyday Excel Stuff Excel Day Planner Organizer Reference Guide

Using Microsoft Project 2000

A User Manual for Benefit Cost Analysis Using Microsoft Excel

Microsoft PowerPoint 2010 Handout

Formatting Formatting Tables

EXCEL SPREADSHEET MANUAL

Tutorial Microsoft Office Excel 2003

Dealing with Data in Excel 2010

How to Concatenate Cells in Microsoft Access

Merging Labels, Letters, and Envelopes Word 2013

warpct.com Working with MS Excel 2003 Workbook courseware by WARP! Computer Training

Advanced Excel 10/20/2011 1

Computer Skills Microsoft Excel Creating Pie & Column Charts

DATA VALIDATION and CONDITIONAL FORMATTING

Essential Skills for Spreadsheets Microsoft Excel TR Leger Adult Literacy and Employment Preparation Program

EXCEL EXERCISE #8: Consolidating and Linking Spreadsheets

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Macros in Word & Excel

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

How to make a line graph using Excel 2007

Excel Formulas & Graphs

3. Saving Your Work: You will want to save your work periodically, especially during long exercises.

EXCEL FINANCIAL USES

Table of Contents TASK 1: DATA ANALYSIS TOOLPAK... 2 TASK 2: HISTOGRAMS... 5 TASK 3: ENTER MIDPOINT FORMULAS... 11

EXCEL 2007 VLOOKUP FOR BUDGET EXAMPLE

Creating a PowerPoint Poster using Windows

Computer Training Centre University College Cork. Excel 2013 Level 1

In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.

Excel Guide for Finite Mathematics and Applied Calculus

Creating and Using Forms in SharePoint

Using Excel 2000 to Create a Weighted-Grade Grade Book

Transcription:

Understanding formulas Basic Formulas in Excel Formulas are placed into cells whenever you want Excel to add, subtract, multiply, divide or do other mathematical calculations. The formula should be placed in the cell where the result of the calculation is to appear. Place the formula by clicking in the appropriate cell and typing it in. Many formulas look very much like you would write them on paper with the exception of the location of the equal sign. For example, to add the contents of cells D2, D3 and D4, click in cell D5 (or wherever you wish the result of the calculation to appear) and type =D2+D3+D4. All formulas start with an equal sign. This indicates that the cell selected will be equal to the result of a specified calculation. For example, clicking in a cell and typing =A1+A2 means that the value of the cell you selected will equal the value of cell A1 plus the value of cell A2. Similarly, clicking in a cell and typing =B3-C3 means that the value of the cell selected will equal the value of cell B3 minus the value of cell C3. Formulas can be simple or complex. If your formula contains multiple steps however, see the section on mathematical precedence below. Why use cell names in formulas instead of actual numbers? When cell names are used in a formula instead of actual numbers, the calculation is based on whatever value is in those cells at any given time. The calculation will always be correct, even if the contents of the cells that are being calculated changes. In fact, formulas are often added to cells BEFORE there are any numbers to calculate. For example, a spreadsheet for the family budget can be created in January for the entire year ahead. As monthly expenditures are added, the totals will continually update to reflect the changes. Formula Basics Remember to enter the formula in the cell where you want the result of the calculation to appear. Always start with an = Formulas do not contain any spaces.

Use the following mathematical operators: (The examples below use 8 as the value in cell A1 and 2 as the value in cell B1) Addition...+... example: =A1+B1 (results in 10) Subtraction...-... example: =A1-B1 (results in 6) Multiplication..*... example: =A1*B1 (results in 16) Division.../... example: =A1/B1 (results in 4) Exponentiation.^... example: =A1^2 (results in 64) When you have finished entering the formula click on the green checkmark on the formula bar. Once you have done so, the cell will display the result of the formula s calculation while the formula bar will continue to display the formula. Moving to or clicking into another cell will also allow the result of the calculation to show in the cell. To display the result of your formula as a percentage, click in the cell with the formula and press the % icon on the toolbar. NOTE: If your formula involves multiple steps, remember that the rules of mathematical precedence apply. Calculations will be done in the following order: 1. Any calculation enclosed in parenthesis 2. Exponentiation 3. Multiplication and division 4. Addition and subtraction For example: If cell A1=8, cell B1=2 and cell C1=3, then =A1+B1*C1 would result in an answer of 14. (B1 multiplied by C1 with the result added to A1.) If the formula is changed to =(A1+B1)*C1, A1 would first be added to B1, and the result would be multiplied by C1, giving an answer of 30. Range Names Any group of cells that are right next to each other in a column or row, or together in a block is called a range. Cell ranges are referred to by name just as individual cells are. To write a range name start with the name of the first cell in the range, add a colon, then add the name of the last cell. For example, the range of cells including A1, B1, C1, D1, E1 and F1 would be written as A1:F1. The colon

indicates that you are referring to cells A1 and F1 and all the cells that fall between them. Sometimes formulas need to be applied to a range of cells, such as when you need to add up a long column of numbers. Typing in each individual cell name would be tedious and time consuming. In many cases, you can use the range name with a specialized formula known as a function rather than listing the names of each individual cell. Using functions Excel has many pre-defined formulas known as functions. Listed below are some of the more common functions that perform calculations on cell ranges. (All the examples use the range A1:G1 as an example) =SUM(A1:G1)... Adds together all the cells in the range =PRODUCT(A1:G1)... Multiplies all the cells in the range =AVERAGE(A1:G1)... Averages all the cells in the range =MEDIAN(A1:G1)... Returns the median value in the range =MODE(A1:G1)... Returns the most frequently occurring value in the range =MAX(A1:G1)... Returns the maximum value within the range =MIN(A1:G1)... Returns the minimum value within the range =COUNT(A1:G1)... Returns the number of cells in the range that contain numerical values. This is most often used in combination with other functions to perform more complicated calculations. Adding cell names to formulas and functions by clicking As a timesaver, cell or range names can be added to formulas by clicking on them with the mouse, or moving to them with the arrow keys on the keyboard. For example, to add together cells A1 and B1, move to C1 (or wherever you want the result of the calculation to appear) and type the =. Then use the mouse to click in A1, type the +, click in B1, and hit the enter key. Excel inserts a cell name into the formula each time you click on one. To insert a range name rather than individual cell names, type =, enter the appropriate function (SUM, AVERAGE etc.) and add the beginning parenthesis. Click in the first cell in the range and drag it to the last

cell in the range. Excel will automatically insert the range name into the function. Hit the enter key to finish. Auto Sum Because adding up long columns of numbers is so common in spreadsheets, Excel provides a special shortcut, called AutoSum, right on the toolbar. To use AutoSum, all the cells to be added together should be right next to each other in a row, column or block. Auto Sum works the best when the cell containing the formula is right below or right next to the cells being added. To use AutoSum, click in the cell where the sum is to appear, then click on the AutoSum icon on the toolbar. Excel will draw a dotted line box around the cells that it thinks you are trying to add up. If the box includes the correct cells, either click the green check on the formula bar, or hit the enter key. Excel will automatically insert the SUM function with the correct range name into the cell. If the box does not enclose the correct cells, simply click in the first cell of the correct range and drag the mouse to the last cell in the range. The box will be redrawn around the cells you select. Hit the enter key or the green check on the toolbar to finish. Copying formulas and functions If you want to apply the same type of formula as an existing one to a similar group of cells, the original formula can sometimes be copied into a new cell. To copy a formula, click in the cell that contains the formula you wish to copy, then choose Edit Copy from the menu bar. Next, click in the cell where the formula is to be copied to and choose Edit Paste. (If the cell you wish to copy the formula into is right next to the original cell, you can also move the mouse to the small black square at the bottom right corner of the cell with the formula. Your cursor will change to a small black +. Once you see the +, drag with the mouse over to the cell you wish the formula to be copied to.)

Understanding how formulas are copied When you copy a formula, excel does not copy the cell or range names in the original formula. Instead, excel remembers where those cells where in relation to the cell where the formula resides. For example: cell A5 contains a formula that adds up cells A1, A2, A3 and A4. Once that formula is copied, Excel remembers the original formula as adding up the four cells directly above the cell with the formula. When that formula is pasted into cell B5, Excel inserts the names of the four cells directly above B5. This is called a relational reference. Absolute references In the example below, the formula in cell B10 is =B1-B8. (The amount allowed in the monthly budget minus the amount actually spent that month.) If you copy this formula into cell C10, the formula will be changed to =C1-C8 (the cell 9 spaces above the formula minus the cell 2 spaces above the formula.) This would be incorrect since cell C1 is an empty cell. In this case, the formula to be copied needs an absolute reference a reference to a cell that will not change when copied. To insert an absolute reference, add $ before both the letter and the number of the cell that is to remain unchanged when copied. In the example above, =B1- B8 would be changed to =$B$1-B8. When this new formula is copied, Excel will keep B1 as B1 and change only the B8 to the cell that is in the same place in relation to the cell with the formula. In this example, the copied formula would become =$B$1-C8.

Troubleshooting and error messages ####### appears in a cell: If a cell is filled with pound signs, it means that the number that is supposed to be in the cell is too big for the space provided. To correct this, simply resize the column that the cell is in. You ve typed in a formula but only the formula itself displays in the cell, not the result of the calculation: Make sure you started the formula with an equals sign (=). You ve typed in a formula and #NAME! appears in the cell: Excel doesn t understand the function name. Check your function name and its spelling. You ve typed in a formula and #DIV/0 appears in the cell: This error message appears when you enter a division formula but the cell that contains the divisor is either blank or a zero. You ve typed in a formula and #VALUE! appears in the cell: Occurs when the wrong type of argument or operand is used. For example, entering text where a number is called for, or putting a range name in a function that requires a single value.