Information Technology Topic

Arithmetic Formulae and Brackets

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. The arithmetic operators are + (add), - (subtract), * (multiply), / (divide) and ^ (power), and every formula starts with an equals sign
  2. The sheet works out powers first, then multiplication and division, then addition and subtraction, and brackets override this: =2+3*4 gives 14 but =(2+3)*4 gives 20
  3. SQRT(number) gives the square root and POWER(base, exponent) does the same job as ^; formulas should use cell addresses so results update when the data changes

Section 1A formula is a sum the sheet works out

A formula is an equation that uses numbers and cell addresses to get a result. You enter it starting with an equals sign, for example =B3+B4. Without the equals sign the entry is just text. Here's the trick: use cell addresses and not typed-in numbers wherever you can. In =B3+B4 the sheet looks at what is in B3 and B4 today, so when either number changes, the answer changes too. So a formula is two things together: the cells it uses, and the arithmetic done on them.

Section 2The arithmetic operators

An operator is the symbol that tells the sheet which calculation to do. Five are named in the syllabus. + adds, - subtracts, * multiplies, / divides, and ^ raises to a power. So 2^3 means 2 × 2 × 2, which is 8. Easy to mix up: multiply is the star * and not the letter x, and the power sign ^ is not multiply. 2^3 is 8, but 2*3 is 6.

Section 3Order of calculation

When a formula has more than one operator, the sheet does not simply work from left to right. It follows an order: powers first, then multiplication and division, then addition and subtraction. Take =2+3*4. The multiplication comes before the addition, so the sheet works out 3*4 = 12 first and then adds 2, giving 14. A calculator that works strictly from left to right would give 20, which is a different answer. Another one: =2*3^2. The power is done first (3^2 = 9) and then the multiplication (2 × 9 = 18). Watch out: the answer is not 36.

Section 4Brackets: you choose what goes first

Brackets override the normal order. Put brackets around the part that must be calculated first. For =(2+3)*4, the sheet adds inside the brackets first (5) and then multiplies, giving 20, where =2+3*4 gave 14. Brackets matter most in two cases. The first is an average: the average of three marks is =(B2+B3+B4)/3. Without the brackets, =B2+B3+B4/3 divides only B4 by 3 and then adds the other two. For marks of 70, 82 and 91 the correct formula gives 81, but the one without brackets gives 182.33. The second is a rate added on: a price in B2 with a tax rate in B3 written as a decimal (0.15 for 15%) needs =B2*(1+B3). Every opening bracket needs a closing bracket, or the sheet shows an error.

Section 5Powers and square roots

Use ^ for powers: =B2^2 squares the number in B2. The function POWER does the same job, so =POWER(B2,2) and =B2^2 give the same answer. Use the function SQRT for a square root. SQRT(16) is 4, because 4 × 4 = 16. The result is the positive root. The number goes inside the brackets: =SQRT(B2) for a number in B2. The two ideas work together. A Mandeville builder who knows the length and width of a rectangular plot can find the diagonal with =SQRT(B2^2+C2^2). Everything inside the brackets of SQRT is worked out first: the two squares, and then their sum. The square root is taken last.

Section 6Use cell addresses, not typed numbers

Suppose a growing amount is found with =B2*(1+B3)^C2: the starting amount is in B2, the yearly rate is in B3 and the number of years is in C2. With 10000, 0.05 and 3 years, the answer is 11576.25. Because every part sits in its own cell, you can change the rate or the years and the answer follows. If someone typed =10000*1.05^3 instead, the formula would have to be rewritten for every change. Avoid typing fixed numbers such as a rate into the formula. Put the rate in a cell and refer to it by address.

Section 7From words to a formula

To build a formula from a description, write down the steps in order, then decide which steps must go inside brackets. A fence goes all the way round a rectangular plot. The distance round is two lengths plus two widths, so the perimeter is =2*(B2+C2). The brackets make the sheet add the length and width first and then double the result. Check every formula with easy numbers in your head. If 24 and 18 give 84 for the perimeter, you know the formula is right, because 24 + 18 = 42 and double that is 84.

Examples

A tutor in Portmore charges a booking fee once, plus an hourly rate for each hour. The booking fee of J$500 is in B2, the hourly rate of J$1200 is in C2 and the number of hours, 3, is in D2. (a) Find the value shown by =B2+C2*D2. (b) A student types =(B2+C2)*D2 instead. Find the value shown and explain why it does not match the tutor's charges. (c) The hours in D2 change to 2. Find the value shown by =B2+C2*D2.

(a) Multiplication comes before addition. C2*D2 = 1200 × 3 = 3600, and then adding the fee gives 500 + 3600 = 4100. (b) The brackets make the sheet add first: (500 + 1200) × 3 = 1700 × 3 = 5100. That charges the booking fee for every hour, but the fee should be paid once. The brackets changed the order and so changed the meaning. (c) Now the hours are 2: 1200 × 2 = 2400, and 500 + 2400 = 2900. The formula uses the cell address D2, so it updated by itself when the hours changed.

A fencing company in Mandeville is given a rectangular plot. The length of 24 metres is in B2, the width of 18 metres is in C2 and the fencing cost of J$1850 per metre is in D2. (a) Write a formula for the area and find its value. (b) Write a formula for the perimeter. Find its value, and explain why =2*B2+C2 would be wrong. (c) Write a formula for the length of the diagonal using SQRT, and find its value. (d) Write a formula for the cost of fencing all the way round, and find its value.

(a) Area = length × width, so =B2*C2 gives 24 × 18 = 432 square metres. (b) The perimeter is two lengths plus two widths, so =2*(B2+C2). The brackets add first: 24 + 18 = 42, and doubling gives 84 metres. The formula =2*B2+C2 does the multiplication first, so it doubles only the length: 48 + 18 = 66, which is too small. (c) The diagonal is the square root of length squared plus width squared: =SQRT(B2^2+C2^2). Squares first: 24^2 = 576 and 18^2 = 324. Their sum is 900, and SQRT(900) = 30 metres. (d) Cost = perimeter × cost per metre, so =2*(B2+C2)*D2. That is 84 × 1850 = 155400, so the fencing costs J$155,400.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from