[英]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.
我已经用Google搜索过,但似乎找不到或没有找到想要的答案。
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.
我想从技术上讲,如果可以对数据透视表中的某些行执行此操作,则可以使用SUM()函数。
This is what I would like to achieve in SQL (this is how I can best describe the query I would like to perform): 这是我想在SQL中实现的(这是我最好地描述我想执行的查询的方式):
SELECT Name FROM PivotTable WHERE Value1 = 0
从数据透视表中选择名称,值1 = 0
Source Pivot Table: 源数据透视表:
Name | Data1 | Value1
Bob | xyz | 0
Jones | abc | 1
Ted | 123 | 0
Result Sheet: 结果表:
Name
Bob
Ted
筛选数据透视表为Value1 = 0并将表的名称列复制到新工作表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.