Formula Generator | Google Sheets

Multi-Criteria Search Formula in Google Sheets

This guide provides a formula using Google Sheets' FILTER function to retrieve data based on two criteria from specific cells, enabling efficient data lookup based on user-defined search parameters.


Empty image or helper icon

Prompt

Searches for info on 2 cells and inputs data from the third cell

Answer

Google Sheets Formula for Searching Based on Multiple Criteria

Objective

To create a Google Sheets formula that searches based on the values of two specified cells and returns data from a third cell.

Formula

The formula to achieve this can be constructed using the FILTER function in conjunction with logical conditions. The structure would be:

=FILTER(C:C, A:A = D1, B:B = E1)

Explanation

  • FILTER(range, condition1, condition2): This function filters a range based on the provided conditions.
    • range: The range from which data will be returned (here, C:C indicates that data will be extracted from column C).
    • condition1: The first condition (here, A:A = D1, which checks if the entries in column A match the value in cell D1).
    • condition2: The second condition (here, B:B = E1, which checks if the entries in column B match the value in cell E1).

Practical Example

Scenario

Assume you have the following data in your Google Sheets:

A B C
Product Category Price
Apples Fruit 1.00
Carrot Vegetable 0.50
Bananas Fruit 1.20
Spinach Vegetable 0.80

Cell References

  • Cell D1: Contains the value "Apples" (the product you are searching for).
  • Cell E1: Contains the value "Fruit" (the category you are searching for).

Implementation

To find the price of "Apples" in the "Fruit" category, place the formula in cell F1:

=FILTER(C:C, A:A = D1, B:B = E1)

Expected Output

The formula will return 1.00 in cell F1.

Conclusion

The provided formula effectively searches for values in two columns and retrieves corresponding data from a third column based on criteria specified in designated cells. This method enables efficient data retrieval and can be adapted to various datasets and applications.

For further learning on data analysis techniques and formulas within Google Sheets, consider exploring the resources available on the Enterprise DNA Platform.

Create your Thread using our flexible tools, share it with friends and colleagues.

Your current query will become the main foundation for the thread, which you can expand with other tools presented on our platform. We will help you choose tools so that your thread is structured and logically built.

Description

This guide provides a formula using Google Sheets' FILTER function to retrieve data based on two criteria from specific cells, enabling efficient data lookup based on user-defined search parameters.