WindowsMacSoftwareSettingsSecurityProductivityLinuxAndroidPerformanceConfigurationApple All

How to Use Lookups and Reference Functions in Excel 2016

Edited 4 months ago by ExtremeHow Editorial Team

Microsoft OfficeExcelLookupsReference FunctionsDataSpreadsheetCalculationFormulasWindowsMacProductivity

How to Use Lookups and Reference Functions in Excel 2016

This content is available in 7 different language

Microsoft Excel 2016 is a powerful tool for data analysis and management. One of its key features is the set of functions that allow users to easily lookup and reference data. This guide provides detailed information on how to use the lookup and reference functions in Excel 2016. These functions help users find specific values within a spreadsheet, manage data across multiple sheets, and even automate some complex data manipulation tasks.

Understanding the Lookup function

Lookup functions in Excel are designed to help you quickly find information stored in a spreadsheet. These functions are useful when working with large sets of data, as they allow you to find specific information without having to search manually. The most common lookup functions are VLOOKUP, HLOOKUP, LOOKUP, and INDEX and MATCH.

VLOOKUP function

VLOOKUP function is probably one of Excel's most used functions. It stands for "vertical lookup," which allows users to find a value in the first column of a table and then return the value in the same row from a specified column.

The syntax of the VLOOKUP function is as follows:

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Consider the following example:

=VLOOKUP("Banana", A1:C10, 2, FALSE)

In this example, Excel searches for the word "Banana" in the first column of the range A1:C10 and returns the value from the second column of the found row. If no exact match is found for "Banana", Excel returns an error value.

The HLOOKUP function

HLOOKUP function works in the same way as VLOOKUP, but it searches a row instead of a column, so performs a "horizontal lookup." It is especially useful for data presented horizontally.

The syntax of the HLOOKUP function is:

=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Example:

=HLOOKUP(1020, A1:F2, 2, FALSE)

This example will search for the value 1020 in the first row of the range A1:F2 and return the value found in the same column in the second row.

Lookup function

LOOKUP function in Excel can perform both horizontal and vertical lookups, but it is not as commonly used due to its limitations compared to VLOOKUP and HLOOKUP. LOOKUP function has two syntax forms: Vector and Array.

Vector form:

=LOOKUP(lookup_value, lookup_vector, [result_vector])

Array form:

=LOOKUP(lookup_value, array)

Example:

=LOOKUP("dog", A1:A3, B1:B3)

This example finds the word "dog" in the range A1:A3 and returns the value from the corresponding cell in B1:B3.

Understanding reference works

Reference functions in Excel help you work effectively with cell references and ranges. These functions are especially useful in complex spreadsheets where you are referencing multiple data sources. The most important reference functions include INDEX, MATCH, ADDRESS, INDIRECT, OFFSET, and more.

Index function

INDEX function returns the value or reference of the cell at the intersection of a row and column in a given range or array. The function can be used in a variety of ways, particularly combined with MATCH function to achieve more complex lookups.

The syntax of the INDEX function is:

=INDEX(array, row_num, [column_num])

Example:

=INDEX(A1:C3, 2, 3)

This example will return the values in the second row and third column of the specified range A1:C3.

Match function

MATCH function searches for a specified item in a range of cells and then returns the relative position of that item within the range. It is mainly used with INDEX for advanced lookup operations.

The syntax of the MATCH function is:

=MATCH(lookup_value, lookup_array, [match_type])

Example:

=MATCH(39, A1:A5, 0)

This example will return the position of the value 39 within the range A1:A5. If 39 is located in the third cell, the function returns the number 3.

Using INDEX and MATCH together

The combination of INDEX and MATCH functions is a powerful alternative to VLOOKUP or HLOOKUP because of its flexibility. Unlike VLOOKUP, which can only search in the leftmost column, INDEX and MATCH can search through any column or row.

Example:

=INDEX(B1:B10, MATCH("Orange", A1:A10, 0))

In this example, Excel uses MATCH to search for "orange" in the range A1:A10, finds its position, then uses INDEX to return the corresponding value from B1:B10.

Address function

ADDRESS function returns a reference as text for a specified row and column number. This can be useful when you need a reference in string format.

The syntax of the ADDRESS function is:

=ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])

Example:

=ADDRESS(2, 3)

This example will return $C$2, which is an absolute reference to the cell located in the second row and third column.

Indirect functions

INDIRECT function returns the reference specified by a text string. This can be especially useful when creating dynamic cell references in a workbook.

The syntax of the INDIRECT function is:

=INDIRECT(ref_text, [a1])

Example:

=INDIRECT("A" & 1)

This example uses INDIRECT function to return the value located in cell A1.

Offset function

OFFSET function creates a reference that is offset by a specified number of rows and columns from a cell or range of cells, based on a starting point.

The syntax of the OFFSET function is:

=OFFSET(reference, rows, cols, [height], [width])

Example:

=OFFSET(A1, 3, 2)

This example returns the cell reference that is 3 rows down and 2 columns to the right from cell A1.

Conclusion

VLOOKUP, HLOOKUP, and other lookup and reference functions turn Excel 2016 into an incredibly powerful tool for data analysis and manipulation. By harnessing the power of these functions, you can efficiently manage and reference data in a sheet or workbook, perform advanced data searches, and automate complex calculations.

Mastering these functions requires understanding their syntax, how they interact, and what scenarios they apply to. Practice using these functions in different combinations to gain insight into how they work together to create powerful, dynamic spreadsheets.

If you find anything wrong with the article content, you can


Comments