Do you know BODMAS and the Rules of Precedence?

BODMAS

Let’s talk about the rules of precedence / order of operations which can be remembered by the acronym BODMAS.

Quick History

No, these are not new rules for maths. They are actually a few centuries old (around the 18th and 19th to be specific.

They tell you the order in which a maths calculation should be worked out.

If you’d like a longer explanation:

In mathematics and computer programming, the order of operations (or operator precedence) is a collection of rules that reflect conventions about which procedures to perform first in order to evaluate a given mathematical expression.

Wikipedia, https://en.wikipedia.org/wiki/Order_of_operations

Why is it important

That’s got a simple answer – Excel automatically uses these rules, so that answers that appear in your spreadsheet may not be what you expected.

Now, if you are only using simple calculations like a+b, or c/d then you’re fine.

However, once you start asking Excel to do something more, like adding, dividing and multiplying in the same calculation, then it can make a difference.

What are the rules?

In any calculation we normally read left to right, however following these rules you need to look at the calculation to be able to work it out.

Let’s take a standard example:

2 + 3 * 4 =

What’s the answer?

2 + 3 (= 5) and 5 * 4 = 20

Not with the rules or Excel.

Where does BODMAS come in?

That’s the acronym that we use (especially in the UK) that reminds us of the order:

B = Brackets

O = Over/Order

D = Division

M = Multiplication

A = Addition

S = Subtraction

Let’s go back to our example: 2 + 3 * 4

First question: Are there any brackets?

No, so onto the next option (we kinda ignore the O)

Is there a division? No

Is there a multiplication? Yes

We need to do that first

3 * 4 = 12

Now it’s 2 + 12

As there’s only one thing left – let’s just calculate that:

2 + 12 = 14

And that’s our answer.


Moving forwards, if we want to have the answer 20, we can use BODMAS to perform it in the order we want.

Remember – Brackets, they come first.

As we want the addition 2 + 3 to be calculated – that needs to be inside brackets.

(2 + 3) * 4

In Excel that will equal 20.

Impact

With our simple example, there’s a difference of 6 between the expected answer (20), and the ‘correct mathematical answer (14).

Now it may not seem a lot, but if you’re using Excel for your business – that can be quite a difference.

Now you know all about BODMAS and the rules, you can take them into account, and write formulas in your spreadsheets that will give you the expected result!

What more tips and tricks of your computer applications? Book a Call and let’s chat how I can help.

Related Posts

Share this post

Shopping Basket