[英]Extract Data from a Table in Excel Based On A Criteria
I have a list of data in 'Table1' on an Excel spreadsheet that looks like this: 我在Excel电子表格的“表1”中有一个数据列表,如下所示:
Column A Column B
Pizza Sauce 3
Pepperoni 0
Cheese 1
Crust 2
Garlic 0
Sausage 0
From this list I want to be able to create a second list that, based on the value in B, shows the value in A. I want anything that is greater than 0 to show in this list (For an order sheet to give to a vendor). 从该列表中,我希望能够创建第二个列表,该列表基于B中的值显示A中的值。我希望该列表中显示大于0的任何值(对于订单表,供应商)。 Like such:
像这样:
Column A Column B
Pizza Sauce 3
Cheese 1
Crust 2
How might I go about doing this? 我该怎么做呢? I've looked around but haven't been able to do so successfully.
我环顾四周,但未能成功完成。
Why don't you use pivot table and filter out 0 value in column B. So every time you want an updated table, you just have to refresh the pivot table and your table is ready. 为什么不使用数据透视表并在B列中过滤掉0值。因此,每次您想要更新的表时,都只需要刷新数据透视表就可以了。
You can find pivot option in Insert -> PivotTable and provide the source data. 您可以在插入->数据透视表中找到数据透视选项,并提供源数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.