The eleventh advanced filtering function of Excel skill training, you can select the data that meets the conditions in excel like writing a sql statement

As shown in the table below, there are 2 grid areas,

The first area is the data table we want to filter

The second area is where we write query conditions

When writing the conditions, the conditions in the same line are and, the conditions in different lines are or

Be sure to write the column name when writing the conditions, the column name should be the same as the column name of the original table

When comparing table fields with each other, you don’t need to write column names, but you need to keep that cell in place

1. Query with conditions 

The query condition I wrote is (date <2020.3.1 and city ​​is Beijing  and  actual amount <287 and  actual amount> amount)

Execute query: select the data source area -> advanced in the filter -> select the condition area -> OK

The results of the screening are as follows:

All conditions are and are written on one line, but if all the conditions are or are written on a different line:

2. Inventory and screening

3. Or conditional query, and copy the results to other areas

The search below is that the date is greater than 2020.4.1 or the city is Beijing or the actual amount is greater than 287

And display the results of the query in column W:

Execute query:

The results of the implementation are as follows:

 

 

Guess you like

Origin blog.csdn.net/pengweismile/article/details/110261352