Mastering Advanced Excel Functions: A Deep Dive into XLOOKUP, INDEX, and More

3 min read
05 December 2023

Microsoft Excel stands as a powerful tool with a plethora of functions designed to streamline data analysis and manipulation.

  1. XLOOKUP and VLOOKUP Example:

Traditionally, VLOOKUP has been a staple for searching and retrieving data in Excel. However, the introduction of XLOOKUP has brought a more flexible and efficient alternative. XLOOKUP allows users to search a range, find the exact match, and return corresponding values. XLOOKUP and vlookup example:

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

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

Suppose we have a table with employee information, and we want to find the department of a specific employee with ID 101. The XLOOKUP version would look like this:

Mastering Advanced Excel Functions: A Deep Dive into XLOOKUP, INDEX, and More

=XLOOKUP(101, A2:A10, B2:B10, "Not Found")

This XLOOKUP formula is more straightforward and eliminates the need for counting columns.

  1. XLOOKUP with Multiple Criteria:

One significant advantage of xlookup with multiple criteria is its ability to handle multiple criteria without the need for complex workarounds. Let's consider a scenario where we want to find the salary of an employee in a specific department:

=XLOOKUP (1, (A2:A10=101)*(B2:B10="HR"), C2:C10, "Not Found")

Here, xlookup multiple criteria seamlessly incorporate using array multiplication, providing a concise and powerful solution.

  1. INDEX and MATCH with Multiple Criteria:

The combination of index match multiple criteria in INDEX and MATCH functions is another powerful tool for handling multiple criteria scenarios. Suppose we want to find the project code for an employee in a specific department:

=INDEX (D2:D10, MATCH (1, (A2:A10=101)*(B2:B10="HR"), 0))

In this example, MATCH, combined with array multiplication, efficiently handles multiple criteria, while INDEX retrieves the corresponding project code.

  1. MOD Function in Excel:

The mod function excel, it returns the remainder of a division operation. It finds applications in scenarios where cyclical patterns or repetitions are involved. For instance, to highlight every third row in a dataset:

=MOD (ROW (),3)=0

This formula, applied as a conditional formatting rule, would highlight every third row.

Mastering Advanced Excel Functions: A Deep Dive into XLOOKUP, INDEX, and More

  1. Smallest Function in Excel:

The smallest function in excel (SMALL) is handy for retrieving the nth smallest value from a dataset. If we have a list of scores and want to find the third smallest score:

=SMALL (A2:A10, 3)

This formula returns the third smallest score from the specified range.

  1. Excel INDEX Function:

Excel index function is versatile and can be used for various purposes, such as retrieving values from a specified location or creating dynamic ranges. For example, to dynamically reference a range based on a category selection:

=INDEX ($B$2:$B$10,MATCH(G2,$A$2:$A$10,0))

Here, INDEX-MATCH combination dynamically fetches the values based on the selected category.

  1. TODAY Function in Excel:

Excel today function simplifies date-related calculations by automatically returning the current date. For instance, to calculate the age of an individual:

=TODAY ()-B2

This formula subtracts the birthdates in cell B2 from the current date, providing the age.

  1. SUBTOTAL Function in Excel:

The SUBTOTAL function is useful for performing operations on filtered data, ensuring that calculations consider only the visible cells. For example, to find the average salary of visible rows:

=SUBTOTAL (101, C2:C10)

Subtotal function in excel calculates the average salary considering only the visible cells after applying a filter.

In case you have found a mistake in the text, please send a message to the author by selecting the mistake and pressing Ctrl-Enter.
Dasun Sanaka 2
Joined: 2 years ago
Comments (0)

    No comments yet

You must be logged in to comment.

Sign In