0% found this document useful (0 votes)
10 views10 pages

Functions 2 If

The document provides instructions for using absolute cell references and IF functions in Excel spreadsheets. It includes tasks for creating formulas, formatting cells, and applying logical tests to determine outcomes based on specific conditions. The document emphasizes the importance of understanding these concepts for effective spreadsheet management and preparation for exams.

Uploaded by

Justine Namalawa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views10 pages

Functions 2 If

The document provides instructions for using absolute cell references and IF functions in Excel spreadsheets. It includes tasks for creating formulas, formatting cells, and applying logical tests to determine outcomes based on specific conditions. The document emphasizes the importance of understanding these concepts for effective spreadsheet management and preparation for exams.

Uploaded by

Justine Namalawa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

KEY SKILLS

MODELLING: TASK 3

MODELLING : TASK 3 - CONTENTS

• Absolute Cell Reference


• If….Then formulae

Wherever you see this symbol, make sure you remember to save your work!

© www.teach-ict.com All Rights Reserved


MODELLING : 3

Up until now, you have been using ‘Relative Cell


References’ when you have been writing any formulae in
your spreadsheets

Relative cell references are basic cell references that


adjust and change when copied or when using AutoFill.

TASK 1
ƒ Open a new worksheet

ƒ Copy out the table on the right.

ƒ Write the correct formula to calculate the takings for Harry Potter.

ƒ Copy the formula down using autofil.

ƒ Click your mouse into cell D5. Look at the


formula displayed in the formula bar

ƒ Click your mouse into cell D6. Notice how the formula has changed.

ƒ Do the same for cells D7 and D8. When you used autofil, Excel ‘knew’ that it needed
to adjust the row number by 1 each time.

ƒ In cell B9, add up the total from cells B5:B8

ƒ Use autofil to drag that formula across to cells C9 and D9.

ƒ Click your mouse in cell B9 and look at the formula.

ƒ Click your mouse into cells C9 and D9 and note how Excel has changed the formula by
one column letter each time.

ƒ In cell F1, type the word ‘Discount’

ƒ In cell F2, type the discount to be given: 10%

ƒ In cell E5, type ‘Sale price’

ƒ We now need to calculate the new selling


price with the discount.

ƒ In cell E5, multiply the book cost in Cell B5


by the discount value in Cell F2.

ƒ Drag this formula down. What happened?

© www.teach-ict.com All Rights Reserved


ƒ Your results should look like this:

ƒ Normally, Excel would ‘realise’ that you are


dragging a formula down, and adjust the
formula for you each row you drag down.

ƒ Click your mouse into cell E5 and look at the formula in the formula bar.

ƒ It should be the same as this

ƒ Click your mouse into cell E6 and


see if the formula has changed.

ƒ Repeat for cells E7 and E8.

ƒ You should find that Excel did in fact change the row number for you. So what went
wrong?

ƒ Check the formulae again in cells E5 to E8. They change from F2 to F3 to F4 to F5.

ƒ Now have a look at what is in cell F2. It is the 10% discount.

ƒ So when you wrote the formula in cell E5, it worked out the discount correctly.
The problem arose when you tried to drag this formula down.

ƒ Check what is in cells F3 to F5 – Nothing! That is why your calculations didn’t work,
because you were trying to multiply by a blank cell. Excel was trying to be too helpful.

ƒ What you need is some way to tell Excel not to move out of cell F2 even when you drag
the formula down. This is called an ‘Absolute Cell Reference’.

ƒ When you use the dollar sign $ in front of the letters or numbers in a formula, Excel
realises that it should not try to change those, but keep them absolutely where they
are.

ƒ Generally if you are dragging down and only the numbers are changing, as in this case,
the $ is only needed in front of the number part of the formula i.e. =B5*F$2

ƒ If you are dragging the formula across and the column letters are the ones that will
change, then you would only need the $ in front of the letter part of the formula
=B5*$F2.

