You are on page 1of 19

LOOKLUP & REFERENCE FUNCTIONS

ROW | ROWS
COLUMN | COLUMNS
FILTER
SORT
SORTBY
UNIQUE
HLOOKUP
VLOOKUP
XLOOKUP
LOOKUP
INDEX
MATCH
XMATCH
Publisher Genre Date Qty Unit Sales
Nintendo Sports 1/22/2020 10 ₹ 137,853.00
Nintendo Shooter 1/23/2020 12 ₹ 132,117.00
Nintendo Puzzle 1/24/2021 20 ₹ 106,470.00
Nintendo Shooter 1/25/2022 13 ₹ 136,030.00
Berkeley Simulation 1/20/2020 16 ₹ 143,686.00
Berkeley Racing 1/21/2021 10 ₹ 105,918.00
Avanquest Software Shooter 1/17/2020 15 ₹ 148,762.00
Avanquest Software Puzzle 1/18/2021 14 ₹ 123,919.00
Avanquest Software Shooter 1/19/2022 15 ₹ 121,464.00
Avanquest Simulation 1/14/2020 10 ₹ 149,433.00
Avanquest Racing 1/15/2021 14 ₹ 102,671.00
Avanquest Sports 1/16/2022 18 ₹ 119,780.00
Avalon Interactive Shooter 1/11/2020 14 ₹ 120,131.00
Avalon Interactive Puzzle 1/12/2021 16 ₹ 123,919.00
Avalon Interactive Shooter 1/13/2022 17 ₹ 132,522.00

Publisher Genre Date Qty Unit Sales


5

4
WEEK 1 FIGURES
Day Raj Seema Sid
Fri 1842 1253 1608
Mon 1401 1597 1847
Thu 1031 1448 1153
Tue 1808 1101 1401
Wed 1094 1650 1041

Day Raj
Fri 1842 2

Day Day at 4th position WEEK 1 FIGURES


1031

Day POSITION
Wed

match_type argument
Match_type Behavior
1 or omitted MATCH finds the largest value that is less than or equal to lookup_value. The values in the lookup_array argum
0 MATCH finds the first value that is exactly equal to lookup_value. The values in the lookup_array argument can
-1 MATCH finds the smallest value that is greater than or equal tolookup_value. The values in the lookup_array a

