Excel Formulas and Functions Fo - Shipman, John
Excel Formulas and Functions Fo - Shipman, John
AND FUNCTIONS
FOR BEGINNERS 2021
A Practical Guide with illustrations on How to use Microsoft Excel
Formulas and Functions with Ease
John Shipman
Copyright
All rights reserved. No part of this book may be reproduced or used in any manner without
the prior written permission of the copyright owner, except for the use of brief quotations in a
book review.
While the advice and information in this book are believed to be true and accurate at the
date of publication, neither the authors nor the editors nor the publisher can accept any
legal responsibility for any errors or omissions that may be made. The publisher makes no
warranty, express or implied, with respect to the material contained herein.
Printed on acid-free paper.
Checking a formula
- When you enter a formula inside a cell, you will also see the
formula appearing in the formula bar. The space highlighted in
red below is the formula bar.
1. The SUM and the AVERAGE functions are nested within the IF
function.
Valid returns : When you use a nested function as an argument, the
nested function must be able to return the exact type of values that
the argument uses. For instance, the nested function must send
back a TRUE or FALSE value. If the function is unable to do this,
then Excel will bring a #VALUE! error value.
Nesting level limits : One formula can have up to 7 levels of nested
functions. When a particular function, say function B, is deployed, as
an argument in another function say Function A, we will say that the
function B is acting as a second level function. For instance, the
SUM function and the AVERAGE Function are considered to be
second-level functions if they are deployed as arguments of the IF
function. A function that is nested within the nested AVERAGE
function will now be considered as a third-level function, and so on.
Click Enter.
Define names from a selected range
Choose the range that you wish to name, including the
column or row labels.
Choose Formulas, and tap Create from Selection.
From the dialog box of the Create Names from Selection ,
assign the location containing the labels by clicking on the
Left column, Top row , Bottom row , or the Right column
check box.
Click OK .
Excel will assign names to the cells based on the labels in the
designated range.
Use names in formulas
Choose a cell and input a formula.
Position your cursor exactly where you plan to deploy the
name in the formula.
Enter the first letter of the name, and choose the name from
the displayed list.
Click Enter.
6. Select OK .
The Step In button will not be available the second time the
reference shows in the formula—or if the formula refers to a cell in
another workbook.
5. Continue until every part of the formula has been completely
evaluated.
The Evaluate Formula tool will not necessarily indicate why your
formula is actually broken, but it can actually help to point out where
the formula is broken. This can be a very useful tool in larger
formulas where it can seem very difficult to troubleshoot the problem.
CHAPTER TWO
The “IF” function
The “IF” is among the most common functions in Excel, and it enables
users to carry out logical comparisons between expectations and a specific
value.
In essence, an IF statement can contain two results. The first result being
when the comparison is true, and the second result being when the
comparison is false.
For instance, =IF(B3=”Yes”,1,2) says IF(B3 = Yes, then return a 1, else
output a 2).
▪ =IF(C2=”Yes”,1,2)
In the case above, the cell D2 implies: IF(C2 = Yes, then return a 1, else
output a 2)
▪ =IF(C2=1,”Yes”,”No”)
In this instance, the formula in the cell D2 implies: IF(C2 = 1, then output
Yes, otherwise output No). It then becomes obvious that the “IF” function
can be deployed to evaluate both values and texts. The “IF” function can
as well be used to evaluate errors. With the “IF” function, you are not only
limited to confirming if one term is equal to another term and outputting a
single result, in fact you can deploy mathematical operators and carry out
extra calculations depending on what you want. Multiple “IF” functions can
also be nested together if you plan to do multiple comparisons.
▪ =IF(C2>B2,C2-B2,0)
In the example above, rather than returning a text result, mathematical
computations will be returned instead. The formula in E2 above implies
IF(Actual is Greater than Budgeted, then Subtract the Budgeted amount
from the Actual amount, else return nothing).
▪ =IF(E7=”Yes”,F5*0.0825,0)
In the case above, the formula in F7 implies IF(E7 = “Yes”, then compute
the Total Amount in F5 * 8.25%, otherwise no Sales Tax is due so return 0)
Note: If you want to have texts inside a formula, the text should be
wrapped in quotes. One exception to this is using the TRUE or FALSE,
which Excel actually understands.
Using the “IF” function to confirm if a cell is
blank
Sometimes you will have to confirm if a particular cell is blank, maybe
because you don't know your formula to bring an output without a tangible
input.
In a case like this, you can deploy the IF with the ISBLANK function:
▪ =IF(ISBLANK(D2),"Blank","Not Blank")
Which means that IF(D2 is blank, then return "Blank", else return "Not
Blank") . You can as well decide on your own formula to be used for the
"Not Blank" condition. In the following case, we will be using "" instead of
ISBLANK. The "" actually means "nothing".
=IF(D3="","Blank","Not Blank")
The above formula implies IF(D3 is nothing, then return "Blank", else "Not
Blank") . See below for a common means of using "" to prevent your
formula from calculating if a dependent cell is actually blank:
▪ =IF(D3="","",YourFormula())
IF(D3 is nothing, then return nothing, else calculate your formula).
Simple syntax
Generally, the IFS function has a syntax that looks like the one below;
=IFS([Something is True1, Value if True1,Something is True2,Value if
True2, Something is True3,Value if True3)
Please note that the IFS function can actually allow users the chance to
test up to 127 different conditions. However, it is not advisable to nest too
many conditions with the IFS or IF statement. This is actually because we
don't recommend nesting too many conditions with IF or IFS statements.
This is because multiple conditions need to be entered in the correct order,
and can be very difficult to build, test and update.
Example 1
Remarks
▪ At a time, each range's criteria will be applied to one cell. The count
will normally increase by one (1) if all of the first cells actually meet their
associated criteria. The count will usually increase by one (1) again
when all of the second cells also meet their associated criteria, and this
will continue until all cells have been evaluated completely.
▪ Any cell that is empty is treated as zero value by the COUNTIFS
function if the criteria argument is a reference to an empty cell.
▪ You can deploy the wildcard characters— consisting of the question
mark (?) and an asterisk (*) — in criteria. The question mark will match
any single character, while the asterisk will match any character
sequence. To find an actual asterisk or an actual question mark, simply
insert a tilde (~ ) before the character.
You will be able to combine the Alt key with the Key Tips letters to produce
the Access Keys shortcuts for the ribbon options. For instance, click Alt+H
to access the Home tab, and click on Alt+Q to scroll to the Search field
or Tell me field. Click on the Alt key once again again to access the
KeyTips for the options for the selected tab.
In the Office 2013 and the Office 2010, some of the old Alt key menu
shortcuts will still work, too. Nonetheless, you will still have to know the
complete shortcut. For instance, click Alt, and then click on one of the old
menu keys E for (Edit), V for (View), I for (Insert), and so on. You will
receive a notification pops up telling you that you are using an access key
from an earlier version of Microsoft Office. If you know the entire key
sequence, go ahead and use it. If you don't know the sequence, press Esc
and use Key Tips instead.
Use the Access keys for ribbon tabs
To go straight to a tab on the ribbon, click one of the access keys below.
You might see additional tabs depending on what you select in the
worksheet.
▪ Data
This tab will be used to import data from different sources, sort the data
and filter it, and also enjoy data tools like the “remove duplicate rows” tools.
▪ Review
Check the spelling and accessibility of your worksheet, and collaborate
with others using comments and notes.
▪ View
Select a view such as Normal View or Page Layout view, and set the
page zoom level.
▪ Help
This tab is used to access the Microsoft Excel Help, contact support, and
drop feedback.
In addition to the ribbon tabs, you will also need to access the File menu
for some other important commands. To open the File menu, use the Alt+F
shortcut. The File menu will be launched in a new pane. To explore the
main commands, deploy the Down and the Up arrow keys, then utilize the
Tab key and the Up and Down arrow keys to explore the various options for
that particular command.
From the File menu, a new workbook can be initiated, save a file, launch
an existing workbook, share or print the document you are working on
currently, and also access Excel options. To dismiss the File menu and get
back to your worksheet, click on the Esc button.
Use Search
To navigate through an option or to quickly carry out a particular action,
utilize the Search field. To do this, follow the prompts below;
1. Select the place or the item in your Excel spreadsheet where you
plan to carry out an action. For instance, click on a range of cells in
your spreadsheet.
2. Use the Alt+Q shortcut to navigate to the Search field.
3. Fill in the search words for the exact action that you wish to carry
out. For instance, if you wish to insert a bulleted list, simply
type bullets.
4. Deploy the Down arrow key to navigate through the results.
5. Once you have seen the result that you need, click Enter to select
the result and to carry out the action.
VLOOKUP
Use the Vlook up when you need to locate items in a table or range by
rows.
1. Choose a cell.
2. Input =VLOOKUP( and then choose the value that you want Excel
to lookup.
3. Enter a comma (,) and then choose the table or range to look for
that value.
4. Enter a comma (,) and the exact number of the column where that
lookup value is actually located.
5. Enter ,FALSE) to locate an exact match.
6. Click Enter.
▪ The field that links the tables (this will be listed for you in parentheses
in the dialog box): This is actually the lookup_value for the VLOOKUP
formula.
▪ The Related Lookup Table name: This will represent the table_array
in the VLOOKUP formula.
▪ The field (column) from the Related Lookup Table that features the
data you need in your new column: You will not be able to see this
information inside the “Manage Relationships” dialog – as you will have
to look at the Related Lookup Table to know which field you actually
want to retrieve. You may decide to note the column number of that
column (A=1) - this will be the col_index_num in your formula.
4. If you wish to add an extra field to the new table, fill in your
VLOOKUP formula inside the first empty column by using the
information that you have gathered in step 3.