MONTEGO BAY HIGH SCHOOL INFORMATION TECHNOLOGY THE EXCEL IF FUNCTION.

Slides:



Advertisements
Similar presentations
MICROSOFT EXCEL CALCULATIONS.
Advertisements

Excel IF Functions The IF function is one of Excels most useful and most used functions. What it does, basically, is test to see whether a certain condition.
The IF function Bernard Liengme. Objectives To know how to: Construct a condition using the comparison operators =, >=, >, ; Construct a formula using.
CIS100 Test 2 Review REACH CRC © 2011 REACH CRC. All Rights Reserved.Spring 2011.
REACH CRC © 2011 REACH CRC. All Rights Reserved.Fall 2011.
What IF?.
Computer Science & Engineering 2111 IF and Boolean Functions 1 CSE 2111 Lecture-IF and Boolean Functions.
CS&E 1111 ExIFs IFs and Nested IFs in Excel Objectives: Using the If function in spreadsheets Nesting If functions.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program.
Pre-defined System Functions Simple IF & VLOOKUP.
Programming TBE 540 Farah Fisher. Objectives After viewing this presentation, the learner will be able to… Given a task, create pseudocode Given pseudocode,
Selection Logic Building decision-making into programs.
Chap 4 Formulas and Functions Exploring Spreadsheet Software.
Week 10 Recap CSE 115 Spring For-each loop When we have a collection and want to do something to all elements of that collection we use the for-each.
If Statements Sections 1.25, Control Structures o All code thus far executes every line of code sequentially o We want to be able to repeat,
1 Excel Lesson 5 Using Functions Microsoft Office 2010 Introductory Pasewark & Pasewark.
Determine whether each curve below is the graph of a function of x. Select all answers that are graphs of functions of x:
Programming with MATLAB. Relational Operators The arithmetic operators has precedence over relational operators.
1 Excel Lesson 5 Using Functions Microsoft Office 2010 Introductory Pasewark & Pasewark.
Spreadsheets Objective 6.02
XP Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 2 – Working With Formulas and Functions.
Theme 3: Data Dynamics Topic 18: Analyse data using Excel Chapter 3.3. Page 185 – 199 Analysing spreadsheet data.
Data Analysis Formula and Functions. Formula and functions A function is a calculation in a spreadsheet that has or can be memorized. There are many different.
1 Spreadsheets SELECTION. 2 Aims  Understand the principles of selection in Excel  Examine the basic IF statement format  Look into Nested IF statements.
LOGO Chapter VI Advanced Functions 1. LOGO Overview  INTRODUCTION  NESTED FUNCTIONS  LOOKUP  VLOOKUP  COUNTIF  SUMIF  IF  ROUND  THE PMT, IPMT.
Python Programming Using Variables and input. Objectives We’re learning to make use of if statements to enable code to ask questions. Outcomes Build an.
Python – Making Decisions Lecture 02. Control Structures A program that only has one flow is useful but limited. We can use if statements to make these.
Spreadsheet Formulae Some Common Functions =IF(condition, true, false) Returns one value if a condition you specify evaluates to TRUE and another value.
Logical Operators Jumps Logical Operators The different logical operators found in Java Rational Operators The different rational operators found in Java.
PAGES:51-59 SECTION: CONTROL1 : DECISIONS Decisions.
Lesson 5: Working with Formulas and Functions Logical and 3D Formulas.
CS&E 1111 ExLogic Microsoft Excel Logical Functions Objectives: Using Boolean Logic in Spreadsheets l Relational operators l Boolean operators –Functions.
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.
11 Chapter 2: Formulas and Functions Chapter 02 Lecture Notes (CSIT 104) Exploring Microsoft Office Excel 2007.
Unit 4, Lesson 4 Using Function Formulas. Objectives Understand function formulas. Understand function formulas. Use the Average and Sum functions. Use.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #5: Programming Structures IE 212: Computational Methods for Industrial Engineering.
Review, Pseudocode, Flow Charting, and Storyboarding.
Holt Algebra Graphing and Writing Inequalities Warm Up Compare. Write, or =. 1. − < > > = Tell whether the inequality x
Greatest Integer/Absolute Value Functions
1 Excel Lesson 3 Using Functions Microsoft Office 2010 Introductory Pasewark & Pasewark.
Are used in higher-level operations, such as conditional and comparison equations to compute interest rates, due dates and payment terms, and financial.
Chapter 2 Programming with PHP Part 2. handle_form.php Script 2.3 on pages 46 cript_02_03/form.html
The Department of Engineering Science The University of Auckland Welcome to ENGGEN 131 Engineering Computation and Software Development Lecture 2 Debugging,
Inequality Signs < means “is less than”  means “is less than or equal to” > means “is greater than”  means ”is greater than or equal to” Reading Inequalities.
Microsoft Excel Prepared by the Academic Faculty Members of IT.
Chapter 2 Excel Fundamentals Logical IF (Decision) Statements Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CHAPTER 3 CONTROL STRUCTURES ( SELECTION ) I NTRODUCTION T O C OMPUTER P ROGRAMMING (CSC425)
USING CONDITIONAL CODE AMIR KHANZADA. Conditional Statement  Conditional statements are the set of commands used to perform different actions based on.
Spreadsheet Calculations Formulas & Functions Computer Applications I.
LESSON 3 Working with Functions, Formulas, and Charts.
What is Income? What is income? 2 Income is any money you earn plus any other money coming in to you! 3.
Identities, Contradictions and Conditional Equations.
1 Introduction to the Excel ‘IF’ Function. 2 What is the ‘IF’ Function? The calculation is based on a condition that is either TRUE or FALSE. An Excel.
SELECTION CONTROL STRUCTURE Prepared by: Careene McCallum-Rodney.
Excel Lesson 5 Using Functions
Sequence, Selection, Iteration The IF Statement
Comparison Operators Relational Operators.
Introduction To Robot Sensors
Introduction To Robot Decision Making
Programming with PHP Part 2
Pages:51-59 Section: Control1 : decisions
Logical Operations In Matlab.
Visual Basic – Decision Statements
Chapter 5: Control Structure
Introduction To Robot Decision Making
JavaScript conditional
There many situations comes in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations.
Functions theory © EIT, Author Gay Robertson, 2017.
Pages:51-59 Section: Control1 : decisions
Chapter 6 Lesson 3.
Presentation transcript:

