1 MODELLING IF THEN IF...THEN Function EXCEL 2007 Wherever you see this symbol, make sure you remember to save your work!
2 IF.Then Function Some functions do not calculate values but instead do logical tests using logical comparisons like = (equal to) < (less than) > (greater than) or the combinations <=, >=, <>. Such a test allows you to do one thing when the comparison is TRUE and something different when it is FALSE. The IF function has three arguments inside parentheses (brackets) which are separated by commas: the comparison statement the cell value to use when the comparison is true the cell value to use when the comparison is false. The general form of an IF function is =IF(logical comparison, value if TRUE, value if FALSE) A value can be a number, text within double quotes, a cell reference, a formula, or another logical test. This probably sounds horribly complicated it isn t really once you have had a go at a few. TASK 1 Open up a new worksheet. Set up the spreadsheet on the right We want to know whether the summer school students have passed or failed their examination. The pass mark is 70. If students have passed their exam, we want Pass to be placed into column C. If they have failed their exam, we want Fail to display. We are going to write an IF statement to find out. Click your mouse into cell C4.
3 We want to use the function wizard to help us write this formula. Click on the Formulas tab Click on Logical Select IF from the menu that appears This dialogue box will appear. There are three boxes that you need to complete. The first box, Logical test is where you need to put the cell reference that you are looking at and the condition that you are interested in. In this case, we want to know if cell B3 is greater than 70. To fill this section in, click into the logical test box Then click the blue and red button to the right hand side This will allow you to click into cell B4. Once you have clicked into cell B4, press the return or enter key. You will see that B4 has appeared in the box
4 Now that we have the cell we are interested in, we need to tell it what our condition is. In this case, we want to know if the result is over 70. We simply need to type >70 (greater than 70) next to B4 no spaces needed. Once we have our Logical test in place, we simply need to tell it what we want to display if this condition is met (True) and what we want to display if this condition is not met (False). In this case, if our condition is met (the exam mark is greater than 70), we want Pass to display, and if our condition is not met (the exam mark is less than 70), we want Fail to display. Fill in your box like the one shown here. You do not need to put the speech marks around the word Pass Excel will do that for you. When you have filled this in correctly, click OK and you will see that Pass has been displayed, because Dr Who did indeed get over 70 marks. Drag this formula down and check to see if the right pass/fail result has been displayed. TASK 2 Open a new worksheet Enter the data shown on the right. We have details here of five salespeople. They have a monthly sales target of 24,000. We need to know if they have met their sales target in cell B10. Because we want to include 24,000 in the test, we can t just put the symbol > or Joanna would be shown as not meeting her target. Thus this time, we need to use >= greater or equal to.
5 So, click your mouse into cell C4. Click on the Formulas tab Click on Logical Select IF from the menu that appears In the logical test box, use the blue and red button to allow you to select cell B4 after all, we are interested in whether David has met his sales target. Once you have B4 displayed in the logical test box, you need to write your condition. This condition needs to include >= and the cell reference which contains the sales target to be met. It should look something like this: In the value if true, type met In the value if false type not met and then click OK Drag your formula down. Your results should look something like this: Does that look right? Not really Matthew and Olivia clearly haven t met their targets, and yet it is displaying Met. What could have gone wrong? The issue is that an absolute cell reference is required within the IF formula.
6 In our IF formula we are accessing one cell B10 and then dragging the formula down. Excel is trying to be too helpful. We need to alter our formula so that when it is dragged down, it only looks at cell B10. Click into cell C4. Go to the formula bar and put dollar signs in front of the B and the 10 ($B$10). Your formula should look like this: =IF(B4>=$B$10,"Met","Not met") Use autofill to drag the formula down to cells C5:C8 Your results should now look like this: Check them closely are they right? They should be now. OK, now it s time for you to try some IF..Then functions on your own. TASK 3 Open a new worksheet Enter the data as shown on the right. If an athlete jumps 70m or more, they will qualify. Write a function that will display Qualify if they have met or exceeded the 70m requirement, or Not Qualify if they have jumped below this limit. TASK 4 Open a new worksheet Enter the data as shown on the right Make row 3 deeper as shown. Wrap the text in cells A3:D3 so that it looks similar to the example.
7 Write a formula in cell D4 to display Yes if the percentage attendance is below the average in cell C9. Remember to use an absolute cell reference! Drag your formula down to cells D5:D7. Check that the results are what you expect. TASK 5 Open a new worksheet Enter the data as shown on the right. In cells F4:F8 write a formula to calculate the total marks gained over the four week period. If a student gains over 45 total marks in a four week period, they will be given a merit slip. In cell G4, write a function that will display merit if the mark is 45 or more and display no if they have failed to earn a merit. You may: Guide teachers or students to access this resource from the teach-ict.com site Print out enough copies to use during the lesson You may not: Adapt or build on this work Save this resource to a school network or VLE Republish this resource on the internet A subscription will enable you to access an editable version, without the watermark and save it on your protected network or VLE
Selecting a Sub-set of Cases in SPSS: The Select Cases Command When analyzing a data file in SPSS, all cases with valid values for the relevant variable(s) are used. If I opened the 1991 U.S. General Social
Critical analysis Be more critical! More analysis needed! That s what my tutors say about my essays. I m not really sure what they mean. I thought I had written a really good assignment this time. I did
Pearson 2012 Inform How to open, edit and print reports; create assessments and upload data; and access student progress and SRBI/RTI reports How to use Inform This manual is written to give Inform users
How To Use A Spreadsheet Excel for the Mac and PC-Windows by John D. Winter Most good spreadsheets have very similar capabilities, but the syntax of the commands differs slightly. I will use the keyboard
Ready Reference Guide Customizing an Output Style September 2008 Customizing an Output Style Table of Contents Overview Page 3 Getting Started Page 4 Modifying an Output Style Page 6 Sharing a Style With
Problem 3 If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C? Suggested Questions to ask students about Problem 3 The key to this question
How to Make Your Word 2010 Documents 508-Compliant Centers for Medicare & Medicaid Services Making 508 Easy Continuous Improvement Initiative July 2, 2014 This page intentionally left blank. How to Make
Microsoft IT Academy E-Learning Central Getting Started Guide This guide provides an overview of the Microsoft IT Academy E-Learning Central site for Administrators, Instructors and Students 1 Table of
Power Editor Guide February 29, 2012 Why should I use Power Editor?...2 Get started in 5 easy steps...3 Power Editor buttons and features.................................... 4 Navigate within Power Editor....6
Pearson Inform v4.0 Educators Guide Part Number 606 000 508 A Educators Guide v4.0 Pearson Inform First Edition (August 2005) Second Edition (September 2006) This edition applies to Release 4.0 of Inform
Uploading GEDCOM Files and Copying the Information into Family Tree All registered users of FamilySearch.org can upload GEDCOM files for inclusion in the Pedigree Resource File. If you have access to Family
TomTom ONE XL 1. What s in the box What s in the box a Your TomTom ONE XL A B C D E F G H A Charging LED B Touchscreen C On/Off button D Speaker E External antenna connector F USB connector G RDS-TMC connector
Cambridge for exams officers to candidates in an exam To make sure all Cambridge candidates have the same exam experience you must read aloud our instructions at the start and end of the exam. This guide
How Old Are They? This problem gives you the chance to: form expressions form and solve an equation to solve an age problem Will is w years old. Ben is 3 years older. 1. Write an expression, in terms of
Self-Determination Series Seeking Supported Employment: What You Need to Know Determine Your Destiny Seeking Supported Employment: What You Need to Know Prepared by: Judith A. Cook, Ph.D. Carol A. Petersen,
Who Sends the Most Text Messages? Written by: Anna Bargagliotti and Jeanie Gibson (for Project-SET) Loyola Marymount University and Hutchison School firstname.lastname@example.org, email@example.com, www.project-set.com
Student Guide to SPSS Barnard College Department of Biological Sciences Dan Flynn Table of Contents Introduction... 2 Basics... 4 Starting SPSS... 4 Navigating... 4 Data Editor... 5 SPSS Viewer... 6 Getting
Good news! I just approved your request to upgrade your desktop to Windows 2003. There are many projects in Head First C# where you build Windows Store apps that require Windows 8. In this appendix, you'll
Working While Disabled How We Can Help 2015 Contacting Social Security Visit our website At our website, www.socialsecurity.gov, you can: Create a my Social Security account to review your Social Security
>> Hello. >> We will start the meeting at about 12:01. >> You are now muted. >> I just want to let people know, this is MISSY Harvey and we will start the meeting at 12:00 12:01 so I thank you for your
What do you need to know to learn a foreign language? Paul Nation School of Linguistics and Applied Language Studies Victoria University of Wellington New Zealand 11 August 2014 Table of Contents Introduction
Guide for Texas Instruments TI-83, TI-83 Plus, or TI-84 Plus Graphing Calculator This Guide is designed to offer step-by-step instruction for using your TI-83, TI-83 Plus, or TI-84 Plus graphing calculator
The Praxis Study Companion Core Academic Skills for Educators: Mathematics 5732 www.ets.org/praxis Welcome to the Praxis Study Companion Welcome to The Praxis Study Companion Prepare to Show What You Know
Excel IF Statements, LOOKUPS & INDEX/MATCH. When to choose which one? This article will focus on the appropriate use of IF statements, and also show you when it's better to move into more robust formulas
Using Credit to Your Advantage. Topic Overview. The Using Credit To Your Advantage topic will provide participants with all the basic information they need to understand credit what it is and how to make
Equation Editor and MathType: Tips to Make Your Life Easier Presented by: Bob Mathews Director of Training Design Science, Inc. E-mail: firstname.lastname@example.org Welcomee to Equation Editor and MathType: Tips to