Presentation is loading. Please wait.

Presentation is loading. Please wait.

Objectives 4 Identify the 3 parts to an IF Statement 4 Know when an IF Statement is used 4 Apply If Statements to Excel exercises This is going to be.

Similar presentations


Presentation on theme: "Objectives 4 Identify the 3 parts to an IF Statement 4 Know when an IF Statement is used 4 Apply If Statements to Excel exercises This is going to be."— Presentation transcript:

1

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

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

4 The Comparison…. What’s That? 4 The Comparison looks at information in the database and compares the information with a condition. 4 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.

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

6 3 Components =IF (comparison, true statement, false statement) EXAMPLE: =IF(C4 { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://images.slideplayer.com/3389987/12/slides/slide_5.jpg", "name": "3 Components =IF (comparison, true statement, false statement) EXAMPLE: =IF(C4

7 Examples If Statement using values =IF(A1<=25,50,100) If Statement using a value and a formula =IF(B270,“Plenty”,“Reorder”)

8 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 ComparisonA9>100 True Statement“Ipod” False Statement“CDs” =IF(A9>100,“Ipod”,“CDs”)

9 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 ComparisonD7<13 True Statement5.50 False Statement8.00 =IF(D7<13,5.50,8.00)

10 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 ComparisonC2<=45 True Statement“Concert” False Statement“TV” =IF(C2<=45,“Concert”,“TV”)

11 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 ComparisonE3>15 True Statement“Sell” False Statement“Keep” =IF(E3>15,“Sell”,“Keep”)

12 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. ComparisonF4>20000 True StatementF4*6.5% False StatementF4*4% =IF(F4>20000,F4*6.5%,F4*4%)

13  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 = = <> Let’s Review


Download ppt "Objectives 4 Identify the 3 parts to an IF Statement 4 Know when an IF Statement is used 4 Apply If Statements to Excel exercises This is going to be."

Similar presentations


Ads by Google