SCRIPT-Excel Introduction to Formulas and Functions
SCRIPT-Excel Introduction to Formulas and Functions
Create a formula
- [Instructor] Excel formulas let you summarize the data contained in your
worksheets which helps you discover important information about your
business. In this movie I will show you the three main ways to create a
formula in Excel. By typing, by using the controls on the Formula tab of the
ribbon, and by using the Insert Function dialog box. The sample file that I'll
start with is 01_02_Create. And you can find it in the Chapter01 folder of the
exercise files collection. I have also opened up the sample file from the
previous movie and I will introduce that when I get to it. I'm on the Summary
worksheet of this workbook and you can see that I have inquiries from
potential customers broken down by month. If I want to find the sum of those
values then I can click in cell D3, type an equal sign, and then start typing
the name of the function I want to use, which is SUM. So I'll type S-U and you
can see that I have a formula autocomplete list. And this gives me a list of
functions that start with SU. The third one down is SUM. So if I were to use
the Down Arrow key to move to that or click it with a mouse and then press
Tab, then SUM would appear. If you don't see formula autocomplete, and you
want to turn it on, and I do recommend that you do turn it on, you can turn
on that option from the File menu. So I'll press Escape to get rid of formula
autocomplete, and then Escape again to stop editing the cell. And I'll go to
File. And then Options to open the Excel options dialog box. Then go to
Formulas. And in the second section called Working With Formulas there is a
Formula Autocomplete box. If that isn't checked, go ahead and check it and
then click Okay. All right, now I'll go the whole way through creating the
formula by typing directly into the cell. So I'll type equal, then SU, and I will
use the Down Arrow key to highlight SUM and then press Tab. And then I'll
select the cells B4 through B15. Type a right parentheses to close out the
argument list, and Enter. And I get the value 11,336. Another way to enter a
formula, if you don't, for example, know the name of the function you want
to use but you think you know enough to look it up, then you can use the
Formulas tab on the ribbon. So I will click cell D3 and press the Delete key to
get rid of it. Then I'll go up to the ribbon and click Formulas. The function I
want to use is a mathematical function so I will click the Math and Trig
button, and then scroll down until I see SUM. So I'll click that. And the
Function Arguments dialog box appears. And the number that I want to use
is actually a cell range. So I'll click the collapse dialog button here and then
select cells B4 through B15 like I did before. Click the expand dialog button,
and click Okay. And you can see I get the same value that I did before
because I created the same formula, just a different way. A third way to
create a formula is to use the Insert Function dialog box. So D3 selected, I'll
press Delete again. And then I will go up to the Formula bar and click the F of
X button, which is the insert function button. So I'll click there. In the Insert
Function dialog box you can search for a function, although honestly I don't
find searching to be all that useful because you don't usually know the terms
that you want to look for. You can also select a category. So here we have
most recently used. And you'll see functions such as SUM, AVERAGE, IF, and
HYPERLINK. You can also go by category. So under most recently used, I
could, for example, click Math and Trig, short for trigonometry, and then
scroll down and find SUM. So regardless of how you do it go ahead and click
SUM and then click Okay. And we get the Function Arguments dialog box
that we had before. So I'll click the collapse dialog button. Select B14 to B15.
Click the expand dialog button and click Okay. And I get the same value. So
far everything that I've done has been contained to this single worksheet. If I
want to use a value from another worksheet then I can start creating my
formula and then click it. So I'll click in cell D6, type an equal sign, and I want
to find the cost to replace a 10% loss. So in other words, with the number of
inquiries at 11,336, if I want to replace 10% of that, what would it cost me?
So I've already typed an equal sign in D6. So I'm going to multiply the value
in D3 by .1, which is 10%, so times 0.1. And then I will multiply that by the
cost of generating a new inquiry. And this is something that the company
has determined over time. The value I want to use is on the Acquisition Cost
worksheet. So click that worksheet tab and the value is in B1. And you can
see the formula here, D3 * .1 * Acquisition Cost, which is the name of the
worksheet I'm on right now. So I'll click cell B1, and you can see that's been
added to the formula on the formula bar. And then press Enter. So that tells
me the cost to replace a 10% loss would be over $91,000. So that's very
expensive. And now we can look at projected revenue. And this will use data
in another workbook. So I'll click cell D9, type an equals sign, and then I'll
press Alt + Tab on Windows to move to the workbook from the first movie,
01_01_Introducing. And again, if you want to follow along and you haven't
opened this workbook, you can either pause right now or I'll talk for a few
more seconds and you can open it in the background. Okay, I want to use
the value in cell B5 for my projection. So I'll click that, and you can see three
things on the formula bar. The name of the workbook, the name of the
worksheet, and then also the cell address. That's all I need, so I'll press
Enter. And I get my projected revenue in my original workbook. Regardless
of how you choose to enter your formula you'll find that Excel has several
ways to make the process easier for you.
Edit a formula
- [Instructor] Excel worksheets evolve over time to reflect the nature of your
business and how you analyze your data, so you will almost certainly end up
changing some of your formulas. You can edit Excel formulas in two ways,
either on the formula bar or within a cell. In this movie, I will show you how
to do both. My sample file is oh 01_07_Editing, and you can find it in the
chapter one folder of the exercise files collection. In this workbook, I have a
single worksheet and you can see that I have yearly revenue for the years
2022 and 2023. And I have $1,602,000 for 2022 and $1,945,000 for the year
2023. And I have a formula in cell D3 that finds the total but I immediately
spot an error. Both of the numbers B3 and B4 end with three zeros and my
total in D3 has a 45 at the end. If I double-click cell D3, then I see that I'm
actually finding the sum of A3 through B4, so I'm adding the years in addition
to the revenue. This is actually a very common mistake but it happens more
frequently with column and row headers. So, if you have a year such as 2022
and then a column of numbers, sometimes, especially when you create auto-
sum formulas, you will end up adding the year to the total and that can
change your results, so be very careful not to do that. In this case, I have
double-clicked the cell and I can edit from within it. So, I currently have sum
of A3 to B4, that should be B3 to B4. So, I will click between the A and the
three, hit Backspace, type B3 to B4 and Enter, and I get the correct value.
You can also edit a formula on the formula bar, so I will undo the change that
I just did by pressing Control + Z. And I see the formula on the formula bar
here, so I will click on the formula bar, and then I'll use the left arrow key to
move back, and hit Backspace to, again, delete the A, type a B and Enter. If
you find that moving within a formula using the arrow keys ends up adding
or deleting a cell references, then you can turn off that behavior by pressing
F2. That changes you to editing mode while you're editing that particular
cell. If you find that you can't edit within a cell, you can turn on that option.
To do that, go to the File menu, click Options, and then click Advanced. And
under editing options, which is here, make sure that allow editing directly in
cells is selected. After that option is checked, go ahead and click OK, and you
should be able to edit within the cells of a workbook. If you're editing a cell
and you decide that you want to stop editing it and not save any of the
changes that you've made, you can do so by pressing the Escape key. So for
example, if I double-click cell D3 and I decide that the formula is correct and
I don't want to make any changes, I can press Escape and the cell remains
selected but I'm no longer editing its contents. And as always, if you want to
undo a change, you can press Control + Z. And if you want to redo a change,
you can press Control + Y and reapply the last action that you had pressed
undo for.
QUIZ
If you type a formula into a cell and see the text of a formula rather than the
formula's result, what might have happened?
You misspelled the name of the function.
You used a semicolon instead of a comma to separate the formula's arguments.
You entered an incorrect value into one of the formula's arguments.
You put a space before the equal sign when you created the formula.
What do you call a statement entered into the cell of an Excel sheet that
calculates a value?
worksheet
formula
function
argument
Which built-in Excel function can be used to add the values of multiple cells?
ADD
CALCULATE
SUM
AVERAGE
If you copy the formula =C6*$B$1 to the cell directly below its current cell,
what formula will appear in the target cell?
The formula will result in an error.
=C6*$B$1
=C7*$B$2
=C7*$B$1
A1
$A$1
A$1
!!
&
OR
^
>
*
You can stop editing a cell and restore its previous contents by pressing
_____.
F2
Tab
F5
Esc
QUIZ
If you select a range of cells, where do summary calculations appear in the Excel program window?
Status bar
Formula bar
Name box
COUNT
COUNTN
COUNTIF
COUNTA
When using the COUNTIF function, what must be done to the criteria argument?
DIVIDE
COUNT
TRANSPOSE
MULTIPLY
Why should you use column labels such as Y2019 rather than a number such as 2019 when creating an
AutoSum formula?
Excel expects text labels in AutoSum ranges, so using 2019 will result in a #REF! error
AutoSum will include number labels in its formula and lead to an incorrect result
They will cause the SUM function to automatically convert into a COUNT function.
QUIZ
Formulas tab
Home tab
Data tab
sales
1month
D1
this year
Which formula calculates the sum of the Sales column in the SalesData table?
=SUM(Sales.SalesData)
=SUM(Sales)
=SUM(SalesData[Sales])
=SUM([Sales].[SalesData])
When you add a Total row to an Excel table, what function is used to summarize numerical values in the
right-most column?
AVERAGE
SUM
COUNT
QUIZ
Which data validation option will create a drop-down menu within a cell that contains a group of values
from which to choose?
Any value
Whole number
List
Text length
Which tab in the Data Validation dialog box contains the validation criteria?
Input Message
Error Alert
QUIZ
Which option in the Formula Auditing group allows you to step through a formula, one calculation at a
time?
Evaluate Formula
Show Formula
Error Checking
Watch Window
In formula auditing, a _____ cell provides values while a dependent cell receives values.
previous
requirement
precedent
dominant
How does Excel indicate that a cell contains a potential formula error?
A red exclamation point appears in the upper right corner of the cell.
CONCLUSION
Further resources
- [Instructor] Thanks again for your interest in the course. Before I go, I would
like to point out three resources that you can use to learn more about
formulas and functions in Excel. The first is the official Microsoft Support site,
which is support.office.com. You can find information about Excel and the
other office programs there. The first book I'd like to recommend is Microsoft
Excel step-by-step for Office 2021 and Microsoft 365. I co-authored this book
with Joan Lambert. It is a comprehensive introduction that gives you
information about formulas, and functions, and more. And a second book I'd
like to recommend is Microsoft Excel Pivot Table Data Crunching, again, for
Office 2021 and Microsoft 365. This was written by Bill Gellan. It is a terrific
book that will help you take the next step in analyzing your data in Excel.
Thanks again and good luck.