0% found this document useful (0 votes)
19 views19 pages

Session 2.2 - Lookup and Referancing

Uploaded by

bansalkushal701
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)
19 views19 pages

Session 2.2 - Lookup and Referancing

Uploaded by

bansalkushal701
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/ 19

1.

MATCH()

The MATCH function in Excel searches for a specified value in a range of cells, and returns the relative position of that
value.
Syntax: MATCH(lookup_value, lookup_array, [match_type])

Lookup_value (required) - the value you want to find. It can be a numeric, text or logical value as well as a cell reference.
Lookup_array (required) - the range of cells to search in.
Match_type (optional) - defines the match type. It can be one of these values: 1, 0, -1. The match_type argument set to 0
returns only the exact match, while the other two types allow for approximate match.
1 or omitted (default) - find the largest value in the lookup array that is less than or equal to the lookup value. Requires
sorting the lookup array in ascending order, from smallest to largest or from A to Z.
0 - find the first value in the array that is exactly equal to the lookup value. No sorting is required.
-1 - find the smallest value in the array that is greater than or equal to the lookup value. The lookup array should be
sorted in descending order, from largest to smallest or from Z to A.

2. INDEX ()
The INDEX array form returns the value of a certain element in a range or array based on the row and column numbers
you specify.
Syntax: INDEX(array, row_num, [column_num])
array - is a range of cells, named range, or table.
row_num - is the row number in the array from which to return a value. If row_num is omitted, column_num is required.
column_num - is the column number from which to return a value. If column_num is omitted, row_num is required.

3. COLUMN()
The COLUMN function returns the column number of the given cell reference.
Syntax : COLUMN([reference])
reference Optional. The cell or range of cells for which you want to return the column number.

4. COLUMNS()
Returns the number of columns in an array or reference.
Syntax : COLUMNS(array)

5. ROW()
Returns the row number of a reference.
Syntax : ROW ([reference])

6. ROWS()
Returns the number of rows in a reference or array.
Syntax : ROWS(array)
VLOOKUP and HLOOKUP

VLOOKUP function looks up a value in the first column of a given range and returns a value in the same row from another
column.
In its common usage, Excel VLOOKUP searches through your data set based on the unique identifier and brings you a
piece of information associated with that unique identifier.
The letter "V" stands for "vertical" and is used to differentiate VLOOKUP from the HLOOKUP Function that looks up a
value in a row rather than column (H stands for "horizontal").
The function is available in all versions of Excel 365 through Excel 2007.

VLOOKUP syntax : VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])


Where:
Lookup_value (required) - is the value to search for.
This can be a value (number, date or text), cell reference (reference to a cell containing a lookup value), or the value
returned by some other function. Unlike numbers and cell references, text values should always be in enclosed in
"double quotes".

Table_array (required) - is the range of cells where to search for the lookup value and from which to retrieve a match.
The VLOOKUP function always searches in the first column of the table array, which may contain various text values,
numbers, dates, and logical values.

Col_index_num (required) - is the number of the column from which to return a value. The counting starts from the
leftmost column in the table array, which is 1.

Range_lookup (optional) - determines whether to search for approximate or exact match:


TRUE or omitted (default) - approximate match. If an exact match is not found, the formula searches for the largest value
that is smaller than the lookup value. Requires sorting the lookup column in ascending order.
FALSE - exact match. The formula searches for a value exactly equal to the lookup value. If an exact match is not found, a
#N/A value is returned.

HLOOKUP ():
Syntax: HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Lookup_value (required) - the value to search for. It can be a cell reference, numeric value or text string.

Table_array (required) - two or more rows of data in which the lookup value is searched. It can be a regular range,
named range or table. Lookup values should always be located in the first row of table_array.

Row_index_num (required) - the row number in table_array from which the value should be returned. For example, to
return the matching value from the 2nd row, set row_index_num to 2, and so on.

