CSC408 - Manual 1 Part 2
CSC408 - Manual 1 Part 2
CSC408:
MS Excel
Manual 1(Part 2)
Tutorial 2
pg. 1
CSC408 UiTM Sarawak MS-Excel Manual 1
pg. 2
CSC408 UiTM Sarawak MS-Excel Manual 1
Microsoft Excel includes predefined formulas and functions. A formula is an expression which
calculates the value of a cell. For example, cell A3 below contains a formula which adds the
value of cell A2 to the value of cell A1.
Another example, cell A3 below contains the SUM function which calculates the sum of the
range A1:A2.
pg. 3
CSC408 UiTM Sarawak MS-Excel Manual 1
2. Enter a Formula
5. Excel automatically recalculate the value of cell A3. This is one of Excel’s most
powerful features.
pg. 4
CSC408 UiTM Sarawak MS-Excel Manual 1
3. Edit a Formula
When you select a cell, Excel shows the value or formula of the cell in the formula bar.
1. To edit a formula, click in the formula bar and change the formula.
2. Press Enter.
pg. 5
CSC408 UiTM Sarawak MS-Excel Manual 1
4. Operator Precedence
Excel uses a default order in which calculations occur. if a part of the formula is in parentheses,
the part will be calculated first. It then performs multiplication or division calculations. Once
this is complete, Excel will add and subtract the remainder of your formula. See the example
below:
First, Excel performs multiplication (A1*A2). Next, Excel adds the value of cell A3 to this result.
Let us look if we use parentheses in this case:
Now, Excel calculates the part in parentheses (A2+A3). Then, it multiplies this result by the
value of cell A1.
pg. 6
CSC408 UiTM Sarawak MS-Excel Manual 1
5. Copy/Paste a Formula
When you copy a formula, Excel automatically adjusts the cell references for each new cell
the formula is copied to. To understand this, execute the following steps:
1. Enter the formula shown below into cell A4.
2. Select cell A4, right click, and then click Copy (or press CTRL + C).
3. Then, select cell B4, right click, and then click Paste (or press CTRL + V).
4. Alternatively, you can drag the formula to cell B4. Select cell A4, click on the lower right
corner of cell A4 and drag it across to cell B4. This is much easier and gives the exact
same result from step 2 and 3.
pg. 7
CSC408 UiTM Sarawak MS-Excel Manual 1
pg. 8
CSC408 UiTM Sarawak MS-Excel Manual 1
6. Insert Function
Every function has the same structure. For example, SUM(A1:A4). The name of this function
is SUM. The part between the brackets (arguments) means we give Excel the range A1:A4 as
input. This function adds the values in cells A1, A2, A3, and A4. It is not easy to remember
which function and which arguments to use for each task. Fortunately, the Insert Function
feature in Excel helps you with this.
pg. 9
CSC408 UiTM Sarawak MS-Excel Manual 1
8. As result, the COUNTIF function counts the number of cells that are greater than 5.
Note: Instead of using the Insert Function feature, simply type =COUNTIF(A1:C2,”>5”).
When you are typing at =COUNTIF(, instead of typing A1:C2, you can simply select
the range A1:C2.
pg. 10
CSC408 UiTM Sarawak MS-Excel Manual 1
TUTORIAL 2
In this exercise, you will have two worksheets in one workbook. Please read the instructions
carefully.
pg. 11
CSC408 UiTM Sarawak MS-Excel Manual 1
pg. 12