You are on page 1of 7

VLOOKUP() & HLOOKUP()

VLOOKUP: (Look-up value, Lookup-array, Ret


HLOOKUP: (Look-up value, Lookup-array, Ret
A Example lookup
Students' marks are given along with their names (dummy data).
Grades have to be allocated to students based on their marks us
Use appropriate formula to determine the students' individual gra
Name Marks GRD?
StudentName1 38
StudentName2 29
StudentName3 13
StudentName5 41
StudentName4 15
StudentName5 28
StudentName6 15
StudentName7 31
StudentName8 27
StudentName9 34
StudentName10 25

B Some items have been sold in a shop. Their price has to be look

Item Item code Qty (Nos) Unit price Total (Rs)


Item-1 S564 10
Item-2 C900 83
Item-3 E114 33
Item-4 B97 26
Item-4 B97 14
Item-5 A101 2

C
Fill suitable formulae to yield the final grade of a student if the marks in three

SUBJECT WISE GRAD


Name Maths Biology English Maths
Anurag 47 34 36
Suman 34 38 39
Kusum 42 26 33
Shradha 45 39 42
Mishthi 39 29 31
Zakib 31 32 27

FINAL GRADE TABLE


Marks--> 0 20 40 50
GRADE--> F D- D D+
Change marks in different cells and check your results - are they correct?!

D Errors in using VLOOKUP:

Item Item code Qty (Nos) Unit price Total (Rs)


Item-1 S564 10 45.6
Item-2 C900 83 76.08
Item-3 E114 33 13.44
Item-4 B97 26 76.08
Item-4 B97 14 76.08
Item-5 A101 2 12.6
Check: Are the prices fetched by VLOOKUP correct? Why no

E Errors in using VLOOKUP:

Item Item code Qty (Nos) Unit price Total (Rs)


Item-1 S564 10 #N/A
Item-2 C900 83 199.99
Item-3 E114 33 13.44
Item-4 B97 26 76.08
Item-4 B97 14 76.08
Item-5 A101 2 12.6
Check: Why is #N/A error appearing for item S564?
Check: Why is the price of C900 shown as 199.99 instead of
okup-array, Return-col-num, <range lookup?>)
okup-array, Return-col-num, <range lookup?>)

s (dummy data).
n their marks using MRKS to GRD table.
ts' individual grades.
MRKSGRD
0F
10 D
20 C
30 B
40 A

e has to be looked up in given table and total amount calculated.


Unit Price Table (Rs)
ITEM-CODE PRICE (Rs)
A101 12.6
B97 76.08
E114 13.44
X879 25.74
C900 200.0
S564 45.6

the marks in three subjects and their corresponding grade tables are as given:

BJECT WISE GRADES Subject wise GRADE TABLE


Biolo English TOT M FIN-GRD Marks Grade for all subjects
0 F
10 E
20 D
30 C
40 B
50 A

60 70 80 90 100 110 120 130


C- C C+ B- B B+ A- A
re they correct?!

Unit Price Table (Rs)


ITEM-CODE PRICE (Rs)
A101 12.6
B97 76.08
E114 13.44
X879 25.74
C900 200.0
S564 45.6
orrect? Why not?

Unit Price Table (Rs)


ITEM-CODE PRICE (Rs)
A101 12.6
B97 76.08
E114 13.44
X879 25.74
C900 200.0
S564 45.6

9.99 instead of 200.0?


E TABLE
or all subjects

140
A+

You might also like