[英]SUM a range of rows by looking up by a separate column
I have a spreadsheet. 我有一个电子表格。 It has a timestamp in Column A and a dollar value in Column C.
它在A列中有一个时间戳,在C列中有一个美元值。
I have another sheet that provides calculated values of the whole sheet, but I am also trying to provide a way for a user to type in a date as the start date cutoff. 我有另一张提供整张纸的计算值的工作表,但我也试图为用户提供一种输入日期作为开始日期截止的方法。 "Give me the number of entries since 10/1/2012" and "Give me the sum of all dollar values since 10/1/2012".
“给我自2012年10月1日以来的参赛人数”和“给我自2010年10月1日起所有美元价值的总和”。
The count was easy, using a COUNTIF, however, I'm struggling to come up with the formula to give the dollar sum, based on the date cutoff. 计算很简单,使用COUNTIF,然而,我很难根据截止日期给出公式给出美元总和。 Since Date is in column A and dollars in column C.
由于Date位于A列,美元位于C列。
Thanks! 谢谢!
Try SUMIF 尝试SUMIF
=SUMIF(A:A,">="&D2,C:C)
where cutoff date is in D2 其中截止日期为D2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.