Computer Science 1000 Spreadsheets IV Permission to redistribute or use these slides is strictly prohibited without permission.

Slides:



Advertisements
Similar presentations
Mr Watson’s Introduction to Spreadsheets
Advertisements

Lesson 3 Working with Formulas.
Intermediate Formulas & Functions Instructor: Rachel Baltus.
Slide No. 1 Chapter 1, Unit c Relative vs. Absolute Addressing in a Spreadsheet H Spreadsheet Address H Relative Address H Absolute Address H Examples.
CS1100: Computer Science and Its Applications Building Flexible Models in Microsoft Excel.
Unit 8.4_Lesson 3_CD Resource 3a_Calculating VAT using absolute cell referencing Calculating VAT Using absolute cell referencing.
Enter formulas Use cell references Cell references identify individual cells or cell ranges in columns and rows. Cell references tell Excel where to look.
Microsoft Excel 2010 Test.
Introduction to Excel Formulas, Functions and References.
Microsoft Office XP Microsoft Excel
COM: 111 Introduction to Computer Applications Department of Information & Communication Technology Panayiotis Christodoulou.
Basics Of Spreadsheets Chapter Spreadsheet spreadsheet: grid of cells, each of which can contain text data or numeric data.
Net Pay PF-L2 Objectives: Calculate Net Pay Learning Outcome B-1.
Using Basic FormulasUsing Basic Formulas Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Excel.
Microsoft Excel. What is Microsoft Excel? Spreadsheet program that allows users to organize data, complete calculations, make decisions, and graph data.
© Keith Vander Linden, How did you ever do without it? - from the first VisiCalc ad, 1979.
Chap 4 Formulas and Functions Exploring Spreadsheet Software.
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 Computing for Todays Lecture 8 Yumei Huo Spring 2006.
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms Psych 209.
General Purpose Packages Spreadsheets. What is a Spreadsheet? A Spreadsheet is a computer program used mainly for recording mathematical data such as.
XP Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 2 – Working With Formulas and Functions.
Lesson 16: Working with Formulas and Functions. Learning Objectives After studying this lesson, you will be able to:  Create formulas to calculate values,
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
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.
CTS130 Spreadsheet Lesson 5 Working with Simple Formulas.
XP Abdul Hameed 1 Microsoft Office Excel 2013 Tutorial 2 – Working With Formulas and Functions.
Pairwise Alignment, Part I Constructing the Values and Directions Tables from 2 related DNA (or Protein) Sequences.
 Starting Excel 2003  Using Help  Workbook Management  Cursor Management  Manipulating Data  Using Formulae and Functions  Formatting Spreadsheet.
1 CS 106 Computing Fundamentals II Chapter 4 “Excel Basics for Mac” Herbert G. Mayer, PSU CS status 6/27/2013 Initial content copied verbatim from CS 106.
Excel Spreadsheet basics. Excel Sheets and Books  Spreadsheet: tool to analyze, chart and manage data for personal, business and financial use Worksheet:
Excel CREATING A WORKSHEET AND CHART. Personal Budget Worksheet We will create a personal budget worksheet that shows you income each month and your expenses.
1 Microsoft Excel An Introduction to Spreadsheets Lecture 18.
Introduction to Excel Editing Your Workbook.
Computer Science 1000 Spreadsheets V Permission to redistribute or use these slides is strictly prohibited without permission.
1. First of all we opened up a spreadsheet and started adding the data. 2. To work out the total cost for platinum, you times cell b5*c5 3. To calculate.
CS&E 1111 ExFormulas Building a Spreadsheet Model: Cell Addressing in Excel Objectives: l To understand how formulas are copied l Relative & Absolute Cell.
EXAM REVIEW PROJECT Microsoft Excel Exam 1. EXAM PROCEDURES 10 minutes to review project before starting 60 minutes to complete the exam In this presentation,
Computer Science 1000 Spreadsheets III Permission to redistribute these slides is strictly prohibited without permission.
Chapter 3: Referencing and Names Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Absolute Cell References Unit 2 ICT GNVQ. Lesson Objectives To use an absolute cell reference in a formula To use the website effectivelywww.ictgnvq.org.uk.
Goals Define the role of general information systems Explain how spreadsheets are organized (cells, lists or columns, tables, sheets, [hierarchy], sort,
XP 1 Microsoft Office Excel 2003 Working With Formulas and Functions.
Chapter 4. This presentation covers the following: – Worksheets – Workbooks – Rows and Columns – Cells – Ranges – Relative referencing – Absolute referencing.
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.
NTAP’s Intermediate Excel Training  Multiple Worksheets in one File  Using the Fill Function  Relative versus Absolute References  Charts and Graphs.
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.
 Columns  Rows  Cells  Ranges  Cell addresses  Column headers  Row headers  Formulas  Spreadsheet.
Chapter 3: Referencing and Names Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Excel: Relative and Absolute Cell References, Fill and AutoComplete Computer Information Technology Section 6-7 Some text and examples used with permission.
Computer Science 1000 Algorithms III. Multiple Inputs suppose I ask you to write a program that computes the area of a rectangle area = length * width.
Bruce, Kahea, Salynn Spring 2012 ETEC 750b. Does the excel example format the heading appropriately? Yes? No? Is the heading bold? Yes? No? Is the heading’s.
1 Lesson 18 Getting Started with Excel Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
COMPUTER LITERACY NOTES MS-EXCEL. SPREADSHEETS A spreadsheet is a computer equivalent of a paper ledger sheet. Excel allows you to create spreadsheets.
Unit 8 – Spreadsheets Part 2 Spreadsheets Skills Lesson Part 1.
V- Look Up. Lookup Tables Often, we need to retrieve data that is stored in a table For example, consider these metals and their properties: Metal Modulus.
Chapter 6 Modifying Cell Styles
CS 106 Computing Fundamentals II Chapter 5 “Excel Basics for Windows”
Microsoft Excel.
Copyright © 2014 Pearson Canada Inc.
Microsoft Excel All editions of Microsoft office.
Lesson 4 Using Basic Formulas
Spreadsheets Note: These are condensed keypoints for the purpose of printing for absent pupils. These are the same as the keypoints copied from the earlier.
V- Look Up.
Intro to Excel CSCI-150.
Chapter 6 Modifying Cell Styles
By the end of the lesson, I want you to be able to say…
Presentation transcript:

Computer Science 1000 Spreadsheets IV Permission to redistribute or use these slides is strictly prohibited without permission

Relative References as noted before, Excel seems to do the right thing when it fills when filling from cell D2, the formula =B2*C2 automatically became =B3*C3 when applied to cell D3 how did it know to do that?

Relative References when we make a reference using the syntax defined so far, Excel considers it a relative reference behind the scenes, a relative reference is not defined as a fixed location, but as a location relative to the current cell stated another way, the formula Excel uses in D2 is “the cell two columns behind me times the cell one column behind me”

Relative References hence, when a relative reference is copied to a new cell, the formula is changed to maintain the same spatial relationship in our example, when the formula from D2 is copied to D3, the references are replaced, so that the new references are “two columns behind D2” and “one column behind D2”

Relative References relative references work across rows and columns they even work across multiple sheets and multiple workbooks (coming soon!)

Relative References - Practice suppose that Canada decides to make driving gloves tax-exempt this means that we should compute GST on all items except driving gloves let’s reformat our receipt, so that the GST is computed for each individual item

Step 1: Reformat Table delete the appropriate rows from the table click on a row, right-click, and select Delete add the appropriate columns to the table

Step 2: Compute Tax for each Item two steps 1) determine the tax rate for that item Driving Gloves – 0% Everything else – 5% 2) multiply that tax rate to the item let’s do the first step first that is, let’s fill the Tax column with the appropriate tax rate can we do this, whilst keeping the formula consistent for each row? yes – use an if statement

