Ceb201 - Lecture 3
Ceb201 - Lecture 3
Lecture #3
SECTION 1: USING FUNCTIONS, DECISION
FUNCTIONS, CHARTS
Topic 4: Using Excel’s Worksheet Functions
to Solve Simultaneous Equations
Objectives:
Cell Addressing in Excel
+ Do Excel Tutorial Exercise 2 (Relative Addresses)
+ Do Excel Tutorial Exercise 7 (Absolute Addresses)
o Completing the two above exercises should show you that, once a worksheet
has been setup to solve a problem, it may be used repeatedly for the same
type of problem but with different input values.
o For example, if you had one quadratic equation to solve, you don’t need to
design a worksheet to solve this one equation. But if you have a dozen or so
equations, then a worksheet solution would be much more efficient than
using your scientific calculator!
o The Other advantages of using Worksheets when doing such calculations are:
• Given a Problem
• Use What You Know
𝑅𝑒
1 1 1 1
= + +
𝑅𝑒𝑡 𝑅1 𝑅2 𝑅3
1
𝑅𝑒 =
𝑅𝑒𝑡
Another Equation Solver
CALCULATION EXAMPLE
Cell Addressing in Excel
• A formula is an expression telling Excel to perform an operation.
• Many of the formulas we have been looking at have been limited to
arithmetic operations.
Exponentiation (^)
Negation ( - )
Multiplication and Division ( *, / )
Addition and Subtraction ( + , - )
a) On Sheet 1 of the workbook, in A4 enter the value 1. Select A4, “grab” the fill
handle and drag it down to A13 to fill the series (1 to 10) in these cells.
c.) We need to copy this formula to B5:B13. You can select the range and use
the shortcut key Ctrl+C and Ctrl+V. Or you can use the Auto Fill Option. Select
B4, “grab” the fill handle and drag it down to B13 to copy the content of B4 to
these cells below it.
d.) Title the Worksheet as “Relative Addressing” and Save the workbook.
Cell Addressing in Excel
• Remember, that when a formula is copied to the same row, the row reference is
unchanged without the need for the $ symbol. Similarly, when a formula is copied to the
same column, the column reference is unchanged with the $ symbol.
Cell Addressing in Excel
PARTIAL AND ABSOLUTE ADDRESSING
Complete Exercise 3 (the next slide) to create the multiplication table shown above
Cell Addressing in Excel
Exercise 3: Absolute Address
• The $ before the A in the first term ensures that, when the formula is copied across
the worksheet, the reference will always be to that column.
• Similarly, the $ in the second term keeps the reference to row 1 constant when the
formula is copied down the worksheet.
d.) Examine the values and the formulas in a few cells to make sure you
understand the process.
e.) Rename the Worksheet as “Absolute Addressing” and Save the workbook
Application of Cell Addressing - Matrices
• Cells may be addressed as:
Relative Addresses
Partial Addresses
Or Absolute Addresses
• Matrix methods given in Excel are useful in many ways and for engineers
matrices are most useful in solving problems in structural analysis and
hydraulics.
Application of Cell Addressing - Matrices
REVISION OF MATRICES
Matrix Algebra provides a powerful method for the manipulation of sets of numbers.
Many mathematical operations, such as addition, subtraction, multiplication and
division have their counterparts in matrix algebra.
For our discussion we will be limited to the manipulation of square matrices.
For the purposes of illustration, below are two 3x3 matrices.
Application of Cell Addressing - Matrices
REVISION OF MATRICES
• Addition of a Constant
• For Scalar Multiplication, both matrices must have the same dimensions m x n.
Now you can use your matrix to perform various operations in Excel.
• Create the Following Two Matrices within Excel and name these Matrices as:
• MatrixA
• MatrixB
• Now, we that we have named these matrices we will be able to use them and do some
mathematical operations.
Excel Functions for Matrices
Activity 1:
ADD a constant 3 to Matrix A.
1. Select a range of cells the same size of the matrix.
2. Enter the formula “=MatrixA + 3” and Press CTRL+ Shift + ENTER
Activity 2:
SUBTRACT 2 from Matrix B
1. Select a range of cells the same size of the matrix.
2. Enter the formula “=MatrixB – 2” and Press CTRL + Shift + ENTER
Excel Functions for Matrices
Multiplication or Division of Matrices in Excel:
Activity 3 :
MULTIPLY a constant 1.2 to Matrix A.
1. Select a range of cells the same size of the matrix.
2. Enter the formula “=MatrixA * 1.2” and Press CTRL+ Shift + ENTER
Activity 4:
DIVIDE 2 from Matrix B
1. Select a range of cells the same size of the matrix.
2. Enter the formula “=MatrixB / 2” and Press CTRL + Shift + ENTER
Activity 6:
Multiply Matrix A and Matrix B.
1. Select a range of cells the same size of the matrix.
2. Enter the formula “=MatrixA * MatrixB “ and
Press CTRL + Shift + ENTER
Excel Functions for Matrices
• Also matrix multiplication of two matrices is possible only if the matrices are
conformable – the number of columns of A is equal to the number of rows of
B.
• The easiest way to remember this is by checking the sizes of your matrices
before performing matrix multiplication. For example, the following table
shows some matrices’ sizes which are part of the MMULT function/formula
and the possible resulting matrices.
• The Process of inverting a matrix “manually” can be tedious, but a nifty function in Excel
can make this an easy task.
• To find the inverse of a matrix we use Excel’s worksheet function MINVERSE (matrix).
QUESTIONS
TUTORIAL:
Complete Tutorial#3 – Solving Simultaneous Equations
ASSIGNMENT1:
Pick up on Wednesday 27th/02/18 8am
Due on Friday 09th/03/18 8am
TEST
Test #1 Will Be in Wk#7 and will be Based on all
Topics Covered Up To Week#5.