MONTEGO BAY HIGH SCHOOL INFORMATION TECHNOLOGY THE EXCEL IF FUNCTION

OBJECTIVES Students should be able to.. 1 Design logical test conditions 2Use the If Function to manipulate figures in a spreadsheet

The IF Function The IF function is one of Excel’s most useful and most used functions. What it does, basically, is test to see whether a certain condition is true or false. If the condition is true, the function will do one thing, if the condition is false, the function will do something else.

The Syntax The basic form or syntax of the function is:syntax =IF(logic test, value if true, value if false)

The Logic Test Excel's logic functions always involve a comparison between two values. The logic test can only return a true or false answer, depending on the condition tested. The Comparison Operators The comparison operators that can be used in a logic test are: Equals ( = ) Less than ( ) Greater than or equal to ( > = ) Not equal to ( )

Logical Test Cont…. Examples The logic test can be a comparison between two cell references such as: A3 > B3 Or the logic test can be a comparison between a cell reference and a fixed amount such as: C4 < = 100

Performing calculations The IF function can perform different calculations depending on whether the function returns a true value or not..

Eg =IF(A4>=100,Value_if_true,Value_if_false) If The value in Cell A4 is > 100 or = to 100 (the logical test is true and Value_if_true will be displayed If the value in cell A4 is > 100 the logical test is false and value_if_false will be displayed.

The example below uses different deduction rates in its calculations based on employee income. =IF(A5 < 29701, A5 * 15%, A5 * 25%) The logical test is A5<29701 Value_if_true is A5 *15% Value_if_false is A5*25% Notice 1 0f two values will be displayed depending on wither the logical test is true or false.

=IF(A5 < 29701, A5 * 15%, A5 * 25%) If the value in cell A5 is less than or equal to 29701, the value in cell A5 will be multiplied by 15% (TRUE) If the value in cell A5 is greater than 29701, the value in cell A5 will be multiplied by 25% (False)

CALCULATING PAYE 1If an applicant earns $ or less no PAYE is deducted. 2This base figure is called an income tax threshold. 3Income tax is calculated on the amount exceeding $ Therefore if an applicant’s salary is $5100, PAYE is calculated on ( ) or on 100. NOT $

Calculating PAYE cont…… 1Build a logical test, one that will determine wither the salary is equal to or less than $ Build an expression for value_if_true, that is an expression that will calculate the PAYE if it is equal to or less than $ Build an expression for value_if_false, that is an expression that will calculate the PAYE if the salary is greater than $

Displaying non numeric values using the IF function. Non numeric values are placed in open and closed quotation marks. Eg =if(A4>=50, “Blue”,”Black”) If true the word Blue will be displayed If false the word Black will be displayed