Lookup Functions With Practical Business Case Study
Lookup Functions With Practical Business Case Study
Carefulness of VLOOKUP
• Inserting a column in the source
• Using $ Sign for locking the rows if source is a specific rectangle range
• Using $ Sign for locking the columns if we want to copy the formula to the another column
• Format of lookup value and the value of matching column of source should be same
Region East West North South Middle South-East North-West
Sales Amount 11,000 5,000 33,000 49,000 48,000 55,000 56,000
Salling Expense 1,000 700 3,200 6,700 5,300 6,400 5,300
Administrative Expense 1,000 600 2,500 4,400 2,500 3,200 3,200
Total Expense 2,000 1,300 5,700 11,100 7,800 9,600 8,500
Expense % 18% 26% 17% 23% 16% 17% 15%
Select
Region Sales Expense %
74200.175
28600
Country Code Brand Name Product Type Doses For
MYN 1001 Metnizole Tablet Tablet Anti-Infectives
NEP 1004 Metnizole DS Tablet Tablet Anti-Infectives1
THL 1008 Metnizole Susp. Suspension Anti-Infectives
SRL 1009 Cantazin Tablet Tablet Allergic Discorders
PAK 1015 Cantazin Syrup Syrup Allergic Discorders-1
SOM 1016 Cantazin Drops Drops Allergic Discorders
NIG 1017 Tamoxa Tablet Anti-Cancer
BHT 1019 Nitaxo Susp. Suspension Anti-Infectives
MATCH Combination of
Code Index Value Country
Value INDEX & MATCH
1004 3 Metnizole DS Tablet Anti-Infectives1 =INDEX($A$2:$A$10,MATCH(A13,$B$2:$B$10,0))
1015 6 Allergic Discorders-1 PAK
1001 2 Anti-Infectives MYN
CH(A13,$B$2:$B$10,0))
Employee
ID Work Place
1003 Sylhet
1005 Chittagong
1009 Sylhet
1013 Dhaka
1016 Sylhet
1018 Chittagong
Employee Date of
Work Place Name Unit Department Designation Gender
ID Joining
Bogra 1001 Employee - 1 Unit-1 ACT EX Male 26-Apr-02
Dhaka 1002 Employee - 2 Unit-2 PRD EX Male 11-Nov-00
Sylhet 1003 Employee - 3 Unit-3 HRD EX Male 24-Oct-11
Chittagong 1004 Employee - 4 Unit-1 ACT SE Female 2-Nov-14
Chittagong 1005 Employee - 5 Unit-3 SLS SM Female 13-Jul-01
Bogra 1006 Employee - 6 Unit-3 ACT3 SM Male 17-Jun-03
Chittagong 9999 Employee - 7 Unit-3 MKT SE Male 31-Oct-03
Sylhet 1008 Employee - 8 Unit-4 HRD SM Male 13-Mar-15
Sylhet 1009 Employee - 9 Unit-3 ACT EX Female 21-Mar-02
Bogra 1010 Employee - 10 Unit-2 ACT EX Male 13-May-05
Dhaka 1011 Employee - 11 Unit-4 WRH EX Male 29-Mar-12
Bogra 1012 Employee - 12 Unit-2 ACT M Male 24-Apr-07
Dhaka 1013 Employee - 13 Unit-1 PRD EX Male 6-Jul-09
Chittagong 1014 Employee - 14 Unit-3 HRD EX Male 13-Mar-14
Bogra 1015 Employee - 15 Unit-4 PRD EX Male 28-Dec-13
Sylhet 1016 Employee - 16 Unit-3 PCT SM Male 22-Feb-01
Dhaka 1017 Employee - 17 Unit-3 SLS EX Male 25-May-06
Chittagong 1018 Employee - 18 Unit-3 PRD SM Male 1-Feb-14
Dhaka 1019 Employee - 19 Unit-2 SLS EX Male 4-Mar-00
Dhaka 1020 Employee - 20 Unit-3 SLS SE Male 7-Sep-15
=E3
18600
LOOKUP Function. Example-1
Job Length wise Special Facility
From To Special Facility Name Job Length
0 10 50,000 Mr. Kader Khan 19
11 15 80,000 Mr. Kader Khan 20
16 20 120,000 19
20 25 220,000
25 300,000
PRO TIPS
Lookup vector or array must be sorted on ascending order
If the lookup_value is less than all (i.e. the first) value in lookup_vector, the LOOKUP function returns the #N/A error
(Example: If your lookup value is 999, it will show #N/A because in the range the smallest value is 1001)
If the lookup_value is greater than every value in lookup_vector, the LOOKUP function matches the last value
(Example: If your lookup value is 1009, it will show Danish because the largest matching value is 1007)
Special Facility
120,000
220,000
120000
Special Facility
120,000 2 SEPARATE RANGE
120000 ONE FULL RANGE
he #N/A error
est value is 1001)
ng value is 1007)
Code Amount
10011 1001 400 1002 1 =VLOOKUP(E2&F2,$A$2:$C$8,3,0)
10021 1002 560 1002 2 700
10031 1003 334 1002 3 690
10022 1002 700
10071 1007 900
10012 1001 800
10023 1002 690
P(E2&F2,$A$2:$C$8,3,0)
Series1 Series2 Formula Output
1st Nails 2nd 2nd
2nd Screws SYL SYL
3rd Nuts
Finished Bolts
Match Value
3
Product
Prd-1
Prd-2 Prd-3
Prd-3