Module 2
Contents
If()
Count()
Sum()
Vlookup()
=if(C2<=5000,Loss
,Profit)
Logical Function.xls/IF
Function Sheet
Erro
r!
A space () was
added BEFORE
the word
A space () was
added AFTER the
word
Logical Function.xls/IF
Function Sheet
Logical Function:
IF Statement
Original
formula
Modified
formula
TRIM() function removes
extra spaces from a word
except single spaces
between two words
A
A drop
drop down
down list
list may
may be
be
used
used under
under the
the Category
Category
to
to avoid
avoid typo
typo error
error
Logical Function.xls/IF
Function Sheet
=countif(A:A
,F4)
=countif(C:C,Li
ne)
=countif(C:C,B
ase)
=count(B:
B)
EXER3: CountCountIf Sheet
a
1
a =SUMIF(A:A,F4,D:D)
1
a
1
a
2
a =SUMIF(A:A,F4,D:D)
1
=SUMIF(C:C,"line",D:D)
a
2
=SUMIF(C:C,base",D:D)
a
1
a
2
a
3
a =SUMIF(A:A,F4,D:D) =SUM(H4:H8)
1
=SUMIF(C:C,"line",D:D)
a
=SUM(H10,I12)
2
=SUMIF(C:C,base",D:D)
a
2
a
1
a
1
=SUMIF(D6:H6,"x",$D$5:$H$5)
a =SUM(J6:J13)
2
For
For the
the VLOOKUP
VLOOKUP function
function to
to work,
work, list
list must
must have
have aa column
column
containing
containing the
the unique
unique identifier,
identifier, and
and that
that column
column must
must be
be
the
the first
first column
column in
in the
the table.
table.
a
1
a
1
=SUMIF(D6:H6,"x",$D$5:$H$5)
=vlookup(C2,R
ATE,2)
It
It makes
makes little
little difference
difference to
to the
the VLOOKUP
VLOOKUP function,
function, which
which doesnt
doesnt
really
really care
care if
if the
the list
list is
is located
located on
on the
the same
same sheet,
sheet, aa different
different sheet,
sheet,
or
or aa completely
completely different
different workbook.
workbook.
Copy
a Transpose
2
button
Original
data
Transposed
data