Documente Academic
Documente Profesional
Documente Cultură
You
Excel Formulas
2
Formulas - correct
formula with = sign
Missing = sign
Missing = sign!
Before pressing enter
Errors in Formulas
Cell is too narrow to display the results of the formula. To fix this simply make
the column wider and the real value will be displayed instead of the
###### signs. Note that even when the ###### signs are being displayed,
Excel still uses the real value to calculate formulas that reference this cell.
#NAME?
You used a cell reference in the formula that is not formed correctly (e.g.
=BB+10 instead of =B3+10)
#VALUE!
Usually the result of trying to do math with a textual value. Example: =A1*3
where A1 contains the word hello
#DIV/0!
Circular Reference
Using a formula that contains a reference to the cell that the formula lives in.
Example: putting the formula =A1+1 in cell A1 or putting the formula
=SUM(A1:B2) in any of the cells A1, B1, A2, B2
Common Errors
A function is a "named
Functions have :
operation"
a name
parentheses
parameters/arguments inside the parentheses
The words parameter and argument mean the
same thing
you can have many parameters for one function
separated with commas (,)
The number of parameters is one more than the
number of commas.
What is a function?
7
Logical
Test ?
Value
If
FALSE
Value
TRUE
LOGICAL Function IF
8
NESTED IF
9
FLOWCHART NESTED IF
Logi
cal
Test
_1 ?
Logic
al
Test_
2?
Value
If
TRUE
Value
If
TRUE
Logi
cal
Test
_n ?
Value
If
FALSE
Value
If
TRUE
10
=IF(logicaltest_1,valueifTrue,IF(logicaltest_n, valueifTrue,valueifFalse))
Note :
Comma (,) or commapoint (;) depend of your excel
use if the value is string or character
11
EXAMPLE
12
Gunakan fungsi
LEFT,MID,RIGHT
karakater & ut c. Keterangan ID
mengabungkan
terdiri dari 5 digit, diambil dari
IDnya
No.UJIAN:
Gunakan fungsi
LEFT,MID,RIGHT
di dalam fungsi IF
d. Keterangan KELAS
- Jika 2 digit pertama NO.UJIAN
01 = XI-IPA,
02=XI-IPS
b. Keterangan lulus
a. Grade
Jika nilai ujian lebih besar dari 90 maka grade A Jika nilai grade A maka keterangan sangat baik
Jika nilai ujian lebih besar dari 80 maka grade B Jika nilai grade B maka keterangan baik
Jika nilai ujian lebih besar dari 70 maka grade C Jika nilai grade C maka keterangan cukup
Jika nilai ujian lebih besar dari = 60 maka grade DJika nilai grade D maka keterangan kurang baik
Jika nilai ujian lebih kecil dari 60 maka grade E Jika nilai grade E maka keterangan sangat jelek
Exercise 1
Create this table!
14
15
Double
Function Editor
16
Function Editor
Put values for the parameters in
the edit boxes.
17
Syntax for IF
U can type on cell using :
=IF(logicaltest,valueifTrue,valueifFalse)
Note :
Comma (,) or commapoint (;) depend of your excel
use if the value is string or character
We can type IF on IF (Nested IF)
=IF(logicaltest,valueifTrue,IF(logicaltest, valueifTrue,valueifFalse))
18
Syntax :
=LEFT(text,numchar)
=MID(text,startnum,numchar)
=RIGHT(text,numchar)
TEXT FUNCTION
19
EXAMPLE
20
Example
Create this table!
21
Absolute Cell
Create this table!
Example
Fill the desc column with :
REMIDIAL
If UHT Result < KKM
CONGRATULATION
If UHT Result >=KKM
=IF(C5<$D$2,REMIDI,CONGRAT)
=IF(C6<D3,REMIDI,CONGRAT)
=IF(C7<D4,REMIDI,CONGRAT)
=IF(C9<D6,REMIDI,CONGRAT)
22
Exercise 1
Create this table!
23
SOAL 1
SOAL 2
SOAL 3
SOAL 1
SOAL
Incorrect formula
Correct formula
28
OPERATOR MATEMATIKA
OPERATOR
FUNGSI
Perkalian
Penjumlahan
Pengurangan
Pembagian
>
Lebih dari
<>
Pangkat
>=
29