What IF?.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Selection Statements Make a decision based on conditions Allows the computer to be intelligent.
Children Aged 5 to
MONTEGO BAY HIGH SCHOOL INFORMATION TECHNOLOGY THE EXCEL IF FUNCTION.
情報基礎 B Lecture 5 Takeshi Tokuyama Tohoku University Graduate School of Information Sciences System Information Sciences Design and Analysis of Information.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program.
Understanding Equations
Subject: Information Technology Grade: 10
Selection Logic Building decision-making into programs.
Key Words for Inequalities
1 Arithmetic in C. 2 Type Casting: STOPPED You can change the data type of the variable in an expression by: (data_Type) Variable_Name Ex: int a = 15;
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.
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.
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.
Rules of Fractions Investigation. What do you understand from this statement? What can we say about this? What do we need to know first? What should we.
Logical Operators Jumps Logical Operators The different logical operators found in Java Rational Operators The different rational operators found in Java.
1. We’ve learned that our programs are read by the compiler in order, from top to bottom, just as they are written The order of statement execution is.
Answer the questions, then click a dart to hit the target and see your score
Lesson 5: Working with Formulas and Functions Logical and 3D Formulas.
Conditional Expression One of the most useful tools for processing information in an event procedure is a conditional expression. A conditional expression.
Agenda Basic Logic Purpose if statement if / else statement
Python Selection. All the programs you have been developing so far have been sequential, this means that each instruction is executed in a set order.
Holt Algebra Graphing and Writing Inequalities Warm Up Compare. Write, or =. 1. − < > > = Tell whether the inequality x
Thinking Mathematically
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
Are used in higher-level operations, such as conditional and comparison equations to compute interest rates, due dates and payment terms, and financial.
Lesson 1.4 Equations and Inequalities Goal: To learn how to solve equations and check solutions of equations and inequalities.
One Answer, No Answers, or an Infinite Number of Answers.
Basic Conditions. Challenge: ● Ask the user his/her name ● If it’s “Wally,” jeer him ● Pause video and try on your own.
ITK 168 Decisions Dr. Doug Twitchell September 20, 2005.
3.4 Solving Equations with Variables on Both Sides Objective: Solve equations that have variables on both sides.
2-8 COURSE 2 LESSON 2-8 (For help, go to Lesson 1-6.) Compare. Use, or =. 1.0 – 22.| – 6| – – – 4 56.–17 – – |–10|9.5 –1 Graphing.
These Guys? Wait, What? Really?  Branching is a fundamental part of programming  It means taking an action based on decision  The decision is dependent.
Computer Science 101 If Statement. Python Relational Operators.
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.
Inequalities and their Graphs Objective: To write and graph simple inequalities with one variable.
MICROSOFT OFFICE ACCESS 2007 TRAINING Intro to building a database.
Title Category #1 Category #2 Category #3Category #
LESSON 3 Working with Functions, Formulas, and Charts.
Selection Using IF THEN ELSE CASE Introducing Loops.
IF STATEMENTS AND BOOLEAN EXPRESSIONS. BOOLEAN EXPRESSIONS Evaluate to a value of true or false Use relational or equivalence operators Boolean operators.
Comparative Relational Thinking
SELECTION CONTROL STRUCTURE Prepared by: Careene McCallum-Rodney.
Inequalities and their Graphs
Inequalities and their Graphs
Graphing Inequalities
Obj – Indentify and Use Advanced Functions
Rule Exercises Status of the Ball Definitions and Rule 15
Rule Exercises Status of the Ball Definitions and Rule 15
INTRODUCTION A key to effective management is high- quality and timely information to support decision making.
Inequalities and their Graphs
Business Technology Applications
Advanced Functions – Obj. 4.01
IF Statements.
Find the reference angle for the angle measuring {image}
Programming Concepts and Database
Statements of Symbolic Logic
Relational Operators.
NeuroMyth or NeuroTruth?
Advanced Functions – Obj. 4.01
LI4 Inequalities- True or False?.
Advanced Functions Advanced Functions are used in higher-level operations, such as conditional and comparison equations to compute interest rates,
Algebra 1 Section 4.1.
If-Statements and If/Else Statements
Chapter 2 Sets Active Learning Lecture Slides
8 – RE Framework Exercise 8.1-Exercise-HistoricalStockPriceFilter
True or False True or False
Presentation transcript:

What IF?

Objectives Identify the 3 parts to an IF Statement Know when an IF Statement is used Apply If Statements to Excel exercises This is going to be FUN! I should take some notes!

The IF Function Excel uses the IF function to make decisions based on the data stored in the spreadsheet. The IF function makes a decision based on a comparison.

The Comparison…. What’s That? The Comparison looks at information in the database and compares the information with a condition. If the comparison is true, one answer is displayed in the cell—the true statement; if the comparison is false, a second answer is displayed—the false statement.

Relational Operators The following are operators which Excel uses to compare data = equal to < less than > greater than <= less than or equal to >= greater than or equal to <> not equal to

3 Components EXAMPLE: =IF(C4<E7,10,20) =IF (comparison, true statement, false statement) EXAMPLE: =IF(C4<E7,10,20) True Statement False Statement Comparison

Examples If Statement using values =IF(A1<=25,50,100) If Statement using a value and a formula =IF(B2<D2,0,B2*10%) If Statement using labels =IF(E1>70,“Plenty”,“Reorder”)

IF IF I get more than $100 for my birthday, I will buy a Ipod, otherwise I’ll just buy CDs. The total for my birthday is in cell A9 Comparison A9>100 True Statement “Ipod” False Statement “CDs” =IF(A9>100,“Ipod”,“CDs”)

IF You are taking some friends and some neighbor children you are babysitting to the movies. Movie prices for children under 13 are $5.50, otherwise the price is $8.00. The ages of people going to the movie start in D7 Comparison D7<13 True Statement 5.50 False Statement 8.00 =IF(D7<13,5.50,8.00)

IF IF the concert tickets are less than or equal to $45 I will go to the Rascal Flatts concert, otherwise I’ll watch it on TV. The concert price is in cell C2 Comparison C2<=45 True Statement “Concert” False Statement “TV” =IF(C2<=45,“Concert”,“TV”)

IF IF my current stock price is greater than $15 per share, I’ll sell it, otherwise I’ll keep it. Our current stock price is in cell E3 Comparison E3>15 True Statement “Sell” False Statement “Keep” =IF(E3>15,“Sell”,“Keep”)

IF I’m a car dealer. If I sell a car that is more than $20,000 I receive a 6.5% commission, otherwise I receive a 4% commission. The prices of the cars I have sold start in F4. Comparison F4>20000 True Statement F4*6.5% False Statement F4*4% =IF(F4>20000,F4*6.5%,F4*4%)

Let’s Review The IF function makes decisions based on a comparison. The IF function takes this form =IF(comparison,true statement, false statement) Use relational operators in the comparison = < > <= >= <>