简体   繁体   English

在Excel中的参考日期减去6天之间的范围内添加值

[英]add values for a range between reference date minus 6 days in excel

i would like to add the corresponding values of dates with reference to a particular date and -6 days in excel. 我想在Excel中添加参考特定日期和-6天的日期的相应值。

For example: reference date is 10th feb 15. I would like to add values under flight time column for dates ranging between 10th feb 15 and previous 6 days. 例如:参考日期是2月10日。我想在排期栏下添加2月10日至前6天之间的日期值。

similarly add values for a reference date and previous 30 days values and 1 year values. 类似地,添加参考日期的值以及之前30天和1年的值。

What i wanted was, sum all the flight timings of a particular date in column A. I used the sumifs formula to achieve this. 我想要的是,将A列中某个特定日期的所有飞行时间加总。我使用sumifs公式来实现这一目标。

The formula is =SUMIFS($I$8:$I$1122,$A$8:$A$1122,"<="&C8,$A$8:$A$1122,">="&C8-6) 公式为= SUMIFS($ I $ 8:$ I $ 1122,$ A $ 8:$ A $ 1122,“ <=”&C8,$ A $ 8:$ A $ 1122,“> =”&C8-6)

What it does: Here the reference cell is C8 which is 6th Feb 14 step 1- date range for the calculation is 6th feb 14 minus 6 days step 2- add the values of column I which correspond to all the dates that fall within 6th feb 14 to 31st jan 14 step 3- indicate the sum in column K 它的作用:此处的参考单元格为C8,这是14年2月6日的第1步-计算的日期范围是2月6日-6天第2步-添加第I列的值,该值对应于2月6日之内的所有日期1月14日至1月31日第3步-指出K列中的总和

Unfortunately i cannot include any pictures or files to show what i have mentioned due to site limitations. 不幸的是,由于站点限制,我无法包含任何图片或文件来显示我提到的内容。

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

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