Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
We create momentum
Contents
1. Functions
1.1 rand, randbetween
1.2 max, min, round
1.3 average, sum, sumif
1.4 iferror, isblank, iserror
1.5 count, counta, countblank, countif
1.6 if, or, and
2. Nested Functions
Syntax
Functions
Function
Description
rand
randbetween
Syntax
Example
=rand()
=rand()*3; generates a
random number
between 0 and 3
=randbetween(bottom,
top)
=randbetween(5,100)
TIP: After generating the numbers with these functions, always use Paste special to
make the generated numbers stable.
Prof. Dr. Valerie Wulfhorst I Business Administration Focus on Controlling
4 I Excel Course I Week 2 I SS 2016
Functions
Function
Description
Syntax
Example
max
=max(range)
=max(A1:A10)
=min(range)
=min(A1:A10)
=round(number,num_d
igits)
=round(A1,2)
min
round
Functions
Function
Description
Syntax
Example
average
=average(range)
=average(A1:A10)
sum
=sum(range)
=sum(A1:A10)
sumif
=sumif(range,criteria,
[sum_range])
=sumif(A1:A10,>50,B1:B10)
TIP: Use double quotes to type a text after = or inside a function as =text
Prof. Dr. Valerie Wulfhorst I Business Administration Focus on Controlling
6 I Excel Course I Week 2 I SS 2016
Functions
Function
Description
Syntax
Example
isblank
=isblank(value)
=isblank(A1)
=iserror(value)
=iserror(A1)
=iferror(value,value_
if_error)
=iferror(A1,True); produces
A1 in case of no error and
True in case of error
iserror
iferror
Functions
Function
Description
Syntax
Example
count
=count(range)
=count(A1:A10)
counta
=counta(range)
=counta(A1:A10)
countblank
=countblank(range)
=countblank(A1:A10)
countif
=countif(range,criteria)
=countif(A1:A10,>50)
Functions
Function
Description
Syntax
Example
if
=if(logical_test,
[value_if_true],
[value_if_false])
=if(A1>10,yes,no)
or
=or(logical1,[logical2],)
=or(A1>100,A1<120)
and
=and(logical1,[logical2],)
=and(A1>10,A2>15,A3
>20)
Nested Functions
= IF(A1>90,1,IF(A1>50,2,3))
Nested Functions
If and
Out of the two assignments, if both of them are above 90%, then Outstanding,
otherwise an Ordinary performance
= IF(AND(A1>90,B1>90),"Outstanding","Average")
If or
Out of the two assignments, if one of them is less than 80%, then repeat both
assignments
= IF(OR(A1<80,B1<80),"Repeat","Pass")
Lets Practice!