Excel Basic and Advanced Formulas
Excel Basic and Advanced Formulas
Body Copy goes here. Typeface is Arial. Type size is 22/24. Flush left.
Dias abora quate consequam is accatur, con ne nullecaborem
nonecaeptate exped.
Second level is 16/18 iducimint lanim que doluptassi venis
vel im as non ne laceptatur.
Quasit volorem porrore nis aut porem.
Nisquist quibis rerspis ex eicend.
Enditiorum evendelic tenisquistis aliquid.
Objectives
Mouse
You may click on any sheet tab to go to that sheet.
Keyboard
Press [CTRL][PAGE DOWN] to move to the next sheet, or [CTRL][PAGE UP]
to move to the previous sheet.
If the sheet required is not in view, use the tab scrolling buttons to display the
sheet.
The last tab is to create a new worksheet, be careful or any new sheets may
need to be deleted
Home: This tab contains the basic Clipboard commands, formatting commands,
style commands, commands to insert and delete rows or columns, plus an
assortment of worksheet editing commands
Insert: Select this tab when you need to insert something in a worksheeta table,
a diagram, a chart, a symbol, and so on.
Page Layout: This tab contains commands that affect the overall appearance of
your worksheet, including settings that deal with printing.
Formulas: Use this tab to insert a formula, name a range, access the formula
auditing tools, or control how Excel performs calculations.
Data: Excels data-related commands are on this tab.
Copyright 2014 Accenture All rights reserved.
Review: This tab contains tools to check spelling, translate words, add comments,
or protect sheets.
View: The View tab contains commands that control various aspects of how a
sheet is viewed. Some commands on this tab are also available in the status bar.
Developer: This tab isnt visible by default. It contains commands that are useful
for programmers.
Note: To display the Developer tab, choose Office Excel Options and then
select Popular. Place a check mark next to Show Developer Tab In The Ribbon.
Add-Ins: This tab is visible only if youve loaded a workbook or add-in that
customizes the menu or toolbars. Because menus and toolbars are no longer
available in Excel 2007, these customizations appear in the Add-Ins tab.
10
11
12
13
14
15
16
17
Note: You can bring up the Format Cells dialog box by several ways :
Choose Home Number and click the small dialog launcher icon.
Right-click and choose Format Cells from the shortcut menu
Press the Ctrl+1 shortcut key
Copyright 2014 Accenture All rights reserved.
18
19
20
21
22
Minimi
ze
Maximi
ze
Restor
e
Copyright 2014 Accenture All rights reserved.
23
24
25
To delete multiple sheets, press Ctrl while you click the sheet tabs that you want to
delete.
26
Changing the Number of Sheets : Three ways to add a new worksheet to a workbook:
1. Choose Office Excel Options to display the Excel Options dialog box.
2. In the Excel Options dialog box, click the Popular tab.
3. Change the value for the Include This Many Sheets setting and click OK.
27
28
To prevent others from unhiding hidden sheets, inserting new sheets, renaming sheets,
copying sheets, or deleting sheets, protect the workbooks structure:
Choose Review Changes Protect Workbook.
In the Protect Workbook dialog box, click the Structure option.
Provide a password, if you like.
Very Hidden
A sheet that is very hidden doesnt appear in the Unhide dialog box :
Activate the worksheet.
Choose Developer Controls Properties. The
Properties dialog box appears.
In the Properties dialog box, select the Visible option and
choose 2 xlSheetVeryHidden.
The only way to unhide such sheet is to use a VBA macro.
E.g.,- VBA statement to unhide Sheet1 in the active workbook:
ActiveWorkbook.Worksheets(Sheet1).Visible = True
Copyright 2014 Accenture All rights reserved.
29
30
31
To remove the frozen panes, choose View Window Freeze Panes, and select
the Unfreeze Panes option from the drop-down list.
Copyright 2014 Accenture All rights reserved.
32
33
34
35
36
37
Function Box
There are some functions that are accessed more than others and for that
reason Excel gives you a slightly quicker method for entering them than the
Paste function dialog. The Function box, groups the most commonly used
functions for quick and easy access.
To enter a function using the Function box:
Mouse
i. Type the equals sign (=) on the formula bar (or
directly into your cell). Excel displays the function
box to the left of the Formula bar.
ii. Click the dropdown list arrow to the right of the
function box to display a list of function names.
iii. Select the function you require by clicking its
name from the list.
OR
i. If your function is not listed, click the More
Functions...
option to access the Paste function dialog (see
above for instructions).
Copyright 2014 Accenture All rights reserved.
38
38
39
40
Description
Syntax
SUBSTITUTE
REPLACE
41
42
43
Description
Syntax
NOW
NOW()
TODAY
TODAY()
Example : NOW
Example : TODAY
44
DATE & TIME YEAR, MONTH, DAY, HOUR, MINUTE and SECOND
All of these functions take a date/time as input and spit out the particular piece that youre
asking for. They differ from TEXT above in that they always return integer numbers and
are primarily used doing further processing rather than presentation.
Syntax & Example :
45
Explanation
Years - The number of complete years.
Months - The number of complete months.
Days - The number of days.
Days Excluding Years And Months - The difference between the days.
Months Excluding Years - The difference between the months.
Days Excluding Years - The difference between the days
46
Example :
47
48
LOGICAL - IF Functions
The Excel IF function tests a user-defined condition and returns one result if the
condition is true, and another result if the condition is false.
Syntax : IF( logical_test, value_if_true, value_if_false )
logical_test - The user-defined condition that is to be tested and evaluated as
either TRUE or FALSE
value_if_true - The result that is to be returned from the function if the supplied
logical_test evaluates to TRUE
value_if_false - The result that is to be returned from the function if the supplied
logical_test evaluates to FALSE
49
50
This part of the IF statement is the "condition", or test. You may want to test to see
if a cell is a certain value, or to compare two cells. In these cases, symbols called
LOGICAL OPERATORS are useful;
51
LOGICAL - IFERROR
The Excel Iferror function tests if an initial supplied value (or expression) returns
an error, and if so, returns a second supplied argument; Otherwise the function
returns the initial tested value.
Syntax : IFERROR(value,value_if_error)
value - The initial value or expression that should be tested
value_if_error - Value or expression to be returned if the initial value argument
returns an error.
52
AND : Tests a number of user-defined conditions and returns TRUE if ALL of the
conditions evaluate to TRUE, or FALSE otherwise
The following example checks that two cells, B1 and B2, are both greater than
100.
=AND(B1>100,B2>100)
53
If either one of these two cells contains a value less than a hundred, the
result of the AND statement is "FALSE. This can now be wrapped inside an
IF function to produce a more meaningful result. You may want to add the
two figures together if they are over 100, or display a message indicating
that they are not high enough.
=IF(AND(B1>100,B2>100),B1+B2,"Figures not high enough")
54
In the above formula, only one of the numbers in cells B1 and B2 has to be
over 100 in order for them to be added together. The message only appears if
neither figure is high enough.
55
The NOT function can only contain one argument. If it is necessary to check that
more than one argument is false, the OR function should be used and the true
and false values of the IF statement reversed. Suppose, for example, a check is
done against the numbers 13 and 666;
=IF(OR(B1=13,B1=666),"Unlucky!",B1)
56
INFORMATION ISERROR
ISERROR Tests if an initial supplied value (or expression) returns an error and if so,
returns TRUE; Otherwise returns FALSE
Syntax : ISERROR( value )
Where the supplied value argument is either a directly supplied value, a result from a
formula, or a cell reference, that you want to test.
In the examples above, the arguments to the Iserror function calls are :
Simple values in cells B1 - B3
Expressions in cells B4 & B5 (note the division by zero in cell B4 will produce
the #DIV/0! error)
Cell references in cells B6 & B7
Copyright 2014 Accenture All rights reserved.
57
LOOKUP FUNCTIONS
Ribbons
Excel can produce varying results in a cell, depending on conditions set by you. For
example, if numbers are above or below certain limits, different calculations will be
performed and text messages displayed. The usual method for constructing this
sort of analysis is using the IF function. However, as already demonstrated, this can
become large and unwieldy when you want multiple conditions and many possible
outcomes.
To achieve this, Excel provides some LOOKUP functions. These functions allow you
to create formulae which examine large amounts of data and find information which
matches or approximates to certain conditions. They are simpler to construct than
nested IFs and can produce many more varied results
Lookup
Before you actually start to use the various LOOKUP functions, it is worth learning
the terms that you will come across, what they mean and the syntax of the function
arguments.
58
59
60
61
62
63
64
65
66
67
Example :
68
69
In this example, the initial investment of $10,000 (shown in cell B2), is made at
the start of the first period. Therefore, this value is not included in the
arguments to the NPV function. Instead it is added on afterwards.
If the investment was added one year (or period) into the investment, this would
then be the first value1 argument in the NPV function.
70
Note: In Excel 2007 or 2010, you can enter up to 255 number arguments to the
Excel Sum function, but in Excel 2003, the function can only handle up to 30
arguments.
Copyright 2014 Accenture All rights reserved.
71
You can use this function to say to Excel, Only total the numbers in the
Total column where the entry in the Customer column is Viking Supplies.
The syntax of the SUMIF() function is detailed below:
=SUMIF(range,criteria,sum_range)
Sum range these are the actual cells to sum. The cells in sum range are
summed only if their corresponding
cells in range match the criteria. If sum range is omitted, the cells in range
are summed.
72
73
74
75
76
Description
Syntax
MAX
MIN
Value : Where the number arguments are a set of one or more numeric
values, or arrays of numeric values, that you want to return the largest /
smallest value of.
77
Description
SMALL
Syntax
78
COUNT
Description
Syntax
COUNTA
79
Results
Example : COUNTA
Formula:
Results
Example : COUNTBLANK
Formula:
Results
80
STATISTICAL COUINTIF
Function
Description
Syntax
Criteria : A user-defined condition that is tested against each of the cells in range.
81
STATISTICAL - COUNTIFS
Function
Description
Syntax
COUNTIFS
82
STATISTICAL - RANK
Function
Description
Syntax
RANK
Number : The value for which you want to find the rank
ref : An array of values containing the supplied number
[order] : An optional argument which defines whether the ref list should be ordered
in ascending or descending order. The [order] argument can take the value 0
(descending order) or 1 (ascending order), meaning :
By default it will take the value of 0 (ie. descending order).
83
STATISTICAL - AVERAGEIF
Function
Description
Syntax
AVERAGEIF
84
STATISTICAL - AVERAGEIF
85
STATISTICAL - AVERAGEIFS
Function
Description
Syntax
AVERAGEIFS
average_range : An array of numeric values (or cells containing numbers) for which
the average is to be calculated, if the corresponding criteria_range entries satisfy all
the supplied criteria.
criteria_range1 [criteria_range2], ... : Arrays of values (or ranges of cells containing
values) to be tested against the respective criteria1, criteria2, ...
Note: The supplied criteria_range arrays must all have the same length.
the values in
The function is not case-sensitive. Each of the supplied criteria can be either:
- numeric values (including integers, decimals, dates, times, and logical values) (eg.
10, 01/01/2008, TRUE)
- text strings (eg. "Text", "Thursday") - MUST be supplied in quotes
- expressions (eg. ">12", "<>0") - MUST be supplied in quotes
Copyright 2014 Accenture All rights reserved.
86
87
LISTS
Excels tabular layout makes it an ideal tool to use for managing lists of data. There
are many commands that you can use to manipulate list data, which are described
in this section, however, before discussing those, it is worth reviewing the best way
to lay out a list in Excel.
Do
MAKE THE FIRST ROW OF YOUR LIST THE COLUMN HEADINGS THAT
DESCRIBE THE DATA.
Do Not
USE AMBIGUOUS WORDS AS COLUMN HEADINGS (E.G. SUM, SUBTOTAL)
AS EXCEL MAY
CONFUSE THEM WITH FUNCTIONS OR NAMES THAT YOU HAVE DEFINED.
USE PUNCTUATION IN COLUMN HEADINGS.
LEAVE A GAP BETWEEN THE COLUMN HEADINGS AND THE FIRST ROW OF
DATA.
LEAVE BLANK ROWS BETWEEN LIST DATA.
88
Where you have lists with lots of columns and rows, you may need to sort
by more than one column. For example the list of orders below has been
sorted by customer, within the customer grouping, you may want to sort by
Product and then by Salesperson.
Quick Sort
Mouse
Click in the column you wish to sort by
DO NOT HIGHLIGHT ANY DATA
Go to the DATA ribbon and the SORT & FILTER group.
Click on the QUICK SORT buttons ascending or descending
Data should now be sorted
89
90
Mouse
Click in the middle of the list you want to sort.
Go to the DATA ribbon and the SORT & FILTER group. And click on the SORT
button
Excel recognizes the column headings from your list and allows you to pick them
from dropdown list boxes in the dialog.
Choose the column you wish to sort by from the drop down box in the column
section
If you have various formats on your cells you can sort on more than just the value
click on drop down arrow to see further options
Set ASCENDING or DESCENDING order for the sort by clicking the relevant
option.
Click on ADD LEVEL, level will be added to the main area
Repeat previous procedure to add more levels of sort
If you wish to change the order of sort. Select the level you wish to change and click
on the movement arrows to move level up or down
To remove a level select it and click on the delete level button it will be removed
Click OK to perform the sort.
Copyright 2014 Accenture All rights reserved.
91
SUBTOTALS
Excel can automatically add subtotals to a list of data. Your subtotals can
sum numeric data or find highest and lowest values and averages. You can
also count the number of rows in a group.
Organizing The List For Subtotals
When you issue the subtotals command, Excel will need to know where to
add the subtotals in. In the example below, if you wanted to see subtotals for
the revenue generated per product, you would first need to sort the list into
Product order. Similarly, if you wanted to see how much each salesperson
had sold; you would sort the list by Salesperson before adding the subtotals
in.
92
Mouse
i. Once you have sorted the list, choose SUBTOTALS from the OUTLINE
group on the DATA ribbon. The following dialog box will appear:
ii. Click the dropdown list arrow to the right of the 'at each change in box to
display your column headings. Pick the heading according to which column
you have used to group the data.
iii. Click the dropdown list arrow to the right of the Use function box to
display a list of functions you can use to summarize data in your list.
Click the function that you want.
iv. Use the scroll arrows in the Add subtotal to list to set which columns you
want to add the subtotals to. Check the box next to the column to subtotal.
You can add subtotals to more than one column.
v. Set options for the new subtotals using the check boxes at the bottom of
the dialog.
vi. If you want each subtotaled group on a separate page, check
Page Break between groups.
vii. Summary below detail adds subtotals and an overall total
BELOW the groups of data rather than above.
93
Text to Columns
To separate the contents of one Excel cell into separate columns, you can use the
'Convert Text to Columns Wizard'.
For example, when you want to separate a list of full names into last and first names, do
the following steps :
1. Select the range with full names.
2. On the Data tab, click Text to Columns.
3. Choose Delimited and click Next.
4. Clear all the check boxes under Delimiters except for the Comma and Space check
box
Input
Output Data
5. Click Finish.
Data
94
95
2. Ensure that each column in the data range has a unique header
and the data does not contain any blank rows.
3. Click on the Pivot Table button, which is generally
(in 2010 or 2007) located on the left, within the 'Insert' tab.
4. You will be presented with the window
entitled 'Create PivotTable'
Note: Make sure that the selected range is the
range that you want to use for your Pivot Table.
96
97
Conditional Formatting
By applying conditional formatting to your data, you can quickly identify variances
in a range of values with a quick glance.
One of the major improvements is the ability to handle more than 3 conditions.
There are also several new types of formatting.
Select the cell(s) to be formatted and then select the Conditional
Formatting option on the Styles tab of the main Home toolbar.
This will cause the drop-down menu to appear.
This menu allows you to select the type of Excel Conditional
Formatting that you want to apply to your cell(s).This can be :
Highlight Cells Rules - Apply formatting to cells that satisfy a
specific condition (eg. greater than, equal to, etc).
Top/Bottom Rules - Apply formatting to cells that satisfy a
statistical condition in relation to other cells in the range.
Data Bars / Color Scales / Icon Sets - Apply formatting to all
cells in the range, depending on their value in relation to one another.
98
99
Save the file as csv and load back to get rid of pivot table format, but reorganized data.
100
101
102
103
104
105
106
By default, Excel uses the Disable All Macros With Notification option. With this
setting in effect, if you open a workbook that contains macros (and the file is not
digitally signed), the macros will be disabled,
Copyright 2014 Accenture All rights reserved.
107
108
109
110
111
THANK YOU
112