Range_lookup (optional) - a logical (Boolean) value that instructs HLOOKUP to search with exact or approximate match.
If TRUE or omitted, an approximate match is returned. What it means is if an exact match is not found, your Hlookup
formula will do a non-exact match and return the next largest value that is less than lookup_value.
If FALSE, only an exact match is returned. If no value in a specified row matches the lookup value exactly, HLOOKUP
throws the #N/A error.
return the matching value from the 2nd row, set row_index_num to 2, and so on.

Range_lookup (optional) - a logical (Boolean) value that instructs HLOOKUP to search with exact or approximate match.
If TRUE or omitted, an approximate match is returned. What it means is if an exact match is not found, your Hlookup
formula will do a non-exact match and return the next largest value that is less than lookup_value.
If FALSE, only an exact match is returned. If no value in a specified row matches the lookup value exactly, HLOOKUP
throws the #N/A error.
Product List
Item Code Item Description Vendor Unit Price Commission Rate
3243 Keyboard Dale $29.00 16.53%
3244 Mouse Tiger $19.00 INDEX ()
3245 Monitor Comp Inc $129.00 Row number
3246 Memory Board Comp Inc $59.00 6
3247 CD ROM Drive AJ Distributors $39.00 5
3248 Hard Drive Blu Chip $99.00 8
3249 System Unit Tiger $199.00 10
3250 System Unit Dale $199.00
3251 Mouse Arc $19.00
3252 Monitor Dale $129.00 MATCH()
3253 Memory Board Comp Inc $59.00 Lookup value
3254 Hard Drive AJ Distributors $99.00 Monitor
3255 Monitor Quick Parts $129.00 Memory Board
3256 System Unit Dale $199.00 Hard Drive
3257 Keyboard Blu Chip $29.00 Monitor
3258 Keyboard Quick Parts $29.00
3259 CD ROM Drive Tiger $39.00
3260 Hard Drive Blu Chip $99.00
3261 Mouse AJ Distributors $19.00
3262 Monitor Comp Inc $129.00
3263 CD ROM Drive Quick Parts $39.00
3264 Monitor Dale $129.00
3265 Memory Board Nickel $59.00
3266 Mouse Quick Parts $19.00
3267 Monitor Comp Inc $129.00
3268 Mouse Comp Inc $19.00
3269 Memory Board Blu Chip $59.00
3270 Keyboard AJ Distributors $29.00
3271 Memory Board Comp Inc $59.00
3272 System Unit Nickel $199.00
3273 Memory Board Comp Inc $59.00
INDEX () COLUMN
Column Numbers Result 1 2 3 4
2 Hard Drive
3 AJ Distributors
4 $199.00 COLUMNS()
1 3252 4

MATCH() ROWS()
Index Result 31
0 3
0 4
1 6 ROW
-1 3 1
2
3
4
5
Product List
Item Code Item Description Vendor Unit Price Commission Rate
3243 Keyboard Dale $29.00 16.53%
3244 Mouse Tiger $19.00 In Data sheet Prod
3245 Monitor Comp Inc $129.00 and March Sheet
3246 Memory Board Comp Inc $59.00 contains Item cod
Price from Data sh
3247 CD ROM Drive AJ Distributors $39.00 The Commission R
3248 Hard Drive Blu Chip $99.00 Claculate
3249 System Unit Tiger $199.00 Commission= Com
3250 System Unit Dale $199.00
After calculating S
3251 Mouse Arc $19.00 and March calcula
3252 Monitor Dale $129.00 complete quarter.
3253 Memory Board Comp Inc $59.00
3254 Hard Drive AJ Distributors $99.00
3255 Monitor Quick Parts $129.00
3256 System Unit Dale $199.00
3257 Keyboard Blu Chip $29.00
3258 Keyboard Quick Parts $29.00
3259 CD ROM Drive Tiger $39.00
3260 Hard Drive Blu Chip $99.00
3261 Mouse AJ Distributors $19.00
3262 Monitor Comp Inc $129.00
3263 CD ROM Drive Quick Parts $39.00
3264 Monitor Dale $129.00
3265 Memory Board Nickel $59.00
3266 Mouse Quick Parts $19.00
3267 Monitor Comp Inc $129.00
3268 Mouse Comp Inc $19.00
3269 Memory Board Blu Chip $59.00
3270 Keyboard AJ Distributors $29.00
3271 Memory Board Comp Inc $59.00
3272 System Unit Nickel $199.00
3273 Memory Board Comp Inc $59.00
In Data sheet Product list table is given. In January, February
and March Sheet a table Monthly Sales Report is given that
contains Item code and quantity. Use Vlookup to fetch Item
Price from Data sheet. Calculate Sales= Item Price * Quantity
The Commission Rate is given in Data sheet in F4 cell.
Claculate
Commission= Commission Rate * Sales

