Excel Basics: Creating Your First Table
Excel Basics: Creating Your First Table
[Link] interface
Excel has the same basic interface as Word, the ribbon is in the same place, but instead
of a blank sheet, is a large empty table.
Let's see the main elements of this software :
2.1 The ribbon
The ribbon is laid out the same as in Word, but the options and tools there are different,
and suitable for designing a table. There are, however, some identical tools such as bolding,
text color and alignment. The Excel ribbon contains all the tools
When you open a new blank document, the main area of Excel appears as a giant
table. There is no particular formatting, just lines and columns. The goal is that you can
compose your table as you see fit! Each cell in this table is called a Cell .
Tip: Remember that a box is called a cell and that it is identified by a letter and a
number, for example A1 is the first box at the top left of the table.
1
2.4 The sheets, or tabs
Often times, Excel tables represent daily, weekly, monthly, or annual data. Instead of
creating an Excel file by time interval, tabs have been set up at the bottom of the screen. You
can therefore create as many as you want, for example a tab for each month of the year, and
duplicate your January table on the other months. The tabs allow you to manage different tables
in the same document
It is possible to rename each tab and apply a color to it. The small
button allows you to add a new tab. For now we won't need this feature but it's nice
to know it exists!
Have you ever played naval battle? The principle is the same here! The vertical columns
are named by letters: A, B, C ...
To write something in a cell, you have to click or double-click on it. The selected cell
will be highlighted. You can then write text, numbers, dates ...
Some keyboard keys are very useful when using Excel. It is possible to move from one
box to another using the keyboard arrows: Up, down, left, right .
When entering content in a cell, press Enter to move to the box below and
the Tab key to move to the right box. These little tips are very useful in order to avoid having
to switch all the time between the keyboard and the mouse to select a cell and enter content.
2
In Excel, always, we are going to need to select a whole column, a whole line, and for
that there is a simple technique. The Excel sheet has lines and column headers, on the left and
at the top, containing the names of the lines and columns ( A,
B , C… and 1,2,3…).
When you are satisfied, let go of the click. The selected boxes will appear highlighted .
Indeed, selecting a range of cells, a line or a complete column will allow you for example
to apply a background color to all the selected cells at the same time, or to apply a format to
them (say that it is a date, a value in €, in%…).
These basics are very important in order to use Excel more easily later. If you have
Excel on hand, practice a little bit before moving on to the next class, where we'll be creating
our very first table!
3
Lesson 2: My first table
We are going to make our first table: We imagine a table that will allow, during a raffle,
to know who sold what and in what quantity in order to know the total winnings and the best
seller. You can position yourself where you want in the table to start. We first indicate the
names of the people, one person per
column. However, for our case, choose
cell B3 Then, we indicate the elements,
positioned vertically before the first
name. Here is the result:
Excel was designed to automatically calculate things, but it's up to us to tell it what to
calculate. This is the subject of the next course. For now we are going to format this table.
For now our table is not very readable, so we will see how to format it.
Excel then asks you where the table is located, via a small window. Then select all the
boxes in your table, as we saw in the previous lesson. Usually, Excel will be able to define on
its own where the table is located in your sheet.
4
First, position yourself on the
box furthest to the left (the one
between Ngum and Rice), click, and
while holding the click, go to the box
furthest to the right of your table (to the
left). 'intersection between (Fonmuyuy
and Biscuits): Select all the boxes of
your table (in green dotted lines)
Before validating, click on the box My table has headers, so that it understands that
Cookies, Rice… as well as Ngum, Levis… are not part of the values of the table but are titles.
❖ Background colors
It is also possible to personalize your painting by hand. For example, select the items for
sale, then click the Fill color tool in the Font group on the Home tab. Choose a color for the
background. Our table is presented as follows:
This formatting allows you to clearly delineate the headers and the body of the table. You can,
in the same way as in Word , center, put in bold, italics your texts in order to distinguish them
from other cells. This way it is easier to know what is a value and what is a header of the table!
5
❖ Borders
You can add borders to all of this to limit the different sections of the
table. The Border button offers a whole bunch of different borders: thin, wide. The All
Borders option lets you draw a sharper border on each box in your table. Try to train yourself
to create different types of borders: Many choices of curbs you are offered
Advice : Not all of the boxes you see in Excel exist when you print the document - they will be
white and borderless. You will therefore need to use the border tool to delimit your boxes
according to your needs.
Result
This is what your table can look like when personalized. This is just one example to
inspire you!
You can very simply enlarge the size of the rows and columns to space your table a little
more. Click at the top of a column, where its letter is indicated, for example column G: position
your cursor at the edge (at the limit with column H): the cursor changes shape.
You can also first select several columns (click in the middle of the first and while
holding the click, move to other columns). Then repeat the above operation taking the edge of
any selected column.
6
2.4 Stretch values
There is a very handy little function in Excel when you make a series of consecutive
numbers. Type 1, 2, 3 in a row or column to start. Do this on another worksheet:
Select the 3 cells using the mouse. They are then highlighted .
Notice the small black square at the bottom right of the selection. When approaching
the mouse, the cursor will change shape: from a white cross it will become a black cross,
smaller.
Step 3: click on the small square at the bottom right and pull to the right
The technique consists of clicking on this small square, then while maintaining the click,
drag it to the right then release!
7
Release the click
This technique also works for dates and special series (eg 10 to 10 or only odd
numbers). Excel is able to understand the start of your list and complete it accordingly. This tip
will save you a lot of time!
You can then choose between many formats. Many formats are available: dates,
currency, percentages ...
For the currency you can choose the number of decimal places and the symbol. For dates
and times you can choose between several different display formats. Even if you choose the
full date format, so you can just type 02/01/2020 in the cell and Excel will display it
as February 1, 2020 .
Do you want to add an entry to a table without having to reorganize everything? You
will be able to simply insert a row or a column:
2. Choose Insert
8
4. Insert a line by right-clicking on the line header. Ditto for the columns
It is possible to merge cells to make a bigger one, which can be useful to write a title at
the top of a table for example. To do this, select the cells to merge and then click Merge and
Center Cells in the Alignment group on the Home tab.
❖ Text alignment
When the cells are tall, you notice that the texts always stay aligned at the top. In order to
improve readability, it is sometimes useful to center them in the cell or to align them at the
bottom.
9
In rather clicking on , I can give a direction that suits me.
However, if I am not
satisfied with the five proposals, I can
click on and in the dialog box that
will appear, you will choose the
orientation that suits you.
If you have created a table in Excel while taking this course, now remember to save it by
clicking File > Save at the top of the window, so that you can find it later if needed. You can
also use the keyboard shortcut CTRL + S.
And There you go ! You now know how to create a simple table and format it in order to
optimize the readability of long texts and important values. Isn't it nice to work in Excel? Ah
yes it is beautiful and easy !!!
10
Lesson 3: Automated Calculations and Graphs
Instead of inserting fixed values into a table, you can have Excel do a lot of calculations
for you. It is very convenient and it will save you time.
Once a cell is selected, it is either in the formula bar or in this cell that everything will
unfold.
It is in this bar that we indicate the formula to be calculated. This is where we will be
able to write formulas and use mathematical functions offered by Excel.
By clicking on cell C3, it appears in the formula bar Ngum, which is indeed its
content. However what do you see?
We are going to do a very simple first calculation: an addition between 2 cells. First of
all, we will indicate 2 arbitrary values in 2 cells: Then, we will then select the next empty cell,
which will host the calculation and the result of the addition. Here is an essential point to
remember: any mathematical calculation, to be understood by Excel, must begin with the
sign = (equal).
Warning: It is imperative to put the equal sign (=) to ask Excel to do a calculation!
We can then write a mathematical formula like = 2 + 2 and we will get 4. But that is of
little interest. Instead we will ask to retrieve the value of our 2 cells.
Start the formula with the = sign (in cell D2), as we have just seen, then select the first
cell, it will take a color, add a +, then select the second cell.
Our formula looks like this = B2 + C2 : We therefore ask to calculate the sum of B2 and
C2.
11
Thus, in addition to the value of B2 and C2, the result is displayed in D2. Validate by
pressing the Enter key on the keyboard , the result is immediate!
And there you have it, you now know the basic technique for making formulas that will
allow you to automate operations and calculations. It is a simple tool, but it can be very
powerful, and save you a lot of time. This knowledge will serve you a lot in everyday life as
well as at work!
By taking the table that we have already done, we will now want to add a
new Totals line at the bottom of the table:
To make it stand out, we can put the line in Bold and if you wish to apply a text or
background color. Before embarking on calculations, it is also necessary to fill the table with
fictitious values.
We will start by selecting the cell at the intersection of Totals and Ngum . We want to
display the sum of Ngum's sales, all types of sales combined. Excel provides a formula
called Sum that lets you add up a whole range of cells.
To find formulas click on the F(x ) icon to the left of the formula bar then select Sum
and then OK . You see in the new dialog box that Excel has already selected cell range C4: C8
12
while showing you the answer. You can select this range to calculate yourself, by clicking and
dragging from C4 to C8. Validate on OK and the sum appears!
We will now be able to apply the same calculation for other people. Instead of bothering
to retype the formula, you will be able to stretch the box to the right by dragging the small
square at the bottom of the cell (as we saw in the previous lesson).
Dragging the result to the right extends the formula to other people. Because of this,
Excel understands that it must adapt the formula to the other columns (and not stay on column
C). Here is the result:
There are many calculation formulas offered by Excel, from the simplest to the most
complex. We will see some of them :
Excel handles all standard math operations very well. As we saw previously, you can
call the SUM ( ) function to add several cells at the same time.
For a multiplication use the star sign: * and for a division the slash sign: /
13
Averages and Percentages
In order to further the statistical studies, Excel takes care of the averages, percentages…
The AVERAGE () function takes care of the calculation on its own.
2. Generate a graph
Generating data and calculations is one thing, but sometimes you need to have a more
simplified view of important data. This is where graphics come in! Whether they are in bars or
in sectors ... you will inevitably find your happiness to highlight the important data of your
tables.
To insert an Excel chart, first select the cells containing the values that will make sense
for the chart. In the context of our example we are going to select all the cells of our table except
for the totals line .
Then go to the Insert tab , and click on the type of chart you
want. A pie chart or histogram is suitable for the situation. In this case, we will choose the
grouped histogram.
For each product, we see the sales of each actor. The graphics are generated with a
legend, to make it easier to understand. It is located at the bottom of the graph. You can also
put a title at the top of the chart to give it meaning. You can move the graphic around in the
document, and even enlarge it by pulling the small handles in the corners.
This graph shows us some interesting information: The rice has been sold the most by
Levis. Lesley was the best performer in the sale of Biscuits.
14
Many types of graphs are available, each adapted for a specific case. There is still a lot
to say about the graphics, but that will be for a future lesson.
Sometimes we would like the results the other way around, that is, instead of seeing
the products, we would rather see the products Actors. Excel makes it easy to do this. Double
click on the graph, with the Design tab activated, click on Switch rows / columns.
It is now the actors who are displayed on the x-axis and no longer the members. We
now see the sales by product, which can also be useful to analyze the results in this specific
case.
We now see that rice was the best-selling product. And this by Paul followed by
Antoine. Soap was the least sold product (Jean).
Tip: You can also copy this graphic and paste it into a Word or PowerPoint document!
I will show you one last feature that is easy to set up and very practical: Filters and sorts
of an array. Suppose we have a list of students with their GPA. It would be practical to be able
to sort the table in alphabetical order in other to have the students from A to Z, or to classify
them by decreasing GPA, in other to establish a classification.
To do this, select the cells in your table, click Sort and Filter,
then Filter. This in order to make your table filterable
and sortable. Small boxes with an arrow will appear on the headers of
your columns. Click on it to choose a sorting method!
Sort the notes in descending order. And here is the result, the
students are classified by their GPA:
15
And that's it for Excel! There are many other functions and possibilities for this software
which can be very complex and fulfill a lot of needs. But we will stop there for the moment,
this knowledge will be more than enough for you for everyday use.
I advise you to come and re-read this course regularly to review each method in order
to understand them well.
We will, in addition to this, and it’s the Essential part of this module, make some
practices to automatize the calculations of an invoice and a sheet of management of stocks,
etc… . putting in relation at least 2 sheets …
We will do it practically
16
Other
Lesson 1
CONSOLIDATION PERIOD
All the subgroups will perform the operations previously developed.
1- What is a spreadsheet? quote some spreadsheets
2- Define the following terms: workbook, cell, worksheet, active cell
3- How is a cell referenced
4- Give the procedure for starting and stopping Microsoft EXCEL
5- After launching EXCEL , create a workbook, save it after renaming the sheet.
6- Add a new sheet named students and Delete sheet 3
7- Identify the different elements of the EXCEL screen .
17
APPLICATION : entry of a simple invoice
Start Excel and enter the following values in the cells shown.
In the cell The content will In the cell The content will In the cell The content
be be will be
A3 Quantities A6 18 A8 16
B3 Description B6 Carrot bags B8 Mandarins
C3 Unit price C6 1350 C8 125
D3 Total price A7 17 A9 15
A5 15 B7 Grapefruits B9 Lemons
B5 Oranges C7 375 C9 175
C5 150
Save the workbook under the name invoice in my documents
Check the following facts:
- The text is inscribed on the left in the cells and the numbers on the right
- The text in some cells is cut for lack of space (column width)
APPLICATION : open the invoice workbook created previously and make the following
corrections:
- Correct all the mistakes you may have made
- The quantity of oranges is 21
- The price of carrots is 1450
18
- Instead of lemons, write bag of lemons
- Save the changes made
19
- Click on the Paste button of the standard toolbar (or make use of right click)
APPLICATION: in the invoice workbook, select sheet 2. We will design the following table
A B C D E F
1 project start date January February March April
2 phase 1 01/01/2012 finished finished finished finished
3 phase 2 02/01/2012 finished in study active in study
4 phase 3 03/01/2012 in study active in study active
5 phase 4 04/01/2012 active in study in study in study
6 phase 5 05/01/2012 finished active in study active
NB: remember that in case of error you can cancel the action on the Cancel button
- Enter only the contents of cells A1, B1, C1, A2, B2, C2, B3, D3 and D4.
- Copy cell C1 into cells D1, E1 and F1
- Copy cell A2 into cells A3 to A6
- Select cells B2 and B3, copy the selection into cells B4, B5, and B6
- Copy cell C2 into cells D2 to F2
- Copy cell C2 into cells C3 and C6
- Copy cell D3 into the cells that should contain the same content. Do the same for cell
D4. Save Changes.
20
V- ADD / DELETE, ENLARGE / REDUCE THE SIZE, OF A LINE OR OF A
COLUMN
1) Add or delete a row or a column
To add a column or a row:
- Select the column (or row) located to the right of the future column (or below the future
row)
- Click on the right mouse button. Then click on Insert in the contextual menu. Or in
the Insert menu click on Column or Row as appropriate
The column is inserted to the left of the selection and the row above the selection.
APPLICATION: in sheet 2 of the invoice workbook, make the following changes:
- Insert an end date column after the start date column
- Insert an empty line after line 1
APPLICATION: in sheet 2 of the invoice workbook remove the start date column (column B)
2) Enlarge / reduce the size of a column or row
Sometimes the text in a cell is cut off when it exceeds the width of the column. To correct it,
simply enlarge the width of the column. We have two methods:
- Place the mouse cursor on the row that marks the end of the column and the start of
the next column at the column name header . It must have the following form
- Click and keep the button pressed, move according to whether you want to enlarge or
reduce the width of the column (to the left or to the right)
- Proceed in the same way to enlarge or reduce the height of a row
21
LESSON REVIEW EXERCISE
In sheet2 of the invoice workbook make the following changes:
1) Move the table so that it starts at cell B5
- Select the table (cell going from A3 to D9)
- Move it (cut then paste) so that it starts at cell B5
2) The customer also buys 20 fruit apples which cost the same as the oranges
3) The customer no longer orders the mandarins. Delete the corresponding line.
4) Insert an empty column after column B (after the quantity column). In
cell C5 write Code.
5) In cell C7 write prod1. Copy this cell (C7) into cells ranging from C8 to C11
6) Give column D the size 20
7) Give columns C, D and E size 15
8) Give rows 7 to 11 size 18
We will calculate the total of the quarterly marks and the annual average. For it :
- Enter in B4 the formula: = 12.5 + 11.40 + 9
- Enter in B5 the formula: = 32.9 / 3
NB: the sign of the division is / and that of the multiplication *
22
- Modify the grade value for Quarter 2 in B2 and enter the value 10.5
We note here that it is still necessary to recalculate the total and the annual average.
2) Use cell addresses in a formula
To be effective, it is important in a formula to use the addresses of cells rather than the values
in them. Thus, when modifying the content of a cell involved in the formula, Excel
automatically re-evaluates the result of the formula.
APPLICATION: In the average calculation workbook,
- Take the formula for the total of the means in B4 using the cell references. Enter the
expression: = B1 + B2 + B3
- Use the formula for the annual average in B5. Enter the expression: = B4 / 3
- Modify the content of cell B1 to 11 and that of cell B3 to 10.5.
We notice that cells B4 and B5 are automatically modifying.
3) Excel's built-in math functions
Sometimes for complex calculations it is easier to use Excel's built-in functions. For example,
if we want to find the sum or the average of the contents of 20 cells.
Some built-in Excel functions
Functions Descriptions
Sum (range) Returns the sum of the values of the given cell range
Average (range) Returns the average of the values in the specified cell range
Max (range) Returns the minimum of values in the specified cell range
Min (range) Returns the maximum of values from the specified cell range
Nb (range) Counts the number of cells containing a value within the specified
range
Content
Content
Content
content
content
Cell
Cell
Cell
Cell
Cell
cell
23
LESSON REVIEW EXERCISES
Exercise 1 :
Open the invoice workbook (click on menu-open then select the name of the workbook and
click on open).
We are going to modify the table of sheet1 and add the formulas necessary to calculate the total
of each row, the subtotal, the amounts of the discount, the tax and the final total.
1) Select cell F7 where you need to calculate the total amount of oranges. Enter the
formula: = B7 * E7
2) Copy the F7 cell into the cells from F8 to F12
3) Select the cells shown below and enter the specified values:
Content
Content
Content
Content
content
content
Cell
Cell
Cell
Cell
Cell
cell
D13 Sub D14 Discount D15 Tax D16 Total E14 10% E15 15%
total
4) Write the necessary formulas in cells F13 to F16. ( The discount and tax are calculated
on the total in
Exercise 2
Reproduce the following table. This is a timetable. Under each day of the week, write the
number of hours spent on each project.
A B C D E F G
1
2
3 Monday Tuesday Wednesday Thursday Friday Total
4 Project 1 6 6 3 4
5 Project 2 1 2 1 3
6 Project 3 2 1 3 2 1
7 Project 4 5 1 1
8 Project 5 4 1 2
9 Project 6
10 Other 4 5
11 Total
12 Max day
13 Max project
1) Enter the word Monday in cell B3. Use the copy to have the other days in cells from
C3 to F3. Perform the same operation for project 1 to project 6
24
2) In cell G4 enter the formula to obtain the total hours of the project1. Copy the formula
into cells from G5 to G10
3) In cell B11 enter the formula to obtain the total hours for a day. Copy this formula into
cells from C12 to G12
4) In cell B12 enter the formula to obtain the highest total hours per project
5) In cell B13 enter the formula to obtain the highest total hours per day
6) Save the workbook under the name schedule grid .
25