gpt4 book ai didi

Excel - 根据所选月份求和 QTD 值

转载 作者:行者123 更新时间:2023-12-04 21:29:09 25 4
gpt4 key购买 nike

Desired end state: The QTD field sums the quarterly values to date so as an example for October it would return just the October value (1st month in Q4) but when November is selected as the driver the QTD field would sum Oct + Nov values (忽略 Dec 的值)。

我有一个包含驱动程序的电子表格,当前日期将每天更新。此日期驱动“当前月份”字段,我希望从中重新计算 QTD 值。

请参阅下面链接的示例。预期结果 - 11 月第 1 类 QTD 为 3,387,280; 4 月的 Cat13 QTD 将为 1,121,021,依此类推

enter image description here

提前致谢!

最佳答案

在 O6 中:

=SUMIFS(C6:N6,$C$4:$N$4,"<="&MONTH("1 "&A2),$C$4:$N$4,">="&MATCH(INDEX($1:$1,MATCH(MONTH("1 "&A2),$4:$4,0)),$C1:$N1,0))

enter image description here

关于Excel - 根据所选月份求和 QTD 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59078417/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com