我正在寻找一种方法来做一个SUMIFS,使用过滤的列表。我想:
只有在商店#上没有筛选器时,以下代码才能工作:
=SUMIFS(Sales!C:C,Sales!B:B,"=FLOWERS",Sales!A:A,Report!A:A)
工作表1 Name = Report
Row (filtered) Store # (A)
====================|==============|
| 21 | 13 |
| 36 | 28 |
| 81 | 75 |
| 84 | 78 | Sheet 2 Name = Sales
Store # (A) Group (B) Sales (C)
===========|==============|=============|
| 21 | Flowers | $100 |
| 36 | Flowers | $200 |
| 81 | Bread | $500 |
| 1 | Flowers | $600 |
| 3 | Flowers | $100 |
| 36 | Bread | $200 |
| 8 | Bread | $100 |
| 84 | Flowers | $300 | 有什么办法让我做到这一点吗?因此,如果筛选后的列表发生变化,则总数字会发生变化,类似于小计的变化。
发布于 2015-10-21 23:53:57
似乎最简单的方法是使用PivotTable:Group (B)用于筛选器,Store # (A)用于行,和Sales (C)之和用于值,然后筛选Group (B)以选择“Flowers`”,并筛选适合的行。
https://stackoverflow.com/questions/33271111
复制相似问题