search
HomeComputer TutorialsComputer KnowledgeHow to use Excel filter function with multiple conditions

If you need to know how to use the filter function with multiple conditions in Excel, the following tutorial will guide you through the corresponding steps to ensure that you can effectively filter and sort the data.

How to use Excel filter function with multiple conditions

Excel’s filtering function is very powerful and can help you extract the information you need from large amounts of data. This function can filter data according to the conditions you set and display only the parts that meet the conditions, making data management more efficient. By using the filter function, you can quickly find target data, saving time in finding and organizing data. This function can not only be applied to simple data lists, but can also be filtered based on multiple conditions to help you locate the information you need more accurately. Overall, Excel's filtering function is a very practical tool that makes data analysis and processing more convenient.

What is the FILTER function in Excel?

The basic syntax for filtering data ranges, lists, or arrays using single or multiple conditions is as follows:

=筛选器(数组,包含,[IF_EMPTY])

So, if you want to extract specific data from a large amount of data, for example, from 1000 rows, this filter function formula makes the job easier. Previously, we only used dropdown lists with checkboxes to filter data, but this didn't help with complex conditions.

In other words, the Excel filter function has three input parameters:

  • Array: The range of cells to be filtered.
  • Includes: Criteria for filtering data that should be in the form of Boolean equations. For example, input using symbols such as =, >,
  • [IF_EMPTY]: This optional input ("", N/A, or no results) instructs Excel to place a value or text string when the filter returns an empty table.

Basic formulas for using Excel filter functions

Before we explain how to use the Excel Filter function with multiple criteria, it is important to understand how the Excel Filter function formula works.

The following is an example of a basic Excel filter function formula, for example, filtering on the number of employees who stayed in Florida (see table):

=过滤器(C5:E19,E5:E19=I1,“佛罗里达”)

The formula extracts the results in the cell range (H4:J9) without changing the original data.

How to use Excel filter function with multiple conditions

Alternatively, you can use the built-in filter functionality to make things easier. Just select the data range, go to the home page, and click the sort filter icon.

How to use Excel filter function with multiple conditions

Select a filter from the menu to add a drop-down menu to the selected range.

Next, go to the Address column, select the dropdown, uncheck Select All, and select only Florida.

How to use Excel filter function with multiple conditions

These cells now only display the names of Floridians and their respective departments.

However, if you encounter any SPILL errors in Excel, please refer to our linked post for solutions.

How to use Excel filter function under multiple conditions

Now that you know how to use basic filter functions in Excel, here is a Microsoft Excel tutorial on how to use filter functions with multiple conditions.

To use multiple conditions for data filtering, you can perform AND or OR operations.

1]Use AND operation with multiple conditions

How to use Excel filter function with multiple conditions

The AND function requires all conditions to be True to include a row in the filtered results, while the OR function requires at least one condition to be True to include a row in the filtered results.

So, the following example illustrates how to use the AND logical function in Excel filter functions to extract data from a specific range of cells with two conditions:

=过滤器(C5:E19,(D5:D19=“金融”)*(E5:E19=“佛罗里达”))

This will extract how many finance department employees are from Florida.

Read: How to use slicers to filter data in Excel

2]Use OR operation with multiple conditions

How to use Excel filter function with multiple conditions

When any one or more conditions are met, the OR operation will be completed. So, for example, if you wanted to find out how many employees there are in the accounting department or the finance department, you would just use the formula above and replace the * operator with , like this:

=过滤器(C5:E19,(D5:D19=“金融”)+(E5:E19=“佛罗里达”))

就是这样,它应该在两个单独的列中返回两个结果。

但如果您更喜欢使用Microsoft Access,以下是如何在Access中对记录进行排序和筛选。

The above is the detailed content of How to use Excel filter function with multiple conditions. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:每日运维. If there is any infringement, please contact admin@php.cn delete
Hola VPN Free Download for Chrome, PC, Mac, Android, iOS, etc. - MiniToolHola VPN Free Download for Chrome, PC, Mac, Android, iOS, etc. - MiniToolMay 08, 2025 am 12:52 AM

To access worldwide content online, you can use a popular free VPN service like Hola VPN. Learn more about Hola VPN and check the guides on how to get Hola VPN downloaded for Chrome, Edge, PC, Mac, Android, iOS, TV, Xbox, PlayStation, etc.

Remove Yoursearchbar.me Hijacker - A Guide to Protect Your PCRemove Yoursearchbar.me Hijacker - A Guide to Protect Your PCMay 08, 2025 am 12:51 AM

What is a yoursearchbar.me browser hijacker? Why does it happen on your system? To better protect your data and system, you need to take effective measures to remove yoursearchbar.me hijacker. So, how to do that? This post on the php.cn Website will

The File Couldn't Open in Protected View on Excel: SolvedThe File Couldn't Open in Protected View on Excel: SolvedMay 08, 2025 am 12:50 AM

Are you troubled by the The File Couldn't Open in Protected View error in Excel? If you are looking for solutions, this is the right place for you to get answers. php.cn Solutions compiles several methods for you to solve the problem.

Is Voicemail Not Working on iPhone? Follow the Guide to Fix It! - MiniToolIs Voicemail Not Working on iPhone? Follow the Guide to Fix It! - MiniToolMay 08, 2025 am 12:49 AM

Some iPhone users report that they encounter the “voicemail not working on iPhone” issue after updating to the new iOS. How to fix the issue? This post from php.cn provides some useful methods. Now, keep on your reading.

A Guide to Fixing 'Facebook Messenger Not Sending Messages' - MiniToolA Guide to Fixing 'Facebook Messenger Not Sending Messages' - MiniToolMay 08, 2025 am 12:48 AM

There are multiple reasons for the “Facebook Messenger not sending messages” issue and you don’t need to overreact to that. The block is temporary and recoverable. This article on php.cn Website will tell you why that happens and how to troubleshoot

Windows 10 KB5014699 Is Released with Some Bug Fixes - MiniToolWindows 10 KB5014699 Is Released with Some Bug Fixes - MiniToolMay 08, 2025 am 12:47 AM

In this php.cn post, we will introduce the new cumulative update for Windows 10, Windows 10 KB5014699. You can find the bug fixes and improvements in this update. You can also learn how to get this update using Windows Update or download an offline i

How to Fix Windows 10 Projecting to This PC Greyed out? - MiniToolHow to Fix Windows 10 Projecting to This PC Greyed out? - MiniToolMay 08, 2025 am 12:46 AM

Projecting to this PC greyed out is a common issue that often happens on Windows 10. What should you do if you cannot use this feature? Take it easy and you can go to find some methods to easily help you out. Let’s go to look through them on this pos

Top 6 Solutions for HTTPS Not Working in Google ChromeTop 6 Solutions for HTTPS Not Working in Google ChromeMay 08, 2025 am 12:45 AM

What will you do when HTTPS is not working and you cannot open any HTTPS sites in Google Chrome? If you are struggling with it now, follow the fixes in this post on php.cn Website to help you out.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft