You are on page 1of 4

Page 1 of 4

example - 1

A B C D
1 Name Sales Target Result
2 Alan 1000 5000
3 Bob 6000 5000
4 Carol 2000 4000

=IF(B2>=C2,"Achieved","Not Achieved")



example - 2

This time the Commission to be paid to the sales rep is calculated.
If the Sales are greater than or equal to the Target, the Commission is 10% of Sales.
If the Sales do not reach Target, the Commission is only 5% of Sales.

A B C D
1 Name Sales Target Result
2 Alan 1000 5000
3 Bob 6000 5000
4 Carol 2000 4000

=IF(B2>=C2,B2*10%,B2*5%)


example - 3
This example uses the =AND() within the =IF() function. A builders merchant gives 10% discount on
certain product lines. The discount is only given on products which are on Special Offer, when the
Order Value is 1000 or above. The =AND() function is used with the =IF() to check that the product is on
offer and that the value of the order is above 1000.

Product Special Offer Order Value Discount Total
Wood Yes 2,000 200 1,800
Glass No 2,000 - 2,000
Cement Yes 500 - 500
Turf Yes 3,000 300 2,700

=IF(AND(B2="Yes",C2>=1000),C2*10%,0)
Page 2 of 4

example - 4

Write a function which returns if the students Pass or Fail if the average mark is greater or equal to 10.

Student Course 1 Course 2 Course 3 Average Result
Luc 8 15 9
Estelle 4 15 16
Laurent 11 6 8
Paul 17 16 3
La 17 18 10
Murielle 6 5 13
Thierry 18 19 15



Example - 5

S
t
u
d
e
n
t

N
a
m
e

R
o
l
l

N
o
.

T
e
s
t

1

T
e
s
t

2

T
e
s
t

3

T
e
s
t

4

T
e
s
t

5

T
o
t
a
l

P
e
r
c
e
n
t
a
g
e

R
e
m
a
r
k
s

G
r
a
d
e

Priya 101 45 67 87 86 35
Talan 102 23 76 68 54 76
Sharma 103 34 67 78 75 82
David 104 94 89 79 90 88
Edward 105 23 56 74 33 67
John 106 36 78 83 93 77
Alan 107 38 47 46 59 34
Smith 108 56 67 78 87 45
Jones 109 88 89 99 98 89
Frank 110 12 14 34 14 24

Remarks: IF(Per%>=80%,"EXLT", IF(Per%>=70%,"V.GOOD", IF(Per%>=60%,"GOOD","BAD")))
Grade : IF(Per%>=80%,"A+", IF(Per%>=70%,"A", IF(Per%>=60%,"B","FAIL")))


Page 3 of 4

Example - 6

Sales Report
Name Basic Sale 1 Sale 2 Sale 3 Total Sale
A
l
l
o
w
a
n
c
e

1

A
l
l
o
w
a
n
c
e

2

A
l
l
o
w
a
n
c
e

3

Evans 2500 900 800 250
Henry 2000 150 250 900
Jake 2200 100 300 500
Neil 2500 450 250 400
Zack 2400 150 100 400

Allowance 1 : IF (Tot Sale >= 1000, Basic*35%, IF (Tot Sale >= 800,Basic*25%, "Try Again" ) )
Allowance 2 : IF (OR (Tot Sale > 800, Basic = 2500), 1000, 500 )
Allowance 3 : IF (AND (Tot Sale > 800, Basic = 2500), 1000, 500)


Example - 7

S
a
l
e
s

P
e
r
s
o
n

Qtr1 Qtr2 Qtr3
T
o
t
a
l

S
a
l
e

R1 R2 R3 R4 R5 R6 R7
S
m
i
t
h

T
o
t
a
l

S
m
i
t
h

o
r

J
o
h
n

T
o
t
a
l

Smith 0 8 9
Gibbs 6 9 4
Henery 7
John 4 3 2
Alen 6 4
Disoza 1 0 7
Smith 9 8 6

R1 : = IF ( MAX (B2:D2 ) >7, "OK", "NOT" )
R2 : = IF( MIN (B2:D2 ) <5, "OK", "NOT" )
R3 : = IF ( SUM ( C2:E2 ) >15, "OK", "NOT" )
R4 : = IF ( COUNT ( C2:E2 ) =3, "Y", "N" )
R5 : = IF ( COUNTIF ( C2:E2, ">5" ) >1, "Y", "N" )
R6 : = IF ( SUMIF ( C2:E2, ">5" ) >15, "Y", "N" )
R7 : = IF ( AVERAGE ( C2:E2 ) >5, "Y", "N" )
Smith Total : = IF ( B2 = "Smith", SUM (C2:E2), "NOT" )
Smith or John total : = IF ( OR ( B2 = "Smith", B2 = "John" ), SUM ( C2:E2 ), "NOT" )

Page 4 of 4

example - 8

Student Name ID# Test 1 Test 2 Test 3 Test 4 Test 5 Total Percentage Grade
Cindy 6 67 56 89 68 80
Bryan 3 56 57 78 46 47
Geneva 4 78 89 88 90 87
William 1 98 99 91 95 90
Jones 7 34 23 22 12 67
Andrew 2 67 78 89 67 97
Michael 5 24 34 34 23 34
Nelson 8 67 84 66 77 86
Stacey 9 23 46 57 87 90
Maria 10 45 67 45 78 88

Grade : VLOOKUP ( lookup_value , table_array , col_index_num )
Vlookup ( i2 , a14 : b20 , 2 )
Vlookup ( i2 , $a$14 : $b$20 , 2 )



example - 9

Bonus :
=IF(B2>6000,B2*10%,IF(B2>5000,B2*20%,B2*50% ) )
= sumif ( c2 : c 13 , > 2000 )
= countif ( c2 : c13 , > 2000 )
Grading Criteria
0 % FAIL
40 % D
50 % C
60 % B
70 % A
80 % A+
A B C
1 Name Basic Bonus
2 Daniel 4000
3 Maureen 3000
4 John 2500
5 Nihar 6000
6 Somnath 4000
7 Priya 7000
8 Spoorthi 5000
9 Smith 4000
10 Brown 2500
11 Wallace 5000
12 Adams 3000
13 Veronica 6000
14 Total ( > 2000 )
15 No. of Bonus ( > 2000 )

You might also like