0% found this document useful (0 votes)
8 views

Day4

The document contains a grading table for students based on their total marks out of 600, with grades ranging from Fail to A+. It also includes examples of using various Excel functions like VLOOKUP, HLOOKUP, INDEX, and MATCH to retrieve data from tables and calculate tax rates based on income. Additionally, it provides a summary of employee details including names, departments, extensions, and hire dates.

Uploaded by

Yogendra Jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Day4

The document contains a grading table for students based on their total marks out of 600, with grades ranging from Fail to A+. It also includes examples of using various Excel functions like VLOOKUP, HLOOKUP, INDEX, and MATCH to retrieve data from tables and calculate tax rates based on income. Additionally, it provides a summary of employee details including names, departments, extensions, and hire dates.

Uploaded by

Yogendra Jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Grade

0% 34% Fail Students Total marks Scored Total Marks


35% 50% C Student1 148 600
51% 60% B Student2 331 600
61% 84% A Student3 199 600
85% 100% A+ Student4 585 600
Student5 440 600
Student6 284 600
Student7 415 600
Student8 480 600
Student9 362 600

Student10 200 600


Student11 408 600
Student12 595 600
Student13 336 600
Student14 287 600
Student15 562 600
Student16 215 600
Student17 217 600
Student18 264 600
Student19 196 600
Student20 119 600
Student21 233 600
Student22 414 600
Student23 218 600
Student24 192 600
Percentage Grade Calculate Percentage and Assign grades as per grade table
25% Fail
55% B Lookup Functions
33% Fail Lookup
98% A+ Vlookup
73% A Hlookup
47% C match and index
69% A offset
80% A
60% B

33% Fail =LOOKUP(J3,$B$2:$C$6,$D$2:$D$6)


68% A
99% A+
56% B
48% C
94% A+
36% C
36% C
44% C
33% Fail
20% Fail
39% C
69% A
36% C
32% Fail
6,$D$2:$D$6)
First Name Department Extension Date Hired

Last Name --> Kohli Virat Operations 3432 4/16/2003

Column index no. 1 2


Last Name First Name Department Extension Date Hired
Chauhan Vijay Sales 4466 3/5/1998
Kohli Virat Operations 3432 4/16/2003
Tendulkar Sachin Marketing 4422 12/1/2010
Dixit madhuri Administration 2822 9/16/1999
Singh Ranveer Administration 1231 3/12/2011
Kapoor Anil Administration 2604 4/15/2009
Devgan Ajay Operations 3983 2/9/2012
Shah Amit Data Processing 2144 3/24/2004
Roy Arnab Data Processing 1102 11/12/2003

Adv. searches for value from left to right


Disadv. it cannot search the value from right to left.
Extension First Name Department Extension First Name Department

Extension 2604 Anil Administration 4466 Vijay Sales

=VLOOKUP(J3,CHOOSE({1,2},F6:F15,D6:D15),2,FALSE()) =VLOOKUP(N3,CHOOSE({1,2},F6:F15,D6:D15),2,F

vlookup + choose =VLOOKUP(N3,CHOOSE({1,2},F6:F15,E6:E15),2,FA

In this example get the values Using VLOOKUP for the cells D2, E2, F2 and
G2 which are having the titles as First Name, Department, Extension and
Date Hired respectively.h

Reverse Vlookup with Choose function


E({1,2},F6:F15,D6:D15),2,FALSE())

E({1,2},F6:F15,E6:E15),2,FALSE())
Income is Greater Than But Less Than or
Tax Rate
or Equal To… Equal To…
Enter Income: ₹ 5,000 ₹0 ₹ 2,650 15.00% Enter Income:
The Tax Rate is: 28.00% ₹ 2,651 ₹ 27,300 28.00% The Tax Rate is:
₹ 27,301 ₹ 58,500 31.00%
=VLOOKUP(B2,$D$1:$F$7,3,TRUE()) ₹ 58,501 ₹ 131,800 36.00%
₹ 131,801 ₹ 284,700 39.60% Enter Income:
₹ 284,701 45.25% The Tax Rate is:

Note: This is set up to work with whole numbers only (no decimals).

In this example find the tax rate for the given income by using VLOOKUP
Enter Income: ₹ 15,000 Enter Income: ₹ 95,000
The Tax Rate is: 28.00% The Tax Rate is: 36.00%

Enter Income: ₹ 125,000 Enter Income: ₹ 300,000