After calculating Sales and Commission for January , February


and March calculate Aggregate summary in Q1 Summary for
complete quarter.
Monthly Sales Report
Name: XYZ Month: January

Item Code Item Price Quantity Sales Commission 5%


3245 $129.00 32 $4,128.00 $206.40
3248 $99.00 15 $1,485.00 $74.25
3249 $199.00 11 $2,189.00 $109.45
3250 $199.00 22 $4,378.00 $218.90
3251 $19.00 12 $228.00 $11.40
3252 $129.00 35 $4,515.00 $225.75
3256 $199.00 33 $6,567.00 $328.35
3258 $29.00 30 $870.00 $43.50
3259 $39.00 1 $39.00 $1.95
3260 $99.00 22 $2,178.00 $108.90
3262 $129.00 18 $2,322.00 $116.10
Totals: $1,269.00 231 $28,899.00 $1,444.95
Monthly Sales Report
Name: XYZ Month: February

Item Code Item Price Quantity Sales Commission 5%


3245 #NAME? 28 #NAME? #NAME?
3248 #NAME? 11 #NAME? #NAME?
3249 #NAME? 25 #NAME? #NAME?
3250 #NAME? 28 #NAME? #NAME?
3251 #NAME? 22 #NAME? #NAME?
3252 #NAME? 24 #NAME? #NAME?
3256 #NAME? 27 #NAME? #NAME?
3258 #NAME? 31 #NAME? #NAME?
3259 #NAME? 34 #NAME? #NAME?
3260 #NAME? 12 #NAME? #NAME?
3262 #NAME? 23 #NAME? #NAME?
Totals: #NAME? 265 #NAME? #NAME?
Monthly Sales Report
Name: XYZ Month: March

Item Code Item Price Quantity Sales Commission 5%


3245 $129.00 21 $2,709.00 $135.45
3248 $99.00 2 $198.00 $9.90
3249 $199.00 35 $6,965.00 $348.25
3250 $199.00 28 $5,572.00 $278.60
3251 $19.00 28 $532.00 $26.60
3252 $129.00 14 $1,806.00 $90.30
3256 $199.00 32 $6,368.00 $318.40
3258 $29.00 5 $145.00 $7.25
3259 $39.00 7 $273.00 $13.65
3260 $99.00 27 $2,673.00 $133.65
3262 $129.00 22 $2,838.00 $141.90
Totals: $1,269.00 $30,079.00 $1,503.95

