简体   繁体   English

Excel-SumIF单元格值在日期范围之间,并且另一个单元格为False

[英]Excel - SumIF Cell Value is between date range & another Cell is False

Need help writing a formula to do the following 需要帮助写公式来执行以下操作

Sum the value of cells that fall withing a specified date range BUT only if the corresponding cell range A3:A21 is False 仅当对应的单元格范围A3:A21为False时,才对属于指定日期范围BUT的单元格的值求和

I have the current formula that handles just the date range comparison. 我有目前只处理日期范围比较的公式。

=SUMIFS(H3:H21,I3:I21,">="&'Essential Info'!A9,I3:I21,"<="&'Essential Info'!B9)
  • Cells A9 on Essential Info handle the date for the start of the week, 基本信息上的单元格A9处理星期几的日期,
  • Cells B9 on Essential Info handle the date for the end of the week, 基本信息上的单元格B9处理星期几的日期,
  • H3:H21 Contains the number values to be added, H3:H21包含要添加的数字值,
  • I3:I21 Contains the Date Values to be compared to A9 & B9 on Essential info. I3:I21包含要与基本信息上的A9和B9比较的日期值。
  • A3:A21 Contains a true or false value based on a tick box. A3:A21包含基于复选框的正确或错误值。

I am falling over at the "If Cell Range is false" part. 我陷入了“如果单元格范围为假”部分。 Any pointers would be greatly appreciated 任何指针将不胜感激

尝试在公式的, A3:A21, "false")加上, A3:A21, "false")

使用总和而不是总和:

=Sumproduct((I3:I21>='Essential Info'!A9)*(I3:I21>='Essential Info'!B9)*H3:H21)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM