打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Advanced Filter in Excel

And Criteria    |   Or Criteria    |   Formula as Criteria

This example teaches you how to apply an advanced filter to only display records that meet complex criteria.

When you use the Advanced Filter, you need to enter the criteria on the worksheet. Create a Criteria range (blue border below for illustration only) above your data set. Use the same column headers. Be sure there's at least one blank row between your Criteria range and data set.

And Criteria

To display the sales in the USA and in Qtr 4, execute the following steps.

1. Enter the criteria shown below on the worksheet.

Advertisement

2. Click any single cell inside the data set.

3. On the Data tab, in the Sort & Filter group, click Advanced.

4. Click in the Criteria range box and select the range A1:D2 (blue).

5. Click OK.

Notice the options to copy your filtered data set to another location and display unique records only (if your data set contains duplicates).

Result.

No rocket science so far. We can achieve the same result with the normal filter. We need the Advanced Filter for Or criteria.

Or Criteria

To display the sales in the USA in Qtr 4 or in the UK in Qtr 1, execute the following steps.

6. Enter the criteria shown below on the worksheet.

7. On the Data tab, click Advanced, and adjust the Criteria range to range A1:D3 (blue).

8. Click OK.

Result.

Formula as Criteria

To display the sales in the USA in Qtr 4 greater than $10.000 or in the UK in Qtr 1, execute the following steps.

9. Enter the criteria (+formula) shown below on the worksheet.

10. On the Data tab, click Advanced, and adjust the Criteria range to range A1:E3 (blue).

11. Click OK.

Result.

Note: always place a formula in a new column. Do not use a column label or use a column label that is not in your data set. Create a relative reference to the first cell in the column (B6). The formula must evaluate to TRUE or FALSE.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Basic Excel Driving with Python | Python Excels
Create Excel 2007/2010 spreadsheets with C# and EPPlus
SD-定价过程的16个字段的作用说明
Advanced Polymer Coatings
浅谈Slick(1)- 基本功能描述
DAX:LOOKUPVALUE 函数
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服