Item Code 3243 3244 3245 3246 3247 3248 3249 3250 3251
Item Description Keyboard Mouse Monitor Memory BoaCD ROM DrivHard Drive System Unit System Unit Mouse
Vendor Dale Tiger Comp Inc Comp Inc AJ DistributoBlu Chip Tiger Dale Arc
Unit Price $29.00 $19.00 $129.00 $59.00 $39.00 $99.00 $199.00 $199.00 $19.00
3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264
Monitor Memory BoaHard Drive Monitor System Unit Keyboard Keyboard CD ROM DrivHard Drive Mouse Monitor CD ROM DrivMonitor
Dale Comp Inc AJ DistributoQuick Parts Dale Blu Chip Quick Parts Tiger Blu Chip AJ DistributoComp Inc Quick Parts Dale
$129.00 $59.00 $99.00 $129.00 $199.00 $29.00 $29.00 $39.00 $99.00 $19.00 $129.00 $39.00 $129.00
Product List
Item Code Item Description Vendor Unit Price Commission Rate
3243 Keyboard Dale $29.00 16.53%
3244 Mouse Tiger $19.00
3245 Monitor Comp Inc $129.00
3246 Memory Board Comp Inc $59.00
3247 CD ROM Drive AJ Distributors $39.00
3248 Hard Drive Blu Chip $99.00
3249 System Unit Tiger $199.00
3250 Dale
3251 Mouse Arc $19.00
3252 Dale
3253 Memory Board Comp Inc $59.00
3254 Hard Drive AJ Distributors $99.00
3255 Monitor Quick Parts $129.00
3256 System Unit Dale $199.00
3257 Keyboard Blu Chip $29.00
3258 Keyboard Quick Parts $29.00
3259 CD ROM Drive Tiger $39.00
3260 Hard Drive Blu Chip $99.00
3261 Mouse AJ Distributors $19.00
3262 Monitor Comp Inc $129.00
3263 CD ROM Drive Quick Parts $39.00
3264 Monitor Dale $129.00
3265 Memory Board Nickel $59.00
3266 Mouse Quick Parts $19.00
3267 Monitor Comp Inc $129.00
3268 Mouse Comp Inc $19.00
3269 Memory Board Blu Chip $59.00
3270 Keyboard AJ Distributors $29.00
3271 Memory Board Comp Inc $59.00
3272 System Unit Nickel $199.00
3273 Memory Board Comp Inc $59.00
Item Code Item description Populate the table for Item Description From Data2 , If Nothing is present in the ro
3245 Monitor then keep it blank
3248
3249
3250
3251
3252
3256
3258
3259
3260
3262
3273
3270
3269
othing is present in the row
1. : MAXIFS()
The MAXIFS function returns the maximum value among cells specified by a given set of conditions or criteria.
Syntax: = MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

2.MINIFS()
Returns the minimum value by one or multiple guidelines you specify. As you can see from its name, this is a combination of MIN and IF.
Syntax: =MINIFS (min_range, range1, criteria1, [range2], [criteria2], …)

3. MAXA()
Returns the largest value in a list of arguments.
Syntax: =MAXA(value1,[value2],...)
Value1 Required. The first number argument for which you want to find the largest value.
Value2,... Optional. Number arguments 2 to 255 for which you want to find the largest value.

4. MINA()
Returns the smallest value in the list of arguments.
Syntax : =MINA(value1, [value2], ...)
Value1, value2, ... Value1 is required, subsequent values are optional. 1 to 255 values for which you want to find the smallest value.
Name Sport School Height, cm
Aiden Football Junior 156 MAXIFS with one condition
Caden Volleyball Junior 165
Ethan Running Senior 173 Sport Football
Jackson Running Senior 170 Max height, cm #NAME?
Jacob Basketball Senior 168
Liam Basketball Junior 160
Lucas Football Senior 171 MAXIFS with multiple criteria
Mason Volleyball Senior 179
Noah Running Senior 169 Sport Basketball Basketball
Oliver Basketball Junior 159 School Junior Senior
Max height 160 168
Name Liam Jacob

160 MAXA()
6 179
6
160

Liam
MINIFS with one condition

Sport Football
Max height, cm #NAME?

MAXIFS with multiple criteria

Sport Basketball Basketball


School Junior Senior
Max height 160 168
Name Oliver #NAME?

MINA()
156

You might also like