CS105 Fall 20091 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.

Slides:



Advertisements
Similar presentations
Microsoft Office Grade 10 A / B Cahaya Bangsa Classical School (C) 2010 Digital Media Production Facility 16 Microsoft Excel – 07.
Advertisements

Pradeep Velugoti Lakshman Tallam.  Type in the month name “January” in any cell say A1.  Now drag the fill handle to the right to select the range (Do.
Intermediate Formulas & Functions Instructor: Rachel Baltus.
Spreadsheet Software (Advanced Topics) Microsoft Excel.
E ngineering College of San Jose State University Engr.10 1 JKA & KY.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 1Advanced Formatting, Formulas, and Data Management Chapter 2Advanced Functions and Formulas.
BUS1MIS Management Information Systems Semester 1, 2012 Excel: Business Problem Solving Week 4 Lecture 2.
Pre-defined System Functions Simple IF & VLOOKUP.
Chap 4 Formulas and Functions Exploring Spreadsheet Software.
Spreadsheet Simulation
Tutorial 7: Using Advanced Functions and Conditional Formatting
Pradeep Velugoti Lakshman Tallam.  Type in the month name “January” in any cell say A1.  Now drag the fill handle to the right to select the range (Do.
What-If Analysis, Charting, and Working With Large Spreadsheets
Exploring Microsoft Excel 2002 Chapter 3 Chapter 3 Spreadsheets in Decision Making: What If? By Robert T. Grauer Maryann Barber Exploring Microsoft Excel.
Chapter 4 MATLAB Programming Logical Structures Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
CS1100: Computer Science and Its Applications Table Lookup and Error Processing Martin Schedlbauer, Ph.D.
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel 2010.
Tutorial 8: Working with Advanced Functions
1CP102_module 3: spreadsheet2 More features in Excel Selection: a cell, a range, multiple ranges Name a range: to give name to a selected range or multiple.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
Chapter 6 Advanced Functions Copyright 2005 Radian Publishing Co.
© UNT in partnership with TEA1 Principals of Information Technology Phones To Go Case Study: Advanced Spreadsheet Skills.
Advanced Lesson 2: Advanced Data Analysis A PivotTable is a sophisticated tool that creates a concise report summarizing large amounts of data based on.
Last Week: Excel 101 with Prof. Bliley: Workbooks, worksheets, rows, columns Cells: Text, Value, Formulas Formulas, Ranges OK? Survive Alive? Questions?
ADVANCED EXCEL FORMULAS 1 Lesson 8. Named Ranges Name a cell or a range of cells Can make formulas easy to understand =SUM(Sales) instead of =SUM(A2:A16)
Spreadsheets in Finance and Forecasting Week 5: Using Functions.
Week 3 Lab1 Review on Spreadsheets Dina A. Said
Example 16.1 Ordering calendars at Walton Bookstore
CS 105 – Fall CS105 Lab 2 – Introduction to Excel Announcements: Midterm 1 on Sept. 29 th Watch website for info. on conflict exam.
Chapter 14 Simulation. What Is Simulation? Simulation is to mimic a process by using computers.
Excel Spreadsheet basics. Excel Sheets and Books  Spreadsheet: tool to analyze, chart and manage data for personal, business and financial use Worksheet:
1 Use a cell value as a KEY to a table to find and return a specific element to another cell or use in a calculation.
Microsoft Office Excel 2013 ® ® Abdul Hameed Using Advanced Functions and Conditional Formatting.
[1] Intro The following instructions will show you how to create an Excel worksheet that allows students to take multiple choice tests (practice or real)
1 Microsoft Excel An Introduction to Spreadsheets Lecture 18.
# 1# 1 Error Messages, VLookup, Practical Tips What use is VLookup? How do you error check in Excel? CS 105 Spring 2010.
Computer Science 1000 Spreadsheets V Permission to redistribute or use these slides is strictly prohibited without permission.
11 Chapter 2: Formulas and Functions Chapter 02 Lecture Notes (CSIT 104) Exploring Microsoft Office Excel 2007.
By Mrs. Hutson EXCEL 3 – WHAT IF ANALYSIS, CHARTING, AND WORKING WITH LARGE WORKSHEETS.
Logical Calculations, Pivot Tables & Charts Supplemental Resources on Class Website.
ACIS Introduction to Data Analytics & Business Intelligence Business Intelligence Logical Functions.
Chapter 2:Excel. Determining Results with the if Function =IF(logical_test, value_if_true,value_if_false) The IF function has three arguments: – A condition.
1 CS105 Discussion 5 – Variables and If Announcements MP 1 due on Monday Midterm 1 on Tuesday If you need a conflict, request it NOW!!
Excel 2007 Part (3) Dr. Susan Al Naqshbandi
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
 Enhance understanding of logical functions.  Discuss using conditional logic focusing on: ◦ IF ◦ SUMIF(s) ◦ COUNTIF(s) ◦ AVERAGEIF(s)  While waiting.
More Spreadsheets Range Formulas & Empty Cells Logical Functions Lookup Functions.
Are used in higher-level operations, such as conditional and comparison equations to compute interest rates, due dates and payment terms, and financial.
DAY 6: MICROSOFT EXCEL – CHAPTER 2 CONTD. Aliya Farheen September 3, 2015.
Project 2 Completing a Three Dimensional Workspace Using Logical and Lookup Functions Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
- Professor Kurt Brandquist - IT133 Software Applications Unit 6 Seminar: Formulas and Functions Wednesday, 6/22/11.
Microsoft Office 2013 ®® Calculating Data with Formulas and Functions.
DECISIONS AND FUNCTIONS Module 4.2. DECISIONS AND FUNCTIONS Module 4.2.
1 CSE 2337 Chapter 5 Retrieving Data with Lookups.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
RevisionRevision Function in Spreadsheet DATE Returns the serial number of a particular date. Syntax –DATE(year,month,day) year is a number from 1900.
Microsoft ® Excel ® 2013 Enhanced Excel Tutorial 3 Calculating Data with Formulas and Functions.
LOOKUP FUNCTIONS Excel Lesson 10. LOOKUP FUNCTIONS Allow the user to find data in other cells in the spreadsheet and place them in the current cell VLOOKUP:
ACIS Introduction to Data Analytics & Business Intelligence Business Intelligence Logical Functions Part 2.
Computers for Executives Using Functions By IMRAN MUGHAL Press F5 to begin.
OV Copyright © 2011 Element K Content LLC. All rights reserved. Calculating Data with Advanced Formulas  Apply Cell and Range Names  Calculate.
VLOOKUP Function Tech Tuesday January 5, What is VLOOKUP? A Function in Excel (and also in Google Sheets) for finding specific information in.
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.
Relative, Absolute, & Mixed References
Excel IF Function.
CS1100: Computer Science and Its Applications
Logic Function Review.
Operate A Spreadsheet Application Advanced
Lesson 5 Topic 1 – Table Lookup and Error Handling
Presentation transcript:

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 at 7pm Last day to request a conflict for Midterm 1: Thursday 9/24 by 7pm

CS105 Fall Lab Objectives Learn the IF function. Learn to use nested IF. Learn to use Lookup Tables Learn to reference other worksheets in Excel. Learn to create pie chart Go to the course website and download the Excel Worksheet for Lab 3.

CS105 Fall A “real world” Scenario… This spreadsheet contains sales data for a tea manufacturing company which sells 3 different brands of tea. As an executive, you want to find out how much of the revenue comes from each product line, i.e : complete range E3:G26 We’ll use the IF function to do this.

CS105 Fall The IF Function Flowchart Condition True False Result for True Condition Result for False Condition

CS105 Fall How Does IF Work in Excel? Recall from lecture how the formula =IF(condition, result1, result2) works. Excel looks at the condition. If it is true, result1 is returned. If it is false, result2 is returned. The condition must be something that is either true or false; that is, the condition must be BOOLEAN.

CS105 Fall Setting Up Our IF Function Our product names are in column A. If a cell in column A matches cell E2 (Lively Lemon Tea), we want to put its revenue value (column D) in the Sales column for Lively Lemon Tea (column E). Otherwise we want to put 0 in that column.

CS105 Fall Display 0 Product is Lively Lemon Tea True False Display revenue Flowchart for Cell E3 How do we write the IF function? =IF(A3=E2, D3, 0)

CS105 Fall Copying the formula We must modify the relative references to absolute/mixed references before copying Double-click on the fill handle to fill the column for “Lively Lemon Tea.” Use the fill handle to copy the formula to cells F3 and G3. Double-click on the fill handle in F3 and G3 to fill columns F and G. =IF($A3=E$2, $D3, 0)

CS105 Fall Nested IF You can have an IF function inside another IF function Handy if you have more than one condition to test. If “midterm is not this week” then “continue sleeping”, otherwise if “I’m not too sleepy” then “go to class”, otherwise “continue sleeping”

CS105 Fall The Nested IF Flowchart Midterm is on tomorrow Not too sleepy Continue sleeping Go to class True False Continue sleeping

CS105 Fall The Nested IF Flowchart Condition 1 Condition 2 Result for False Condition 1 Result for True Condition 1 and False Condition 2 Result for True Condition 1 and True Condition 2 True False This is not the only way nested IFs can be done. Can you think of some other ways?

CS105 Fall Calculating Eastern Region Sales Suppose we want to compute the total sales for each product in the East region ONLY. If column C contains the value that is “East”, then if the product name (in column A) matches corresponding tea product in H2:J2, display the revenue. Otherwise display 0 Fill in cells in collumn H,I,J.

CS105 Fall The Formula for Cell H3 =IF($C3="East",IF($A3=H$2,$D3,0),0) Double-click on the fill handle to fill the column for “Lively Lemon Tea.” Use the fill handle to copy the formula to cells I3 and J3. Double-click on the fill handle to fill columns I and J.

CS105 Fall AND, OR, and NOT review In lecture we saw AND, OR, NOT condition1 AND condition2 returns TRUE only when Both condition1 and condition2 must be TRUE condition1 OR condition2 returns FALSE only when both condition1 and condition2 must be FALSE. NOT(condition). Returns the logical opposite of condition.

CS105 Fall AND, OR, and NOT in Excel In Excel, AND, OR, and NOT are functions. AND(condition1, condition2). means condition1 AND condition2 OR(condition1, condition2). means condition1 OR condition2 NOT(condition). means the same as the normal meaning of NOT

CS105 Fall Using AND to Check Two Conditions There is an alternative way to write the IF statement in cell H3. We want the revenue to be displayed in H3 if the product is “Lively Lemon Tea” AND the region is “East”: =IF( AND( $C3="East", $A3=H$2), $D3, 0)

CS105 Fall Table Lookups In this course, we use two Excel functions for doing table lookups: HLOOKUP and VLOOKUP For HLOOKUP, we need to know The value that we’re looking up. The range of the table. Where its first row stores ascending values. The row index that stores the looked up result For VLOOKUP, it’s similar, except the table is vertical.

CS105 Fall Find Sale Rating What formula to put in K3? =HLOOKUP(D3,F28:J29,2) What are we missing? Fill in cells K4:K26 Where to put the “$” The lookup value Range address of the table The rating row index

CS105 Fall Working with Multiple Worksheets Suppose we want to calculate the total tea sales… Go to the ‘Statistics’ worksheet. In cell A8, put a formula to add up the range E3:E26 of the 'Tea Data' worksheet. The formula is =SUM('Tea Data'!E3:E26) Use the fill handle to copy the formula to B8 and C8. Compute the grand total of tea sales in cell D8.

Add a pie chart Let’s add a pie chart in “Statistics” worksheet Insert a Pie Chart You should know how to Select data to display in the chart Customize the “look-and- feel” of the chart CS105 Fall

CS105 Fall What you should know? The formula =IF($A3=E$2, $D3, 0) =IF($C3=“East”, IF( $A3 = H$2, $D3, 0), 0) =IF( AND( $C3="East", $A3=H$2), $D3, 0) =HLOOKUP(D3,$F$28:$J$29,2) =SUM( 'Tea Data' !E3:E26) How to add and customize your pie chart  Let Excel do all the hard work for you !

Exercises In columns K, L, and M, compute the sales of the teas for all regions except the west region. In column N, find the sales of the teas for all regions during the months of January and February (Note: Do not split the sales up into multiple columns by Product). Repeat question 2; but this time, do split the sales up into multiple columns by Product. Put these answers in columns O, P, and Q (Note: There are many possible solutions). CS105 Fall