WEBVTT
Kind: captions
Language: en

00:00:11.340 --> 00:00:15.720
You may already have some experience creating
simple formulas that have only one type of

00:00:15.720 --> 00:00:17.550
operation...

00:00:17.550 --> 00:00:22.010
But sometimes you have to create more complex
formulas that do have more than one operator;

00:00:22.010 --> 00:00:25.430
for example addition and multiplication.

00:00:25.430 --> 00:00:32.330
To do this, you'll need to understand how
Excel is calculating the answer.

00:00:32.330 --> 00:00:36.460
Excel uses a set of rules called the Order
of Operations, which you might remember from

00:00:36.460 --> 00:00:37.800
math class.

00:00:37.800 --> 00:00:42.890
The Order of Operations determines which parts
of the formula to calculate first.

00:00:42.890 --> 00:00:46.570
The very first thing that you calculate are
the items in parentheses.

00:00:46.570 --> 00:00:51.610
Then, if you have any exponents, you'll calculate
those.

00:00:51.610 --> 00:00:55.180
Next is multiplication and division.

00:00:55.180 --> 00:00:59.010
And finally, addition and subtraction.

00:00:59.010 --> 00:01:04.220
Excel knows to use the Order of Operations
whenever it calculates a complex formula.

00:01:04.220 --> 00:01:08.140
It's important that you remember it, so you
can create formulas that'll give you the correct

00:01:08.140 --> 00:01:09.140
answer.

00:01:09.140 --> 00:01:13.110
To remember the order, you can just use the
acronym "PEMDAS."

00:01:13.110 --> 00:01:20.429
Or, to make it even easier, remember the phrase,
"Please Excuse My Dear Aunt Sally."

00:01:20.429 --> 00:01:25.170
Let's go over each of these in a little more
detail.

00:01:25.170 --> 00:01:29.069
In this formula, 5+2 is in parentheses.

00:01:29.069 --> 00:01:35.179
So we'll calculate that first to get 7...
and then we can just multiply 3 times 7 to

00:01:35.179 --> 00:01:39.390
get 21.

00:01:39.390 --> 00:01:43.770
This formula contains an exponent—3 to the
power of 2.

00:01:43.770 --> 00:01:52.099
We'll need to calculate that first... and
then we can do the addition.

00:01:52.099 --> 00:01:55.509
If you have multiplication or division, that'll
come next.

00:01:55.509 --> 00:02:04.149
Here, we multiply 2 times 4 to get 8... and
9 minus 8 equals 1.

00:02:04.149 --> 00:02:08.569
Now multiplication and division are considered
to be on the same level.

00:02:08.569 --> 00:02:13.550
That means if you have both of them in your
formula, they're calculated from left to right.

00:02:13.550 --> 00:02:20.260
In this example, we'll do the division first...
and then the multiplication.

00:02:20.260 --> 00:02:24.670
If we wanted the multiplication to happen
first, we could just put it in parentheses,

00:02:24.670 --> 00:02:29.360
or we could rearrange the formula so the multiplication
was on the left.

00:02:29.360 --> 00:02:33.590
Finally, we have addition and subtraction.

00:02:33.590 --> 00:02:37.819
Just like multiplication and division, these
are on the same level, so we'll calculate

00:02:37.819 --> 00:02:41.209
them from left to right.

00:02:41.209 --> 00:02:46.819
OK, now let's put them all together.

00:02:46.819 --> 00:02:50.709
This formula may look really complicated,
but we're just going to go step-by-step through

00:02:50.709 --> 00:02:54.930
the Order of Operations, and you'll see that
it's really not that bad.

00:02:54.930 --> 00:02:56.970
We'll start with the parentheses.

00:02:56.970 --> 00:03:02.129
We'll calculate each of these to get 2 and
3... and as you can see, the formula's already

00:03:02.129 --> 00:03:03.739
starting to look a bit simpler.

00:03:03.739 --> 00:03:08.300
Next, we'll look to see if there are any exponents
in this formula.

00:03:08.300 --> 00:03:11.420
There is one—2 to the second power.

00:03:11.420 --> 00:03:14.390
When we calculate it, it becomes 4.

00:03:14.390 --> 00:03:21.720
Next, we'll do the multiplication and division,
going from left to right.

00:03:21.720 --> 00:03:26.499
And now all that's left is addition—and
that gives us our answer, which is 8.75.

00:03:26.499 --> 00:03:34.720
And that's the same answer Excel would give
you, if you entered that formula in your worksheet.

00:03:34.720 --> 00:03:38.790
Now I'm going to show you why it's so important
that you follow the Order of Operations every

00:03:38.790 --> 00:03:39.790
time.

00:03:39.790 --> 00:03:43.299
If you don't, your formulas won't give you
the correct answer.

00:03:43.299 --> 00:03:48.020
In this example, I'd like to add these three
values, and find out how much the sales tax

00:03:48.020 --> 00:03:49.700
will be.

00:03:49.700 --> 00:03:54.849
I'll start by typing the equal sign, which
is how you always start a formula.

00:03:54.849 --> 00:04:03.349
Then I'll calculate D3... plus D4... plus
D5.

00:04:03.349 --> 00:04:09.310
Next I'll multiply by .075, which is the tax
rate at 7.5%.

00:04:09.310 --> 00:04:14.609
Now, this may look like it's going to give
us the correct answer, but it's not.

00:04:14.609 --> 00:04:17.720
That's because we didn't follow the Order
of Operations.

00:04:17.720 --> 00:04:27.200
Remember, multiplication comes before addition—so
Excel is going to multiply D5 by .075 first...

00:04:27.200 --> 00:04:31.990
then it'll add D3 and D4, which isn't what
we want.

00:04:31.990 --> 00:04:35.210
We want these three values to be added first.

00:04:35.210 --> 00:04:39.639
So to do that, we just need to put them in
parentheses.

00:04:39.639 --> 00:04:44.400
Parentheses are often the best way of controlling
which parts of the formula are calculated

00:04:44.400 --> 00:04:45.400
first.

00:04:45.400 --> 00:04:53.569
And when this formula is calculated... we
can see that the answer is $20.56.

00:04:53.569 --> 00:04:59.009
So whenever you're doing a complex formula,
just remember to follow the Order of Operations.

00:04:59.009 --> 00:05:01.270
Then you'll get the correct answer, every
time.

