简体   繁体   中英

Selecting rows based on cell value

I have setup a pivot table to display some data. In a separate sheet, I would like to show all of the rows in that table based on the value of a cell within the table row. I would like to do this using formulas, but really have no idea how to go about it. I have searched with Google, but I don't seem to be finding or seeing the answers I am looking for.

I would like to do this with a formula rather than have to manually copy and paste the filtered data from the pivot table.

I am using the pivot table as the source data because it provides a grand total. It is this value that I am testing against. I guess technically I could use a SUM() function if there is a way to do this against certain rows like in the pivot table.

This is what I would like to achieve in SQL (this is how I can best describe the query I would like to perform):

SELECT Name FROM PivotTable WHERE Value1 = 0

Source Pivot Table:

Name  | Data1 | Value1
Bob   | xyz   | 0
Jones | abc   | 1
Ted   | 123   | 0

Result Sheet:

Name
Bob
Ted

筛选数据透视表为Value1 = 0并将表的名称列复制到新工作表。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM