Excel Training Course Overview
Excel Training Course Overview
Excel Training
Advanced
The "ribbon"
Since Office 2007, a 'ribbon' replaces toolbars and menus; the most functions
tools are grouped into tabs (Home, Insert, Page Layout, Formulas, Data,
Revision, Display and Supplements.
Select a column: click on the column header; drag to extend the selection.
Copy a cell: click on the fill handle and drag down or to the right. Hold the
Pressing Ctrl allows you to copy values with or without incrementing. Double-click on the
copying point to copy down in an already filled table.
Move a cell or range of cells: select the cell or range of cells, click
on the contour of the selection and drag.
Insert a row or a column: select the row or column, right-click and Insert.
Select multiple rows or columns to insert multiple rows or columns.
Editing touches
Ctrl+ C Copier
Ctrl+ X To cut
Ctrl+ V Paste
Ctrl+Z Cancel
Copy
Ctrl + B Copy down
Ctrl+ D Copy to the right
Add to selection
Ctrl + Click
Function keys
Entry Validate
F1 Help
May + F2 Add / Edit a comment
May + F3 Insert a function
F4 Repeat the previous action
F5 Show the dialog box Reach
Maj + F5 Display the dialog box Search and Replace
1
Ctrl + Maj + & Display the cell format dialog box
In D2, enter the formula: =B2*C2 and copy it down (from D2 to D16).
You can use the arithmetic operators '+' (plus), '-' (minus), '*' (multiplied by) and
« / » (divisé par) et le symbole « ^ » (élévation à la puissance) dans les formules.
Total HT
In D18, enter the formula: =SUM(D2:D16).
SUM is a built-in function; to insert a function:
– to the left of the formula bar: click on surfx(insert a function), select the function, and
enter the arguments of this function;
– or: type "=" and select the function from the dropdown list Functions, to the left of the
formula bar. The list includes the 10 most recently used functions; if the desired function
is not listed in the selectedOtherfunctions...
– or: type the function name directly in the formula bar while respecting the
indicated syntax.
VAT and Total Amount Including Tax
In the Layout ribbon, buttons allow you to define the print area and insert
manually page breaks at the desired lines and/or columns.
Note: When copying down or to the right, Excel automatically increments the
row numbers and column letters in cell references.
Relative references
To display cell references in the form of relative references, you need to switch to mode
display "L1C1":
File: Options: Formulas: Formula manipulation. Check the L1C1 reference style box.
We then obtain:
A B C D
1 Designation PU Qty Amount
2 Apple 1,95 € 1 =LC(-2)*LC(-1)
3 Pear 2,35 € 2 LC(-2)*LC(-1)
4 Apricot 3,25 € 1 =LC(-2)*LC(-1)
5
6 Total =SUM(L(-4)C:L(-2)C) =SUM(L(-4)C:L(-2)C)
Tip: press the F4 key one or more times to place the character "$" in front of the
line number or column letter:
C6F4$C$6F4C$6F4$C2F4C6
In L1C1 display mode, we would obtain:
A B C C
1 Owner Surface Charges Charges
2 Peter Dupont 30 m2 3 000,00 € =L6C/SUM(L2C(-1):L4C(-1))*LC(-1)
3 Pauline Carton 90 m2 9 000,00 € =L6C/SUM(L2C(-1):L4C(-1))*LC(-1)
4 Jean Aymar 60 m2 6 000,00 € =L6C/SUM(L2C(-1):L4C(-1))*LC(-1)
5
6 Total amount of charges to be distributed 35 000,00 €
Statistical Functions
The functions Sum, Average, Count, and CountA
SOME Sum of a series of numerical values contained in one [or more] ranges
of cells.
AVERAGE Arithmetic mean of a series of numerical values contained in a [or
several cell ranges.
NB Number of cells containing a numeric value in one (or more) ranges
of cells.
NBVAL Number of non-empty cells (which can contain text or a numeric value)
in one [or several] ranges of cells.
Syntax: FUNCTION (range1; [range2]; [range3]; etc...).
The following formulas are equivalent:
AVERAGE(range) = SUM(range) / COUNT(range)
Always use the AVERAGE function to perform an average calculation!
The standard deviation is an indicator of dispersion; it expresses the typical deviation of values in a series.
at the average of these values: the lower it is, the more homogeneous the population is—and the higher it is,
the more heterogeneous the population is. The standard deviation is defined as being equal to the square root of the
variance.
Mathematical definitions:
ni xi ni xi 2
mx Vx m2x σx Vx
n n
Application :
A B C D A B C D
Age Effective 2 Age Effective
1 xi ni ni× xI ni× xi 1 xI ni nI× xi ni× xi2
2 17 1 17 289 2 17 1=B3*A3 =B3*A3^2
3 18 3 54 972 3 18 3… …
4 19 3 57 1083 4 19 3... …
5 20 2 40 800 5 20 2... …
6 21 2 42 882 6 21 2... …
7 7
8 Sum 11 210 4026 8 Sum=SUM(B2:B6) … …
9 9
10 Average 19.09 10 Average = C8/B8
11 Variance 1.54 11 Variance=D8/B8-B10^2
12 Standard deviation1.24 12 Standard deviation = SQRT(B11)
We have the built-in functions VAR.P.N (variance) and [Link] (standard deviation); that is
the following series:
A B C
1 xi xi 2
2 15 225
3 8 64
4 16 256
5 5 25
6 13 169
7 18 324
8 8 64
9 12 144
10 12144
11 8 64
12
13 Average 11.50
14 Variance15.65
Standard deviation 3.96
The following formulas are equivalent:
=AVERAGE(C2:C11)-AVERAGE(B2:B11)^2 =SQRT(B15)
=VAR.P.N(B2:B11) =STDEV.P(B2:B11)
Logical functions
Excel reconnait les valeurs logiques VRAI et FAUX. On dispose également des opérateurs logiques
AND, OR and NOT in the form of functions.
Let there be two propositions P1and P2we can create the following truth table:
A B C D E
1 P1 P2 NON P1 P1ET P2 P1OR P2
2 FALSE FALSE =NOT(A2) =AND(A2,B2) =OR(A2,B2)
3 FALSE TRUE =NOT(A3) =AND(A3,B2) =OR(A3,B2)
4 TRUE FALSE =NOT(A4) =AND(A4,B2) OR(A4, B2)
5 TRUE TRUE =NOT(A5) =AND(A5,B2) =OR(A5;B2)
We obtain the following result:
A B C D E
1 P1 P2 NON P1 P1ET P2 P1OR P2
2 FALSE FALSE TRUE FALSE FALSE
3 FALSE TRUE TRUE FALSE TRUE
4 TRUE FALSE FALSE FALSE TRUE
5 TRUE TRUE FALSE TRUE TRUE
The IF function
The IF function is used when a result is subject to one or more conditions.
Syntax: IF (condition; [value if true]; [value if false])
IF functions can be nested to express complex conditions.
Simple example
A discount of 5% is granted for any order amounting to 5% or more.
A B C
1 Montant avant remise Remise Montant après remise
2 1 057,85 € 52,89 € 1 004,96 €
3 609,51 € 0,00 € 609,51 €
4 1 434,12 € 71,71 € 1 362,41 €
5928/02/1900
6029/02/1900
6101/03/1900
41 292 18/01/2013
41 293 19/01/2013
41 294 20/01/2013
2,958,465 31/12/9999
Hours correspond to a fraction of a day, and thus to a decimal number:
Number
Date and time
of series
41,293.00 01/19/2013 00:00 The day starts at midnight
41,293.25 01/19/2013 06:00 Six o'clock in the morning
41,293.50 01/19/2013 12:00 PM
41 293,75 19/01/2013 18:00 Dix-huit heures
To calculate the number of days that have passed between two dates, simply calculate the difference between them.
dates :
A B C A B C
Name Name
1 Start End 1 Beginning End
of days of days
2 01/01/2013 02/01/2013 1 2 01/01/2013 02/01/2013=B2-A2
3 01/06/2013 30/06/2013 29 3 01/06/2013 30/06/2013=B3-A3
4 01/01/2013 31/12/2013 364 4 01/01/2013 31/12/2013=B4-A4
N.B. : Pour afficher correctement le nombre de jours, appliquer un format « # ##0 », ou, le cas
# ##0.00
Date functions
Today and now
=TODAY() Returns the integer corresponding to the current day.
=NOW() Returns the decimal number corresponding to the current day and time.
Année, mois, jour, heure, minute, seconde
A B A B
1 Date 19/01/2013 18:55:13 1 Date 19/01/2013 18:55:13
2 Year 2013 2 Year =YEAR(B1)
3 Month 1 3 Month =MONTH(B1)
4 Day 19 4 Day =DAY(B1)
5 Time 18 5 Time =HOUR(B1)
6 Minute 55 6 Minute MINUTE(B1)
7 Second 13 7 Second =SECOND(B1)
Date
A B C D A B C D
1 AnnéeMois Jour Date 1 AnnéeMois Jour Date
2 2013 1 January 19, 2013 2 2013 1 19=DATE(A2);B2;C2)
Weather
A B C D A B C D
1 HourMinuteSecond Weather 1 HourMinuteSecond Weather
2 18 19 30 18:19:30 2 1819 30 =TIME(A2;B2;C2)
Number of working days
=NETWORKDAYS(start date; end date; [holidays])
start date Mandatory. Date that represents the start date.
end date Mandatory. Date that represents the end date.
public holidays Optional. Represents a range of optional dates to exclude from
calendar of working days, such as holidays or other days
contractually unemployed.
Day of the week
=WEEKDAY(date; [return type])
type return:
1 or returns a number between 1 (Sunday) and 7 (Saturday).
2 Renvoie un chiffre compris entre 1 (lundi) et 7 (dimanche).
Extraction of a string
LEFT and RIGHT
Returns respectively the first characters or the last characters of a
string.
Examples:
=LEFT("Hello", 3) returns "Hel";
=RIGHT("Hello",4) returns "day".
Argentina;Brazil;Venezuela
=LEFT(A1;SEARCH(";";A1)-1) returns "Argentina";
=RIGHT(A1,LEN(A1)-FIND(";";A1,FIND(";";A1)+1)) returns
Venezuela
String concatenation
CONCATENATE("Dupont", ", ", "Pierre") returns "Pierre, Dupont".
You can also use the character '&': ='Dupont'&', '&'Pierre' returns 'Dupont, Pierre'.
Text cleaning
PURGING Removes any control characters that may be present in a string
characters: carriage return, line break, etc.
SUPPRESPACE
Remove multiple spaces inside a text, as well as spaces at the beginning and end
at the end of the text.
String comparison
EXACT allows you to compare two text strings; it returns the logical value TRUE
when the two strings are identical, and FALSE otherwise.
Note: The comparison operator '=' can also be used.
Structure of a table
A data table typically appears as follows:
A B C
1 Hommes Femmes
2 North 593 839
3 South 663 768
4 East 813 619
5 West 808 558
This table includes:
Column A: The categories 'North', 'South', 'East', and 'West'
Column B: The series 'Men' includes the following values: {593; 663; 813; 808}
Colonne C : Lasérie« Femmes » comprenant les valeurs suivantes : {839 ; 768 ; 619 ; 558}
Each row corresponds to a category and each column to a series of data. The first
column contains the titles of the categories; the first line contains the titles of the series.
The table could have been presented the other way around:
NorthSouth East West
Men 944 571 605 860
Women 983 783 788 994
In this case, the table would include:
– two categories: 'Men' and 'Women'
– quatre séries de données : « Nord », « Sud », « Est » et « Ouest »
Data representation
For a 'histogram' type graph:
– the categories are represented on the x-axis;
– each series is represented by a series of bars of the same color parallel to the axis of
ordinates;
– Each value of a series is represented by a bar proportional to that value.
– Creation
– Disposition
– Formatting
Creation
Allows controlling the association of the graph with the data, in particular:
– to redefine the data range of the chart (which corresponds in principle to the selection made
during the creation of the graph);
– to swap the series and categories to modify the 'direction' of the graph (button
Change line or column
– to redefine the range containing the list of categories ("Edit" button of "Axis Labels")
horizontal (abscissas) » ;
– to redefine the series ("Add", "Modify" and "Delete" buttons of "Entries of
legend (Series)
To add or modify a series, you must specify:
– the cell containing the name of the series;
– the range of cells containing the values of the series.
A graph is made up of different objects (chart area, titles, legend, plotting area,
axes, grid, data series, data labels, etc.
To modify the properties of an element, click on the element to select it, click
secondary, then "Format...". Or in the "Active selection" area, select the object
in the drop-down list area, then click on 'Format Selection'.
Secondary axis
By default, the series are represented on a single Y-axis; it is possible to
represent a series on a secondary axis. To do this, after selecting the series, in 'Format'
in the series of data / Series options" you will find the option "Plot the series with: Axis
secondary
2 000
1,000
800 1,500
600 Women
Men 1,000
Men
400
Women
500
200
0
0 North Sud East West
North Sud Est West
100%
90%
1,000
80%
70% 800
60% 600
Women Men
50% 400
40% Men Women
200
30%
20% 0 Women
10% North Men
South Is
0% West
North South Est West
Thousands 1,000
500 400 300 200 100 0 100 200 300 400 500
900
1909 1909
800
1919 1919
1929 1929 700
1939 1939 600
1949 1949
1959 1959 500
1969 1969 400
1979 1979
300
1989 1989
1999 1999 200
2009 2009 100
500 400 300 200 100 0 100 200 300 400 500
0
Women Men 2009 1999 1989 1979 1969 1959 1949 1939 1929 1919 1909
Curves
120
100
80
Series 1
60
Series 2
40
20
0
January February Mars April I June July August September October November December
3,000 5,000
4,500
2,500
4,000
3 500 West
2,000
2013 3,000 Est
1 500 2012 2,500
South
2,000
2011 North
1 000
1,500
Centre
1,000
500
500
0 0
Center North South East West 2011 2012 2013
Sectors
2012
2011
Asia
32% Europe Europe
Asia
36% 36%
32%
29%
36%
2010
35%
United States
United States 32%
32%
100 100
90 90
80 80
70 70
60 60
y 50 50
40 40
30 30
20 20
10 10
0 0
0 20 40 60 80 100 0 20 40 60 80 100
x
Stockholder
100,000 25
90,000 24
80,000 23
70,000 22
60,000 21
50,000 20
40,000 19
30,000 18
20,000 17
10,000 16
0 15
Monday Tuesday Wednesday Thursday Friday
2
1.8
1.6
1.4
1,2
1
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
Radar
2000 1
Oct. 0 avg. 0
August June
July Sensitivity
Several criteria
– Click on a cell in the table
– Data: Sort and filter
– Click on the 'Sort' button
– Check that the checkbox 'My data has headers' is checked
– Define, in order, the sorting criteria; for example:
Column Sort by Order
Sort by Country Values From A to Z
Then by City Values From A to Z
Then by Amount excluding tax Values From the largest to the smallest
You can use the buttons 'add a level', 'delete a level', 'copy a level'
et les flèches « déplacer vers le haut » et « déplacer vers le bas » pour modifier les critères de tri.
Sorting options
Respect case (yes / no): takes into account – or not – accented characters.
Orientation :
– From top to bottom: to sort the rows of the table (each row corresponding to a
recording in the database, and each column to a field
– From left to right: to sort a database where each record
would correspond to a column and each line to a field (non-conventional)
Example for a field of type "text": Example for a field of type 'date':
(Select all) (Select all)
Germany 2008
January
Argentine 01
Austria 02
etc. 03
etc.
Custom filters
Depending on the type of data, there are numerical, chronological, or textual filters.
See the available options for the fields:
– Country or City (text filters)
– Amount excluding tax (digital filters)
Remove duplicates
Copy the 'Orders' database to a new sheet.
Delete the columns "Number", "Date", "Salesperson", and "Amount excluding tax".
The database only contains the columns 'Client', 'Country', and 'City'; this database of
data contains duplicates, as a client may have placed multiple orders.
To remove duplicates:
– click on a cell in the table
– in the 'Data' menu, 'Data Tools', click on 'Remove Duplicates'
– Make sure the box "My data has headers" is checked.
– Check that the boxes for the columns 'Client', 'Country', and 'City' are checked.
– click on 'OK'
Excel displays the following message: '741 duplicate values found and removed. Remaining '
89 unique values.
Subtotal by country
In the 'Data' menu, 'Plan', click on 'Subtotal'.
Please fill in the following information:
– At each change of: Country
– Use the function: Sum
– Add a subtotal to: Amount excluding tax
– Check the boxes "Replace existing subtotals" and "Summary under the data."
Click on 'OK'.
Excel creates a plan and inserts a subtotal line at each change of country; you can
Click on the buttons of the map (at the top and left) to display different levels of detail.
Remove subtotals
To remove subtotals, in the 'Data' menu, 'Outline', click on 'Subtotal', then
on "Delete all".
Database functions
For example, consider the following database (located on a sheetOrders):
A B C D E F G
1 Number Date Commercial Client Country City Amount excluding tax
Other functions
The syntax is identical to the SUMIFS function.
For the indicated field:
BDNB Returns the number of cells containing a numeric value.
BDNBVAL Return the number of non-empty cells.
BDAVERAGE Return the average of the values.
BDMAX Return the maximum value.
BDMIN Return the maximum value.
BDVARP Return the variance of the series of values.
BDECARTYPEP Return the standard deviation of the series of values.
Data source
A data source is presented in the form of a table, each column corresponding to a
field, and each line has a record. By grouping identical values,
most fields can be used as an axis or dimension of analysis; thus we can
proceed with regrouping:
– chronological (by date, year, quarter, month, week, day of the week, time span of the day,
day, time of the day...
– geographical (by country, region, city...)
– by actor, external (client, supplier…), or internal (service, manager…)
– by type or category (of user, of product...)
– etc.
Les champs contenantdes « valeurs » (quantité vendue, montant hors taxes…), auxquelles on
will apply a statistical function (sum, count, average...), will be used as fields of
synthesis.
For example, consider the following database:
Date Country City Category Amount excluding tax
1
ODBC: Open Database Connectivity.
Connection name:
Choose the location of your pivot table report
❑ New spreadsheet
❑ Existing spreadsheet
Location:
OK| Annuler
On accède ensuite au volet permettant de construire le tableau ; il suffit faire glisser les champs
as indicated:
List of fields
Date
Country
City
Category
Amount excluding tax
Year
Year Category
Category
Country / City
Beverages Condiments DessertsTotal
Germany 1,920 1,200 1,680 4,800
Berlin 1,400 875 1,225 3,500
Frankfurt 280 175 245 700
Stuttgart 240 150 210 600
Austria 740 463 6471 850
Salzburg 60 38 52 150
Vienna 680 425 5951 700
Total 2,660 1,663 2 327 6 650
Grouping by periods
For typedate fields, we have different grouping options by years, quarters,
mois, jours, nombre de jours, heures, minutes et secondes.
Example:
– Take the 'Date' field and place it as a row label.
– In the table, select a date.
– Secondary click: Group...
– Select Year and Month.
This results in a hierarchical list Year / Month.
Pivot chart
To insert a pivot chart from a pivot table:
– PivotTable Tools: Options: PivotChart
– Select a template and click OK
In pivot table tools, the tools are grouped in:
– Creation
– Disposition
– Formatting
– Analyze
33–Form Title
-> Click the line Caption and enter Note
Sub properties()
End Sub