Professional Documents
Culture Documents
Excel Advanced: User Guide
Excel Advanced: User Guide
User Guide
November 2010
LB
Table of Contents
Chapter I: Advanced Statistical Functions ...................................................................................... 3
COUNT, COUNTA and COUNTIF Functions .......................................................................................... 3
SUMIF Function ................................................................................................................................... 4
Nested IF Functions ............................................................................................................................. 4
Other Nested Functions in a IF FunctIon ............................................................................................. 5
Chapter II: Goal Seek .................................................................................................................... 7
Chapter III: Lookup and Index Functions........................................................................................ 9
Lookup Function .................................................................................................................................. 9
INDEX Function .................................................................................................................................. 10
Chapter IV: Databases ................................................................................................................ 13
Database Elements ............................................................................................................................ 13
View and Hide Columns .................................................................................................................... 13
Sort Data............................................................................................................................................ 13
Subtotals............................................................................................................................................ 14
AutoFilters ......................................................................................................................................... 15
Advanced Filters ................................................................................................................................ 17
Chapter V: Pivot Tables .............................................................................................................. 18
Create a Pivot Table .......................................................................................................................... 18
Fill your Pivot Table ........................................................................................................................... 19
Change theType of Calculation ......................................................................................................... 19
Change the Layout............................................................................................................................. 19
Update your Pivot Table .................................................................................................................... 19
Excel 2010 Pivot Table Improvements .............................................................................................. 20
Chapter VI: Grouping Sheets ....................................................................................................... 22
Chapter VII: Consolidation .......................................................................................................... 23
Consolidate by Position ..................................................................................................................... 23
Consolidate by Category ................................................................................................................... 23
Chapter VIII: Protection .............................................................................................................. 25
Keyboard Shortcuts .................................................................................................................... 27
LET’S PRACTICE
Objective:
Using the COUNT functions
After a survey, you would like to know how many families were questioned, how many answered,
and how many have more than 2 children.
A B C
1 FAMILIES NUMBER OF CHILDREN
2 Papin 4 Number of
3 Fallepa No answer families
4 Van der Berg 1 11
5 Deschamps 3
6 Vanek 2 Number of
7 Salomon 0 answers
8 Mantilla 3 9
9 Tangui 1
10 Coulour No answer Number of families with
11 Manson 2 more than 2 children
12 Guilleri 4 4
1 Click on cell C4 and type:
=COUNTA(B2:B12)
2 Click on cell C8 and type:
=COUNT(B2:B12)
3 Click on cell C12 and type:
=COUNTIF(B2:B12;">2")
In this example, there are 2 teams in a competition. In each team, the members received some
points. You need to add the number of points of each team. The criteria is the team number (1 or
2).
A B C
1 Team Number of points
2 Alain 1 25
3 Maurice 2 25
4 José 1 18
5 Mara 2 24
6 Andrea 2 21
7 Laurent 1 22
8
9 Sum 1 65
10 Sum 2 70
1 Click in C9
2 Type : =SUMIF(B2:B7;B9;C2:C7)
3 Do the same for C10.
4 You can copy the formula with the fill handles. In this case, you need to type:
=SUMIF($B$2:$B$7;B9;$C$2:$C$7)
NESTED IF FUNCTIONS
The IF function evaluates a condition (a logical test). If the condition is met (true), the value called
“value if true” is shown. If the condition is not met (false), the value called “value if false” is shown.
The syntax of the IF function is:
=IF(logical test;value if true;value if false)
It is possible to nest multiple IF functions within one formula. The “value if false” argument can be
replaced by another IF function. The syntax will be:
=IF(logical test;value if true; IF(logical test;value if true;value if false))
Conditions
Annual revenue Limit Category
Smaller or equal to $ 30’000 Small revenue
Smaller or equal to $ 55’000 Medium revenue
More than $ 55’000 Large revenue
A B C
1 Annual revenue Category
2 Paul $ 45’000 medium revenue
3 Peter $ 55’000 medium revenue
4 Jean $ 28’000 small revenue
5 Susy $ 121’000 large revenue
6 Arancha $ 98’000 large revenue
7 Paulina $ 18’650 small revenue
8 José $ 51’500 medium revenue
9
10 Sum small revenue $ 46'650
11 Sum medium revenue $ 151’500
12 Sum large revenue $ 219’000
LET’S PRACTICE
Objective:
Using nested AND and OR functions with an IF function
In this exercise, you need to know if a candidate meets the criteria for the job.
First, the candidate must meet all the conditions: speak at least 2 languages AND have good
computer knowledge.
Then, the candidate must meet at least one condition: speak at least 2 languages OR have a good
computer knowledge
Show OUI for candidates corresponding to the criteria and NON for the others.
A B C D E
Compétences
Nb de langues Décision Décision
1 en
parlée (ET) (OU)
informatique
2 Alain 2 Bonne Oui Oui
3 Maurice 3 Aucune Non Oui
4 José 2 Bonne Oui Oui
5 Mara 1 Aucune Non Non
6 Andrea 1 Bonne Non Oui
7 Laurent 2 Aucune Non Oui
8 Chantal 4 Bonne Oui Oui
9 Basile 3 Bonne Oui Oui
10 Nicolas 2 Aucune Non Oui
11 Véronique 1 Bonne Non Oui
LET’S PRACTICE
Objectives:
Using Goal Seek
Using a new function. The function FV( ) is useful to calculate an investment. The syntax
is: =FV(rate;nper;pmt)
Function Signification
LOOKUP FUNCTION
The LOOKUP function provides the possibility to find values in a list or a table. The column or the row
where Excel makes the search must be sorted in an ascending order.
The LOOKUP function always has 3 arguments:
WHAT : we are looking for the value in a specific cell.
WHERE : we are looking for the value of that cell in a specific range.
RESULT : find the value to return in a specific range.
LET’S PRACTICE
Objective:
Using the LOOKUP function alone and nested in a IF function.
In this exercise, you must find the name and the category of the participants by using their
number.
A B C D
1 Number Participant Category
2 125 Godreche Junior
3 126 Van Khun Cadet A
4 127 Bilbo Cadet B
5 128 Petrovich Cadet A
6 129 Marcovitch Cadet B
7 130 Reuter Junior
8 131 Jenking Junior
9 132 Poussin Cadet A
10 133 Welter Junior
11
12 Time Number Participant Category
13 25.54 min 130 Reuter Junior
14 23.25 min 133 Welter Junior
15 41.20 min 128 Petrovich Cadet A
16 19.23 min 125 Godreche Junior
17 16.24 min 131 Jenking Junior
18 18.26 min 127 Bilbo Cadet B
1 Click inC13. Use function LOOKUP to find the participant’s name corresponding to the
number (column B)
WHAT : we are looking for the value ofB13
WHERE : in rangeA2:A10
RESULT : to be found in rangeB2:B10 (name).
2 Type the formula and press ENTER
3 The formula is:
=LOOKUP(B13;$A$2:$A$10;$B$2:$B$10)
4 Click in D13 and write the LOOKUP function to find the category.
IF B13 is empty, nothing should appear, but if it’s not the case the LOOKUP function should be
executed.
INDEX FUNCTION
The INDEX function returns the value of the cell at the intersection of a particular row and column, in
a given range. The syntaxis: =INDEX(range;row_num)
Fonction Signification
range Range of one or several cells.
row_num Selects the number of the row from which to return the value (1 is the first row of the
range).
2 In cell B3 type the formula to calculate the amount of the loan: =B1*(1-B2)
3 In cell B6 type the PMT formula to find the payment amount per month
=PMT(B4/12;B5*12;B3)
Cell B4 contains the annual rate. Divide by 12 for the monthly rate.
Cell B5 contains the annual duration. Divide by 12 for monthly payments.
4 Prepare the following table:
E F
1 Car Price
2 BMW série 3 SFr. 40'000
3 Alfa 156 SFr. 25'000
4 Peugeot 306 SFr. 18'000
5 Opel Vectra SFr. 24'000
6 Citroën ZX SFr. 22'000
7 Rover 600 SFr. 38'000
5 Under the Developer tab, in the Controls group, click Insert -> Combo Box .
6 Draw a combo box button.
DATABASE ELEMENTS
A database requires column headers in the first row. We call these headers field names, because
each column is a field. Each row in the database is called a record. For example, each address of a list
of addresses is a record.
1 Select the column you want to hide by clicking on the column’s letter.
2 Right click on your selection -> Hide.
3 The selected column is hidden.
4 To view the column again, select the column to the right and the column to the left of the
hidden column.
5 Right click on your selection->Unhide.
Rows can be hidden in the same way.
SORT DATA
The buttons Sort A to Z (1 to 999, A to Z) and Sort Z to A (999 to 1, Z to A) are useful to sort by one
column.
You can sort your data based on several criteria at once. The first criterion has priority.
To do this you need to make a custom sort:
1 Click on a cell of your table. Under the Home tab, in the Edition group, click on Sort and Filter -
>Custom sort.
SUBTOTALS
You can use Excel Subtotals feature to subtotal data in a sorted list. To subtotal a list, you first sort
the list on the field for which you want the subtotals, and then you designate the field that contains
the values you want summed — these don’t have to be the same fields in the list.
1 Sort the list on the field for which you want subtotals inserted.
2 Click the Subtotal button in the Outline group on the Data tab.
3 The Subtotal dialog box appears.
4 Select the field for which the subtotals are to be calculated in the At Each Change In drop-down
list.
5 Specify the type of totals you want to insert in the Use Function drop-down list.
6 Select the check boxes for the field(s) you want to total in the Add Subtotal To list box.
7 Click OK. Excel adds the subtotals to the worksheet.
AUTOFILTERS
In a list, it is often useful to show only the rows corresponding
to one or several criteria. For example, only the customers of a specific city, or those who have not
ordered anything since last year, etc. A filter can do this. The autofilter lets you define quickly simple
criteria.
1 Click on a cell of your table, Under Home, in the Edition group, click Sort and Filter -> Filter.
2 A dropdown arrow appears besides each column heading.
3 Choose a criterion from one of the dropdown lists. Confirm with OK.
4 Rows that don't meet the criteria will be hidden.
5 To further filter the list, choose from another column's dropdown list.
To show everything again, under Home, in the Edition group, click Sort and Filter ->Clear.
To remove autofilter dropdown arrows, click again on Sort and Filter-> Filter.
CUSTOM AUTOFILTERS
To select your records more precisely, you can use the custom autofilter.
Zone Description
Values To show totals.
Row Labels To show fields in rows
Column Labels To show fields in columns
You need to summarize and analyze the results by country, by month and by seller.
Let’s practice
Objective:
Creating and using a group of sheets
You need to type the results of Q1 and Q2.
Q1 Q2 Total
CONSOLIDATE BY POSITION
1 Click the upper-left cell of the area where you want the consolidated data to appear.
2 Under the Data tab, in the Data Tools group, click Consolidate. A dialog box appears.
3 In the Reference box, indicate the first range (select only the numbers). Click Add.
4 Repeat this last step for every range you want to consolidate.
5 Click OK.
CONSOLIDATE BY CATEGORY
1 Click the upper-left cell of the area where you want the consolidated data to appear.
2 Under the Data tab, in the Data Tools group, click Consolidate. A dialog box appears.
3 In the Reference box, indicate the first range (labels and numbers). Click Add.
4 Repeat this last step for every range you want to consolidate.
5 Select the check boxes under Use labels in that indicate where the labels are located in the
source ranges: either the Top row, the Left column, or both.
6 Click OK.
Let’s Practice 1
Objective 1:
Consolidate by position
Let’s take the example seen in the Grouping sheets chapter. Let’s consolidate the tables Q1 and
Q2 into the sheet Total.
1 In the sheet Total, select the first empty cell (next to Cosmetics).
2 Under the Data tab, in the Data Tools group, click Consolidate.
3 Click in the Reference box. Click sheet Q1 and select the 3 cells containing numbers. Then
click Add.
4 Do the same for sheet Q2.
5 Click OK.
Let’s practice
Objective:
Protect a worksheet
You created a pay sheet for all your staff. Some data are the same for everybody and can be
protected to be sure they don’t change (rates, etc.) Other data are different from one employee
to another (number of hours, salary per hour).
4 Under the Review tab, in the Changes group, click Protect Sheet.
5 For more security, you can add a password.
6 When you type a password, you need to type it a second time.
7 To move from one unlocked cell to another one, use the Tab key.
To remove the protection, under the Review tab, in the Changes group, click Unprotect Sheet.
FORMATTING
Cell Format CTRL + 1
Bold CTRL + G
Italic CTRL + I
Underline CTRL + U
Standard Format CTRL + R
Line Break ALT + ENTER
OTHER
Insert a row CTRL + +
Insert a sheet MAJ + F11
Insert a function MAJ + F3
Complete List
To see the complete list of shortcuts, press F1, and type «shortcuts» in the
text zone.