Upload
roderick-wilkinson
View
214
Download
0
Embed Size (px)
DESCRIPTION
Adding the formulae ZIn cell B12, enter the formula =B9*B10 to calculate the total surface area ZIn cell B13, enter the formula =2*(B9+B10) to calculate the perimeter length. Ensure you include the brackets! ZEnter the formula for Cost for surface area in cell D12. This should be =B12*D4
Citation preview
European Computer Driving Licence
Module 4 - SpreadsheetsChapter 4.9 – If . . . Then . . . Else
Produce instant quotesZ You can create a spreadsheet
to produce instant quotes. Z The Mirror Shop project will
take you through step by step on how to give an instant quote depending on the size and finish of a mirror
Z You will also learn how to format a spreadsheet to make it look very attractive
Adding the formulaeZ In cell B12, enter the formula
=B9*B10 to calculate the total surface area
Z In cell B13, enter the formula =2*(B9+B10) to calculate the perimeter length. Ensure you include the brackets!
Z Enter the formula for Cost for surface area in cell D12. This should be =B12*D4
Adding IF statementsZ The calculation for Cost for
edges will depend on whether the edges are polished or polished and bevelled. You will need to include an IF statement so that it can calculate the cost for either option.
Z The basic format for an IF statement is to specify a condition, then to perform one calculation if it is true, and another if it is false.
Z If edges are polished:, Cost for edges = perimeter
length x price for polished edges, or If cell D9 = P THEN D13 = B13*D5
Z If edges are polished and bevelled: , Cost for edges = perimeter
length x price for bevelled edges, or If cell D9 = PB THEN D13 = B13*D6
The Paste Function buttonZ Select cell D13Z Click the Paste Function
button to the left of the Formula bar
Z Click on the drop-down arrow next to select a category and select Logical, if this is not already displayed
Z Select IF from the Select a function list then click on OK
Enter the function argumentsZ Enter the formula D9=“P” in
the Logical_test box.Z In the Value_if_true box,
enter the formula B13*D5 (perimeter length x price for polished edges).
Z In the Value_if_false box, enter the formula B13*D6 (perimeter length x price for polished & bevelled edges).
Z Click on OK.
And finally . . .Z Alternatively, you could just
have entered the formula =if(D9=“P”,B13*D5,B13*D6) in cell D13, but it is far simpler to use the Paste Function button.
Z Finally in cell D16, enter the formula =sum(D12:D13)
Z Format the currency cells to show pound signs and 2 decimal places.
Adding some colourZ To change the font colour,
select the cell(s), click the down arrow on the Font Colour icon and select a colour
Z To change the background fill, select the cell(s), click the down arrow on the Background fill icon and select a colour
Aligning cell contentZ You can set where text
appears in a cell by clicking on the left, centre or right align icons on the Formatting toolbar
Z You can also increase the height of a row and change the vertical alignment
Z Click and drag to increase the row height
Z Right click on a selected cell and select Format Cells from the shortcut menu
Aligning cell content and text orientation
Z Click the Alignment tabZ Select Centre in the Vertical
Alignment boxZ You can also change the
orientation of text from hereZ Click and drag the red dot so
that text is slightly diagonalZ Click OK
And the finished result?