WEBVTT
Kind: captions
Language: en

00:00:09.469 --> 00:00:14.309
Functions are a great time-saving option for
calculating data in your worksheet. They can

00:00:14.309 --> 00:00:18.570
be used in place of formulas when a formula
would be too long, or just too complicated

00:00:18.570 --> 00:00:20.900
to write out manually.

00:00:20.900 --> 00:00:26.039
To access the function library, go to the
Formulas tab on the Ribbon. Here, you'll find

00:00:26.039 --> 00:00:30.420
hundreds of functions to choose from. They've
all been organized into categories to make

00:00:30.420 --> 00:00:31.740
them easier to find.

00:00:31.740 --> 00:00:36.469
For example, under Financial, you'll find
functions that deal with things like interest

00:00:36.469 --> 00:00:41.489
and monthly payments.
Under Text, you can perform text manipulations,

00:00:41.489 --> 00:00:46.190
like converting lowercase to uppercase, replacing
text, and more.

00:00:46.190 --> 00:00:50.910
Date &amp; Time includes functions that return
the current date, time, day of the week, and

00:00:50.910 --> 00:00:54.910
other useful data.
Some of the most common functions are pretty

00:00:54.910 --> 00:00:59.710
simple, though (like SUM and AVERAGE). You
can access these using the drop-down arrow

00:00:59.710 --> 00:01:04.290
under AutoSum.

00:01:04.290 --> 00:01:09.369
In this example, I'd like to add these ten
cells to calculate the total. If I tried to

00:01:09.369 --> 00:01:13.490
create a formula for that, I'd have to add
each cell individually.

00:01:13.490 --> 00:01:17.600
Not only would that be tedious—it would
also make the formula really long, especially

00:01:17.600 --> 00:01:22.619
if I had, say, a hundred cells that I wanted
to add. So instead of creating a formula,

00:01:22.619 --> 00:01:23.900
I'm going to use a function.

00:01:23.900 --> 00:01:30.130
First, select the cell where you want the
answer to appear. Then choose a function.

00:01:30.130 --> 00:01:36.530
In our case, we'll open the AutoSum menu…
and then choose Sum.

00:01:36.530 --> 00:01:42.079
Now Excel has inserted the function, and also
selected the cells that are being added together.

00:01:42.079 --> 00:01:46.290
If it selects the wrong cells, you can always
change that by dragging the corner handles

00:01:46.290 --> 00:01:49.090
here.

00:01:49.090 --> 00:01:54.780
When you're done, press Enter on your keyboard…
and the answer will appear.

00:01:54.780 --> 00:01:59.880
Let's look at this function in a little more
detail.

00:01:59.880 --> 00:02:04.759
Just like formulas, functions always start
with an equal sign. But you may have noticed

00:02:04.759 --> 00:02:09.020
that there are no mathematical operators (such
as addition or subtraction) like you would

00:02:09.020 --> 00:02:14.890
normally see in a formula. Instead, functions
use a specific syntax that includes the name

00:02:14.890 --> 00:02:20.430
of the function… followed by one or more
arguments in parentheses.

00:02:20.430 --> 00:02:25.569
The arguments tell the function which cells
or numbers to use when calculating the result.

00:02:25.569 --> 00:02:30.739
In this example, we only have one argument,
even though there are two different cell references.

00:02:30.739 --> 00:02:34.780
This is called a range of cells, or a cell
range.

00:02:34.780 --> 00:02:39.950
A cell range is represented by two different
cell references with a colon in between. In

00:02:39.950 --> 00:02:45.840
this case, the range consists of all of the
cells between D3 and D12. If you want to use

00:02:45.840 --> 00:02:53.069
more than one argument, you'll need to separate
each one with a comma.

00:02:53.069 --> 00:02:57.599
Let's try a different function now. In this
example, we have a column for the date that

00:02:57.599 --> 00:03:01.830
each item was ordered, and the date that it
was received. What I'd like to know is how

00:03:01.830 --> 00:03:04.750
many business days it took for each item to
be delivered.

00:03:04.750 --> 00:03:10.420
First, select the cell where you want the
function to go. Then choose a function if

00:03:10.420 --> 00:03:12.940
you know what category it's in.

00:03:12.940 --> 00:03:18.319
If you don't, you can try searching for it
instead. Just click the Insert Function command

00:03:18.319 --> 00:03:21.750
on the far left of the Ribbon.

00:03:21.750 --> 00:03:25.890
Searching for functions can be tricky, but
for more experienced users, this can be an

00:03:25.890 --> 00:03:31.650
extremely useful tool. Just type a description
of the function you're looking for. I'm looking

00:03:31.650 --> 00:03:35.390
for something that'll count the number of
days that have elapsed, so I'll type "count

00:03:35.390 --> 00:03:38.980
days," and then press Enter.

00:03:38.980 --> 00:03:43.900
We've gotten a lot of different results here.
To learn more about a function, just click

00:03:43.900 --> 00:03:48.110
the name… and a description will appear
below.

00:03:48.110 --> 00:03:52.510
The function called NETWORKDAYS returns the
number of workdays between two dates, and

00:03:52.510 --> 00:03:58.450
that's exactly what we want. So I'm just going
to click OK… and another dialog box will

00:03:58.450 --> 00:04:00.349
appear.

00:04:00.349 --> 00:04:05.090
There will be separate fields for each argument
in the function. This function has up to three

00:04:05.090 --> 00:04:11.420
arguments: Start_date, End_date, and Holidays.
When you click a field, you'll see a description

00:04:11.420 --> 00:04:16.419
of it below. And if you need more help, you
can click the link that says, "Help on this

00:04:16.419 --> 00:04:18.160
function."

00:04:18.160 --> 00:04:28.449
For the start date, I'll select cell E3…
and for the end date, I'll select F3. We know

00:04:28.449 --> 00:04:32.560
the Holidays argument is optional because
it's not in bold, so I'm going to leave that

00:04:32.560 --> 00:04:34.350
one blank.

00:04:34.350 --> 00:04:40.270
Before you continue, you can check the result
of the function here. When you're ready, click

00:04:40.270 --> 00:04:45.110
OK… and the function will be added to the
worksheet.

00:04:45.110 --> 00:04:51.270
Just like with formulas, you can copy the
function using the fill handle here.

00:04:51.270 --> 00:04:56.590
And now we can see the number of business
days it took for each item to be delivered.

00:04:56.590 --> 00:05:01.120
If you've never used functions before, the
syntax may seem a little strange at first.

00:05:01.120 --> 00:05:04.720
But with some practice, you're bound to get
the hang of it—and soon, you'll be using

00:05:04.720 --> 00:05:06.850
your favorite functions over and over.