match_mode argument
match_mode Behavior
-1 Exact match or next smaller item
0 Exact match only (returns #N/A for no match)
1 Exact match or next larger item
2 Wildcard Match (*,?,~)

search_mode argument
Search Mode Search Behaviour
1 (default) Search from first value
-1 Reversed search from last value
2 Binary search with values sorted in asc order
-2 Binary search with values sorted in desc order
WEEK 2 FIGURES
Day Raj Seema
Mon 1011 1832
Tue 1311 1706
Wed 1553 1649
Thu 1826 1187
Fri 1880 1168

WEEK 2 FIGURES

Amount POSITION
1500

s in the lookup_array argument must be placed in ascending order, for example: ...-2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE.
lookup_array argument can be in any order.
alues in the lookup_array argument must be placed in descending order, for example: TRUE, FALSE, Z-A, ...2, 1, 0, -1, -2, ..., and so on.
2, 1, 0, -1, -2, ..., and so on.
SKU Price Item Name
SKU001 88343 Samsung Galaxy S21 FE 5G
SKU002 47283 Samsung Galaxy Z Flip3 5G
SKU003 95163 Samsung Galaxy S23+
SKU004 62476 Samsung Galaxy A72
SKU005 40203 Samsung Galaxy F12
SKU006 62828 Samsung Galaxy Tab S7
SKU007 76783 Samsung Galaxy M32
SKU008 99730 Samsung Galaxy A12
SKU009 83580 Samsung Galaxy M32
SKU010 41926 Samsung Galaxy A13

Employee Name Week1 Week2


Anjali Ray 33000 14850
Suraj Cheema 43000 19350
Rajesh Rai 45000 20250
Aditi Chaudhuri 35000 15750
Vishnu Mittal 33000 11700

SKU Item Name


SKU005 Samsung Galaxy F12

6
Week3 Week4
13200 34000
17200 28000
18000 33000
14000 44000
10400 20250
SKU Item Name
SKU005 Samsung Galaxy F12

Item Name SKU


Samsung Galaxy Z Flip3 5G SKU002

Employee Name
Rajesh Rai
Week1
Total Sale
#NAME?
match_mode argument
match_mode Behavior
-1 Exact match. If none found, return the next smaller item.
0 Exact match. If none found, return #N/A. This is the default.
1 Exact match. If none found, return the next larger item.
2 Wildcard Match (*,?,~)

search_mode argument
Search Mode Search Behaviour
1 (default) Search from first value
-1 Reversed search from last value
2 Binary search with values sorted in asc order
-2 Binary search with values sorted in desc order
Employee ID Employee Name Net Salary Basic Salary HRA Medical Allowance
1000001 Anjali Ray 33000 14850 13200 4950
1000002 Suraj Cheema 43000 19350 17200 6450
1000003 Rajesh Rai 45000 20250 18000 6750
1000004 Aditi Chaudhuri 35000 15750 14000 5250
1000005 Vishnu Mittal 33000 11700 10400 3900
1000006 Rachana Aggarwal 27000 12150 10800 4050
1000007 Suniti Dugar 34000 15300 13600 5100
1000008 Ranjit Narayan 28000 12600 11200 4200
1000009 Suniti Acharya 33000 17550 15600 5850
1000010 Atharv Tripathi 44000 19800 17600 6600

1 Return the number of rows in the above data (Excluding the header) using ROWS function

2 Return the Excel Row number for Rachana Aggarwal using ROW function

3 Return the position of Rachana Aggarwal (Use Cell B21 as reference) in the above table using INDEX

Employee Name Position


Rachana Aggarwal

4 Return the name of the employee using HLOOKUP based on position 4 (Use Cell B26 as reference)

Position
4
Employee Name
Aditi Chaudhuri
In the above formula if you give the table_array as A1:G11, you get incorrect result but get the correct result w

5 Using FILTER function return only the records where the name of the employee starts with R. If there is no resu

Employee ID Employee Name Net Salary Basic Salary HRA

6 Use SORTBY function to return sorted values from the above table. Use 2 criteria. Criteria 1: Employee Name -

Employee ID Employee Name Net Salary Basic Salary HRA


7 Return unique salaries
EXPECTED OUTPUT
Net Salary Net Salary
33000
43000
45000
35000
27000
34000
28000
44000

8 Return unique salaries which appear only once


EXPECTED OUTPUT
Net Salary Net Salary
43000
45000
35000
27000
34000
28000
44000

9 Return then mediclaim number for the employee id mentioned in cell B86

Using VLOOKUP Using INDEX/MATCH


Employee ID Employee ID
1000005 1000005
Medicalim Number Medicalim Number

10 Use INDEX MATCH to return the name of employee whose Medicalim Number is mentioned in cell B84

Medicalim Number
Med004 EXPECTED OUTPUT
Employee Name Employee Name
Aditi Chaudhuri
Medicalim Number
Med001
Med002
Med003
Med004
Med005
Med006
Med007
Med008
Med009
Med010

table using INDEX

26 as reference)

t but get the correct result when you use A1:B11. Why?

arts with R. If there is no result then it should return "No result found"
E
Medical Allowance Medicalim Number Employee ID
1000003
1000006
1000008

Criteria 1: Employee Name - Ascending. Criteria 2: Net Salary Descending


E
Medical Allowance Medicalim Number Employee ID
1000004
1000001
1000010
1000006
1000003
1000008
1000009
1000007
1000002
1000005

Using XLOOKUP
Employee ID EXPECTED OUTPUT
1000005 Med005
Medicalim Number

mentioned in cell B84


EXPECTED OUTPUT
Employee Name Net Salary Basic Salary HRA Medical Allowance
Rajesh Rai 45000 20250 18000 6750
Rachana Aggarwal 27000 12150 10800 4050
Ranjit Narayan 28000 12600 11200 4200

EXPECTED OUTPUT
Employee Name Net Salary Basic Salary HRA Medical Allowance
Aditi Chaudhuri 35000 15750 14000 5250
Anjali Ray 33000 14850 13200 4950
Atharv Tripathi 44000 19800 17600 6600
Rachana Aggarwal 27000 12150 10800 4050
Rajesh Rai 45000 20250 18000 6750
Ranjit Narayan 28000 12600 11200 4200
Suniti Acharya 39000 17550 15600 5850
Suniti Dugar 34000 15300 13600 5100
Suraj Cheema 43000 19350 17200 6450
Vishnu Mittal 26000 11700 10400 3900
Medicalim Number
Med003
Med006
Med008

Medicalim Number
Med004
Med001
Med010
Med006
Med003
Med008
Med009
Med007
Med002
Med005

You might also like