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

Lookup Functions With Practical Business Case Study

Here are the steps to calculate the total sales from April to June by using OFFSET function: 1) Identify the cell that contains the sales amount for April. In this case, it is cell D4. 2) Use OFFSET function to reference a range that is 4 rows below cell D4 and has a height of 3 rows: =OFFSET(D4,4,0,3,1) 3) Sum the referenced range: =SUM(OFFSET(D4,4,0,3,1)) So the final formula is: =SUM(OFFSET(D4,4,0,3,1)) This will calculate the total sales

Uploaded by

Tanvir Chowdhury
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Lookup Functions With Practical Business Case Study

Here are the steps to calculate the total sales from April to June by using OFFSET function: 1) Identify the cell that contains the sales amount for April. In this case, it is cell D4. 2) Use OFFSET function to reference a range that is 4 rows below cell D4 and has a height of 3 rows: =OFFSET(D4,4,0,3,1) 3) Sum the referenced range: =SUM(OFFSET(D4,4,0,3,1)) So the final formula is: =SUM(OFFSET(D4,4,0,3,1)) This will calculate the total sales

Uploaded by

Tanvir Chowdhury
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 17

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 ACT 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
Present H/Rent Medical
Gross Pay
Basic Allownce Allowance
11,000 9,900 2,500 23,400
10,000 9,000 2,500 21,500
10,000 9,000 2,500 21,500
17,000 15,300 3,000 35,300
19,000 17,100 3,300 39,400
18,000 16,200 3,300 37,500
16,000 14,400 3,000 33,400
18,000 16,200 3,300 37,500
12,000 10,800 2,500 25,300
12,000 10,800 2,500 25,300
10,000 9,000 2,500 21,500
26,000 23,400 3,500 52,900
10,000 9,000 2,500 21,500
13,000 11,700 2,500 27,200
12,000 10,800 2,500 25,300
18,000 16,200 3,300 37,500
13,000 11,700 2,500 27,200
23,000 20,700 3,300 47,000
12,000 10,800 2,500 25,300
16,000 14,400 3,000 33,400
Employee Date of Present
Name Unit Department Gross Pay
ID Joining Basic
1002 =VLOOKUP(A5,VLDATA Unit-2 PRD 10,000
1008 Employee - 8 Unit-4 HRD 18,000
1006 Employee - 6 Unit-3 ACT 18,000
1007 #N/A #N/A ACT #N/A
1011 Employee - 11 Unit-4 WRH 10,000
1015 Employee - 15 Unit-4 PRD 12,000
1003 Employee - 3 Unit-3 HRD 10,000
1018 Employee - 18 Unit-3 PRD 23,000
1009 Employee - 9 Unit-3 ACT 12,000

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 %

West 5000 26%

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

Emp ID Department Gender Unit


1006 ACT3 Male Unit-3
1009 ACT Female Unit-3
1013 PRD Male Unit-1
1017 SLS Male Unit-3
Month DHK CTG KHL RAJ SYL
Jan 200 500 300 200 300
Feb 300 200 500 500 300 Example-1: Cell value (2 rows down and 4 Column
Mar 300 300 300 200 200 Total Sales
Apr 300 400 500 500 400 =OFFSET(A1,2,4,1,1)
May 400 300 500 400 500
Jun 500 200 300 500 500 Example-2: Total Sales Apr to Jun (4 rows down a
Jul 500 200 500 300 300 Total Sales
Aug 500 200 400 500 300 6200 6200
Sep 500 300 500 200 200
Oct 400 500 500 500 500 Example-3: Total Sales Upto Month (1 row down
Nov 200 200 500 500 200 Upto Total Sales
Dec 200 500 400 300 300 Aug 14500
Oct 18600
l value (2 rows down and 4 Columns Right)

=E3

tal Sales Apr to Jun (4 rows down and 1 column right)


Range=3 rows and 5 columns)

tal Sales Upto Month (1 row down and 1 column right)


Range=8 rows and 5 columns)

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

LOOKUP Function. Example-2


Job Length wise Special Facility
From 0 11 16 20 25
To 10 15 20 25
Special Facility 50,000 80,000 120,000 220,000 300,000

Name Job Length


Mr. Kader Khan 19
19

LOOKUP Function. Example-3

ID First Name Last Name Email Phone


1001 Javed Kamal [email protected] 201
1002 Abdul Halim [email protected] 202
1004 Kashem Khan [email protected] 604
1005 Hasan Mortuza [email protected] 305
1007 Danish Rasel [email protected] 407

ID First Name Last Name Email Phone


1010 Danish Rasel [email protected] 407

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

Month Chocolates Cookies S. Drinks Ice Cream Select a Product S. Drinks


Jul-17 1,080 1,980 2,530 1,440
Aug-17 2,640 2,720 1,250 2,490
Sep-17 2,640 2,250 1,680 2,210
Oct-17 2,150 2,090 2,850 2,910 01552335679
Nov-17 1,900 1,590 1,110 1,030 [email protected]
Dec-17 2,410 2,350 1,130 1,910

Total Sales 10,550


Average Sales 1,758
Min Sales
Max Sales
Match Value

3
Product
Prd-1
Prd-2 Prd-3
Prd-3

You might also like