# Learning Microsoft Excel 2007

By Greg Bowden

Chapter 11

Making Decisions With Excel

Guided Computer Tutorials www.gct.com.au

Australia www. First published 2007 ISBN: 1 921217 44 8 (Module 1) 1 921217 45 6 (Module 2) PDF document on CD-ROM Every effort has been made to ensure that images used in this publication are free of copyright. Bookmarks provide links to all headings and sub-headings. Victoria. Guided Computer Tutorials would welcome any information that would redress this situation. A certificate of authentication is provided with multi-user versions. Single-user versions are for single person use at any particular time.gct.PUBLISHED BY GUIDED COMPUTER TUTORIALS PO Box 311 Belmont.com. just as a single text book would be used. intranet and staff laptops.au © Greg Bowden This product is available in Single or Multi User versions. and individual chapters are provided. but there may be instances where this has not been possible. 3216. Multi-user versions allow the school or institution to print as many copies as required. . or to place the PDF files on the school network. If you intend to use the notes with multiple students the single user version should be upgraded to the multi-user version.

The commas stand for ‘then’ and ‘otherwise’. otherwise display zero.A1.0) © Guided Computer Tutorials 2007 11-1 . The sections of an IF statement must be separated by commas.Chapter Making Decisions With Excel 11 We can instruct a spreadsheet to make decisions on entered labels and values. which takes the form: IF (something is true. do this. otherwise. look at the following formula: This formula reads: if the contents of cell A1 is greater than zero then display the contents of A1. do something else) The IF function uses mathematical symbols (operators) to make comparisons: Operator < > <= >= = <> less than greater than less than or equal to greater than or equal to equal to is not equal to Meaning For example. The following diagram shows the sections of the formula: =IF(A1>0. This is achieved by using the IF function.

Learning Microsoft Excel 2007 The IF Command A template for a company that gives discounts on items priced over \$100 will be used. You should have a YES displayed next to prices over \$100. selecting YES to the READ-ONLY message. Access the EXCEL 2007 SUPPORT FILES. then display YES. 3 Move the cursor to cell C4 and enter the formula: = IF(B4>100. Quotation marks are used because YES and NO are LABELS. 4 Autofill the formula down 3 cells and format the 4 labels to CENTRE. otherwise display NO. open the CHAPTER 11 folder and load the CHAPTER 11 file. 1 2 Load Microsoft Excel 2007 and click on the OPEN icon in the QUICK ACCESS TOOLBAR or in the OFFICE BUTTON.”No”) NOTE: The spreadsheet is being told that if the contents of the cell B4 is greater than 100. 11-2 © Guided Computer Tutorials 2007 .”Yes”.

iii The formula reads: if the value in cell B4 is greater than 100.” “) NOTE: i ii For the “ “. 6 Mathematical calculations can also be done within IF functions. enter: then press the <enter> key. = IF(B4>100.Making Decisions With Excel 11 5 Change the cost of the Heater to \$95. © Guided Computer Tutorials 2007 11-3 . You should receive a blank space in cell C4 as the Radio costs less than \$100.60 and observe the change.B4*10%. otherwise display a blank space (two quotes entered next to one another). then work out and display B4 times 10%. 7 Position the cursor at cell C4. press the double quotation key twice.

11-4 © Guided Computer Tutorials 2007 . A discount should now be allocated.50. 10 Change the cost of the Toaster to \$100. A discount is not given because the value is not over \$100.Learning Microsoft Excel 2007 8 Autofill the formula down for the other 3 cells and format the 4 cells to CURRENCY with two decimal places and RIGHT aligned. 9 Change the price of the Toaster to \$137.

B4*10%. 1 Move the cursor to cell C4 and edit the formula to add an = sign straight after the > sign.Making Decisions With Excel 11 Greater Than or Equal To Sometimes we need a condition to include a number as well as all greater or smaller numbers. Your formula should now be: = IF(B4>=100. The >= and <= symbols can be used for this purpose. © Guided Computer Tutorials 2007 11-5 .” “) 2 Autofill this formula down the other 3 cells and you should now have a discount for the Toaster. NOTE: The Toaster receives a discount because a discount is now payable on items of \$100 or more.