Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Using FILTER for Multi Result Lookups | Dynamic Array Lookups and Multi Result Retrieval
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Excel Lookup Mastery

bookUsing FILTER for Multi Result Lookups

Glissez pour afficher le menu

Why Multi Result Lookups Are Needed

Traditional lookup functions such as VLOOKUP, XLOOKUP, or INDEX with XMATCH return a single result. However, many real-world scenarios require retrieving multiple matching records.

For example:

  • All orders placed by a specific customer;
  • All employees in a department;
  • All transactions above a certain value.

In these cases, a single-value lookup is not sufficient. Modern Excel provides dynamic array functions that can return multiple results at once.

The FILTER Function

The FILTER function extracts rows from a dataset that meet a specified condition. Instead of returning a single value, FILTER returns all rows that match the criteria.

Basic Syntax

=FILTER(array; include; [if_empty])
  • array: the range containing the data;
  • include: the condition that determines which rows should be returned;
  • if_empty: optional value displayed if no matching results exist.
screenshot

The customer name is entered in cell F2. The goal is to return all orders placed by that customer.

=FILTER(A2:D7; B2:B7=F2)
  1. Excel evaluates the condition: B2:B7=F2. This checks which rows match the selected customer;
  2. The FILTER function extracts all rows where the condition is TRUE;
  3. The results automatically spill into multiple rows.

If F2 contains Alice, Excel returns:

screenshot

Dynamic Array Behavior

The results automatically expand into neighboring cells. This is called a spill range. If the dataset grows or the input value changes, the results update automatically.

Scenario

A worksheet contains a table with Employee ID, Employee Name, Department, Salary. A department name is entered in an input cell. Your goal is to return all employees working in that department.

Task Instructions

  • Use the FILTER function to extract matching rows;
  • Return all employees belonging to the selected department;
  • Ensure the results update automatically when the department changes.
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 5. Chapitre 1

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Section 5. Chapitre 1
some-alt