The Tax Rate is: 36.00% The Tax Rate is: 45.25%

by using VLOOKUP
Income is Greater Than
₹0 ₹ 2,651 ₹ 27,301 ₹ 58,501
or Equal To…

Enter Income: ₹ 125,000 But Less Than… ₹ 2,650 ₹ 27,300 ₹ 58,500 ₹ 131,800

The Tax Rate is: 36.00% Tax Rate 15.00% 28.00% 31.00% 36.00%

=HLOOKUP(B2,$E$1:$J$3,3,TRUE())
Enter Income: ₹ 300,000 In this example find the tax rate for the given income by using HLOOKUP
The Tax Rate is: 45.25%

Enter Income: ₹ 145,000


The Tax Rate is: 39.60%
₹ 131,801 ₹ 284,701

₹ 284,700

39.60% 45.25%

n income by using HLOOKUP


Date: 1/12/2013 Date Weekday Amount
Amount: 189 1/1/2013 Tuesday 23 In this example use In
Weekday Saturday 1/2/2013 Wednesday 179 amount from the tab
1/3/2013 Thursday 149
Date: 1/20/2013 1/4/2013 Friday 196
Amount: 156 1/5/2013 Saturday 131
Weekday Sunday 1/6/2013 Sunday 179
1/7/2013 Monday 134
Date: 1/7/2013 1/8/2013 Tuesday 179
Amount: 134 1/9/2013 Wednesday 193
Weekday Monday 1/10/2013 Thursday 191
1/11/2013 Friday 176
Date: 1/18/2013 1/12/2013 Saturday 189
Amount: 138 1/13/2013 Sunday 163
Weekday Friday 1/14/2013 Monday 121
1/15/2013 Tuesday 100
1/16/2013 Wednesday 109
1/17/2013 Thursday 151
1/18/2013 Friday 138
1/19/2013 Saturday 114
1/20/2013 Sunday 156

=INDEX(F2:F21,MATCH(B1,D2:D21,0))
In this example use Index and Match function to get the
amount from the table with respect to the given date.

Match Funchtion
It returns column or row index number from a selected list of array.

Column index no Row index number


1 9
2

Index
It will return the value for you at te intersection of a row and a column
-2 -1 0 1 2 3
Country Customer Cust_ID Product Qty Amount
India Ramco corp ID_501 Mango 187 168300
Singapore Seeta Corp ID_502 Orange 240 42000
New Zealand John p ltd ID_503 Pineapple 424 74200
Australia Sydney co ltd ID_504 Pineapple 241 42175
Egypt Abc Intl ID_505 Mango 342 307800
Dubai DB Corp ID_506 Orange 126 22050
France France co ltd ID_507 Pineapple 461 80675
Italy IT LTD ID_508 Mango 207 186300
Germany Gem co ltd ID_509 Orange 243 42525
Canada Candid Corp ID_510 Orange 121 21175
USA US co ltd ID_511 Mango 485 436500
Cust_ID Country Product Customer
ID_504 Australia Pineapple Sydney co ltd
ID_509 Germany Orange Gem co ltd
ID_511 USA Mango US co ltd
ID_506 Dubai Orange DB Corp
ID_502 Singapore Orange Seeta Corp
=OFFSET($E$3,MATCH(K4,$E$4:$E$14,0),-2)

Cust_ID Customer Product Country


ID_501 Ramco corp Mango #N/A
ID_503 John p ltd Pineapple #N/A
ID_505 Abc Intl Mango #N/A
ID_508 IT LTD Mango #N/A
ID_510 Candid Corp Orange #N/A
=INDEX(myData,MATCH($K12,$E$3:$E$14,0),MATCH(L$11,myTable,0))
#REF!

Amount
42175
42525
436500
22050
42000
MATCH(K4,$E$4:$E$14,0),-2)

Qty
187
424
342
207
121
2,$E$3:$E$14,0),MATCH(L$11,myTable,0))
P1 P2 P3 P4
Jan 59 74 97 96
Feb 78 70 65 84
Mar 98 88 90 80
Apr 59 94 96 71
May 79 98 81 63
Jun 52 63 51 98
Jul 83 74 67 86
Aug 90 55 57 83
Sep 67 72 82 76
Oct 54 93 84 79
Nov 52 63 78 58
Dec 76 79 95 85

Sum Average Max Min


Jan 326 81.5 97 59
Feb 297 74.25 84 65
Mar 356 89 98 80

You might also like