ƒ However, to save you having to remember this, you can put the dollar sign in front of
both parts every time i.e. =B5*$F$2. The exam board will accept this as an answer.

© www.teach-ict.com All Rights Reserved


ƒ Delete the formula that you wrote in cell E5 and write it again with the dollar signs in
front of the F and the 2.

ƒ Now drag down your formula and see if it has worked this time.

ƒ Click into cells E5, E6, E7 and E8 and you should see that the reference $F$2 did not
change in any of the formulae.

ƒ Congratulations, you have written your first Absolute Cell Reference formula!

Summary of absolute cell reference uses:

Allows the row reference to change, but


$A1 not the column reference.

Allows the column reference to change,


A$1
but not the row reference.

Allows neither the column nor the row


$A$1
reference to change.

An absolute cell reference is one that refers to a constant cell and therefore
overrides relative cell referencing (which is the default in spreadsheets)

TASK 2
ƒ Open a new worksheet

ƒ Set up this table.

ƒ Merge cells A1 to E1

ƒ Make the heading bold and size 16

ƒ Make the text in cells B3, C3 and A10 bold

ƒ Ensure that the column widths are correctly sized to view all of the data.

ƒ Format cells B4:B7 as currency with 0 decimal places.

ƒ Place a thick border around the outside of the main table and also under the titles as
shown above.

ƒ Write a formula in cell C4 to calculate the commission earned by Bob – remember to


use an absolute cell reference.

© www.teach-ict.com All Rights Reserved


ƒ Drag this formula down for cells C5:C7.

ƒ Did this work? Check the formula in each cell and make sure that it always referenced
cell B10.

TASK 3
ƒ Open a new worksheet

ƒ Set up the table like the one on the right.

ƒ Make cells A1, B1, D2, A1:A13 bold text

ƒ Format cells E2 and B2:B9 as currency to 2dp

ƒ Place a thick border around cells D2:E2

ƒ Write a formula using an absolute cell reference


in Cell B2 to calculate the money earned.

ƒ Drag this formula down for cells B3:B9.

ƒ Check that your formula is correct.

ƒ Write a formula in cell B10 to calculate the total amount of money in cells B2:B11
(remember to use a SUM formula)

ƒ Write a formula in cell B11 to calculate the average of cells B2:B11

ƒ Write a formula in cell B12 to calculate the Maximum value in cells B2:B11

ƒ Write a formula in cell B12 to calculate the Minimum value in cells B2:B11

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 <=, >=, <>.

© www.teach-ict.com All Rights Reserved


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.

You WILL get an IF Function in your exam, so it is important that you understand them.

TASK 4
ƒ Open up a new worksheet.

ƒ Set up the spreadsheet on the right

ƒ We want to know whether 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.

ƒ Click your mouse into cell C4

ƒ We want to use the function wizard to help us write this formula.

ƒ Click on the fx button to the left of the formula


bar.

ƒ This screen will appear.

ƒ Highlight ‘IF’ in the left hand pane and


then click ‘OK’

© www.teach-ict.com All Rights Reserved


ƒ This screen will now 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 of

ƒ 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

ƒ 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 Picard.J did indeed get over 70 marks.

ƒ Drag this formula down and check to see if the right pass/fail result has been
displayed.

© www.teach-ict.com All Rights Reserved


TASK 5

ƒ 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.

ƒ So, click your mouse into cell C4.

ƒ Click on the fx button to the left of the formula bar.

ƒ 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 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?

ƒ Remember the absolute cell reference from above? In


this case, we are accessing one cell – B10 and then
dragging the formula down. Excel is trying to be too
helpful.

© www.teach-ict.com All Rights Reserved


ƒ 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 6

ƒ 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 7

ƒ 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.

© www.teach-ict.com All Rights Reserved


ƒ 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 8

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.

© www.teach-ict.com All Rights Reserved

You might also like