Chapitre 3
Chapitre 3
Chapitre 3
University of Algiers 3
From the achievements of the professors:Dr. Riache Lakhda & Dr. Diab Mansour
=1+2+3 Or =B1+C1+D1
However, if you need to sum a few dozen or a few hundred rows, referencing each cell in a formula does
not sound like a good idea. In this case, you can use the Excel SUM function specially designed to add a
specified set of numbers.
1-1) the AutoSum button in Excel.
The AutoSum button is available in two locations on the Excel ribbon.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 1
Chapter3 : Arithmetic Formulas in EXCEL
o To sum a column, select the cell immediately below the last value in the column.
o To sum a row, select the cell to the right of the last number in the row.
A Sum formula appears in the selected cell, and a range of cells you're adding gets highlighted (B2:B6
in this example):
In most cases, Excel selects the correct range to total. In a rare case when a wrong range is selected, you
can correct it manually by typing the desired range in the formula or by dragging the cursor through the
cells you want to sum.
Tip. To sum multiple columns or rows at a time, select several cells at the bottom or to the right of your
table, respectively, and then click the AutoSum button.
Now, you can see the calculated total in the cell, and the SUM formula in the formula bar:
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 2
Chapter3 : Arithmetic Formulas in EXCEL
If you one of those Excel users that prefer working with the keyboard rather than the mouse, you can
use the following Excel AutoSum keyboard shortcut to total cells:
A mnemonic that can help you remember the order is PEMDAS, or Please Excuse My Dear Aunt Sally.
Excel uses standard operators for formulas, such as a plus sign for addition (+), a minus sign for
subtraction (-), an asterisk for multiplication (*), a forward slash for division (/), and a caret (^) for
exponents.
Addition +
Subtraction -
Multiplication *
Division /
Exponents
All formulas in Excel must begin with an equals sign (=) or plus (+). This is because the cell contains, or
is equal(=) to or plus(+) , the formula and the value it calculates.
1-7) Understanding cell references
While you can create simple formulas in Excel manually (for example, =2+7 or =128*5), most of the time
you will use cell addresses to create a formula. This is known as making a cell reference. Using cell
references will ensure that your formulas are always accurate because you can change the value of
referenced cells without having to rewrite the formula.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 3
Chapter3 : Arithmetic Formulas in EXCEL
By combining a mathematical operator with cell references, you can create a variety of simple formulas
in Excel. Formulas can also include a combination of cell references and numbers, as in the examples
below:
1. Select the cell that will contain the formula. In our example, we'll select cell B4.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 4
Chapter3 : Arithmetic Formulas in EXCEL
2. Type the equals sign (=). Notice how it appears in both the cell and the formulabar.
3. Type the cell address of the cell you want to reference first in the formula: cell B2 in our
example. A blue border will appear around the referenced cell.
4. Type the mathematical operator you want to use. In our example, we'll type the addition sign
(+).
5. Type the cell address of the cell you want to reference second in the formula: cell B3 in our
example. A red borderwillappeararound the referencedcell.
6. Press Enter on your keyboard. The formula will be calculated, and the value will be displayed in
the cell.
We are trying to study two different methods for calculating percentage in Excel.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 5
Chapter3 : Arithmetic Formulas in EXCEL
We have the following table, which includes organization’s sales during the past year.
First, we must calculate the total annual sales and put it in the cell (B15):
1- We put an equal sign in this cell B15, to prepare Excel for the calculation
2- Press a sigma sign ∑appaired on the ribbon with the mouse, after that we selection all cells how
about add like this sentences =SUM(B3:B14) , or we write the formula with keyboard.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 6
Chapter3 : Arithmetic Formulas in EXCEL
3- Press the ENTER key on the keyboard for calculate the sum, the result appaired like this :
4- Now, we would like to calculate a percentage that shows the share of each month's sales in
relation to the total (annual) sales. For example, to find out the sales percentage for the month
of January, we divide 1000 by 21380 and the result is multiplied by 100.
We translate this statement into Excel and exactly write the mathematical formula in cell C3.
5 - Then we press the (ENTER) button for Excel to perform the calculation, and we obtain this result:
We notice many numbers after the comma, so they can be reduced to just one number by pressing
several times on the button shown in the following image.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 7
Chapter3 : Arithmetic Formulas in EXCEL
To calculate the rest of the ratios, all we have to do is drag down the athematical formula in C3 using the
mouse to cell C15.
We get the following picture, knowing that this error is #DIV0! This means that we can’t divide a number
by 0.
If we examine the matter carefully, we find that the formula has been moved to the cells following the
division of the cells following the sum, which are empty, and which Excel considers to include a zero, so
this error appeared, and accordingly we want to keep the denominator with the fixed value in cell B15,
so the solution lies in fixing this value using the symbol $ to install line 15.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 8
Chapter3 : Arithmetic Formulas in EXCEL
After dragging the formula in the previous manner from C3 using the mouse until cell C15, we obtain:
The second method to calculate the percentage is by using the % symbol in the bar
1 – Firstly, we calculate January sales B3 by dividing the total sales B15, by writing the formula =B13/B15
in cell D3.
2- We press ENTER, then reduce the number of digits after the comma to just one digit, and we obtain
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 9
Chapter3 : Arithmetic Formulas in EXCEL
4- We address the same problem in the same way, that is, by installing the column using the symbol $ as
follows
5- Redraw the mathematical formula from D3 until we reach cell D15, and the picture appears as follows:
6- We click on the icon above the % symbol while keeping the cells in a specific state.
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 10
Chapter3 : Arithmetic Formulas in EXCEL
Circular This type of error comes when we reference the same cell in which we
Reference are writing the function or formula.
Bibliography:
1-Help Microsoft EXCEL
2- Websites:
https://www.ablebits.com/office-addins-blog/excel-formulas-examples/
https://support.microsoft.com/en-gb/office/overview-of-formulas-in-excel-ecfdc708-9162-49e8-
b993-c311f47ca173*
From the achievement :Dr. Riache Lakhdar & Dr. Diab Mansour Page 11