Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一份杂货清单。在第 1 天和第 2 天之间,我想知道我在这几天之间获得或失去了多少新物品。
我想要一个可以告诉我获得的食物数量的功能。在这种情况下,它将是 2(香蕉和鸡肉)。我还需要它来告诉我丢失了多少,在这种情况下为 1(奥利奥)。
谢谢!
获得:
=SUMPRODUCT(((COUNTIFS(B:B,B2:B15,A:A,A2:A15-1)=0)*(COUNTIFS(A:A,A2:A15-1)>0))/(COUNTIFS(B:B,B2:B15,A:A,A2:A15)))
失利:
=SUMPRODUCT(((COUNTIFS(B:B,B2:B15,A:A,A2:A15+1)=0)*(COUNTIFS(A:A,A2:A15+1)>0))/(COUNTIFS(B:B,B2:B15,A:A,A2:A15)))