The If Statement if the item is Driving Gloves tax rate is 0% otherwise tax rate is 5% Turn this into a True/False statement =IF( A2 = "Driving Gloves“, 0.00, 0.05 ) Boolean This is the value of the cell if the item is Driving Gloves This is the value of the cell if the item is not Driving Gloves True Value False Value

Notice that the appropriate choice was made for the tax rate (we’ll update this to the tax amount soon). Now, use the fill handle to fill the other columns with the same formula.

Because of relative referencing, the A2 reference in the first cell updates appropriately. Notice also that because of the if statement, the last cell has a 0% tax rate, as required.

Step 2: Compute Tax for each Item our example is coming, but it’s not quite the same as what was shown originally rather than showing the tax rate in that column, we should show the tax amount solution: multiply the tax rate by the price of the items

Now, fill the rest of the column with the new formula.

While the range is highlighted, format it to Currency.

Step 3: Compute Total for each Item the total for each item is computed as the price + tax using relative references, we need only compute the total for F2, and can fill the rest

Step 4: Compute the Bottom Totals the bottom totals are simply the sum of the prices in each cell note that since we have already computed that total in D7, we can simply fill the others with that formula

References suppose that Canada changes GST to 7% how many cells do we have to change in our previous example? all of the item rows (5 in our example) if this were a long receipt, would be cumbersome These formulas all have to be changed.

References instead of hard-coding 5% into our formula, let’s make it a cell reference we will store the current tax rate in cell H1

References now, replace the value 0.05 in our formula to refer to the tax rate cell

References conveniently, anytime we replace the tax rate, the tax in E2 updates appropriately

References what happens if we fill the other items to update their formula?

References remember: unless explicitly stated otherwise, a cell reference is relative in our formula for F2, referring to H1 meant “the cell one up and three to the right” hence, in the formula for F6, one up and three to the right = H5

Absolute References we can correct the previous example by using an absolute reference prepend the row/column name with $ by doing this, the cell reference is always the same for every filled cell

Absolute References notice that by using an absolute reference, we achieve our desired behaviour updating the tax rate changes all totals appropriately

Mixed Reference note that we have a mixed cell reference row is relative, while column is absolute or vice versa in this case, the relative reference will change during a fill, but the absolute reference won’t example: create a simple table that converts Canadian dollars to three other currencies, for a few specified amounts. furthermore, we only want to specify the formula once, and use fills for the rest

Mixed References For each cell, we want to multiply the left most value (amount) by the amount from its second row (rate). For the amount: - row should be relative - column should be absolute For the rate: - row should be absolute - column should be relative

Mixed References For the amount: - row should be relative - column should be absolute For the rate: - row should be absolute - column should be relative

Mixed References now, we can fill both rows and columns Notice that for the filled cells, the amount always refers to column A, while the rate always refers to row 2. However, the other references update appropriately.

Mixed References in our previous example, could we have used a mixed reference? yes – since our items are always in the same column, we could use a relative column reference