我收到了带有累积数字的数据。有没有一种聪明的方法来消除数据,所以我每个月都有它而不是相互堆叠?
(在此处查看示例 xlsx:https ://docs.google.com/spreadsheets/d/1yELrJdZmi3CFJccYSi5U6GGDW-Awp5spHDnsDyshBe0/edit?usp = sharing 。)
示例输入:
Date SalesRep itemA itemB
01-01-2018 Jakob 5 10
01-01-2018 Adomas 10 20
01-01-2018 Thomas 15 30
01-02-2018 Jakob 50 30
01-02-2018 Adomas 100 40
01-02-2018 Thomas 150 65
期望的输出:
Date SalesRep itemA itemB
01-01-2018 Jakob 5 10
01-01-2018 Adomas 10 20
01-01-2018 Thomas 15 30
01-02-2018 Jakob 45 20
01-02-2018 Adomas 90 20
01-02-2018 Thomas 135 35
此致,
普热米斯瓦夫
PS更新
如果数据不是每个月都在增加怎么办?
示例输入:
Date SalesRep itemA itemB
01-01-2018 Jakob 5 10
01-01-2018 Adomas 10 20
01-01-2018 Thomas 15 30
**01-02-2018 Jakob 50 30**
01-02-2018 Adomas 100 40
01-02-2018 Thomas 150 65
**01-03-2018 Jakob 50 30**
01-03-2018 Adomas 102 60
01-03-2018 Thomas 155 75
如果 Jakob 没有每个月递增,那么您的解决方案不起作用怎么办?我可以以某种方式指定参数来检查并仅在发生变化时减去吗?
慕田峪9158850
相关分类