使用SUMIF函数根据日期区间统计的方法
时间:2023-08-17 00:04:52
在工作中经常遇到按日期区间统计的需求,比如需要统计月初到当前日期的销售额,或统计周年庆(比如历时5天)的销售额……针对这类条件求和如何实现呢?
本文结合一个简单案例,来介绍使用SUMIF函数以日期区间作为条件的求和方法。
不知道小伙伴们输入公式的时候是直接写呢?还是点击功能区的插入函数按钮,再按照向导对话框一步一步填写参数呢?
当进行多个函数嵌套使用时,直接写公式变得尤其方便,你可以根据习惯一次性完成,也可以先写一部分,再从外部嵌套,光说不够直观,先来看我以这个案例为例,演示一下多函数嵌套公式的写法吧。
大家可以看到我写公式的顺序是从左往右,这需要你实现想好公式如何构建,各部分如何嵌套。
初学者可以先从内部写一部分,比如先把SUMIF函数部分写完,再写SUM函数部分。
下面给出公式。
=SUM(SUMIF(A2:A12,{">=2016/4/1",">2016/4/5"},B2:B12)*{1,-1})
注意公式中条件参数的写法和引用方式
函数效果演示动画如下:
扩展阅读
Excel条件求和函数:SUMIF函数的使用方法及操作实例
sumifs函数的使用方法及实例_sumif多条件求和
标签:公式,函数,嵌套,求和,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
WPS PPT播放速度怎么设置
2022-04-08 00:49:35
![](https://img.aspxhome.com/file/2023/3/a186573_0s.jpg)
Win7进入桌面闪屏三次才恢复正常怎么办?
2023-07-21 20:58:37
![](https://img.aspxhome.com/file/2023/4/a313006_0s.jpg)
系统之家一键重装win11系统步骤教程
2023-06-30 09:24:08
![](https://img.aspxhome.com/file/2023/1/a274835_0s.png)
Excel表格内容只能输入不能修改的设置方法
2023-11-03 19:56:49
Win8.1提示此应用无法安装程序怎么解决?
2023-01-02 03:17:33
![](https://img.aspxhome.com/file/2023/3/a299090_0s.jpg)
如何在Mac中输入特殊字符
2022-04-08 21:11:33
![](https://img.aspxhome.com/file/2023/7/a216517_0s.jpg)
VBA for Word设置字体的格式
2023-12-13 22:51:17
wps文字有哪些使用技巧
2023-11-14 09:28:25
faststone截图怎么用_faststone capture使用教程
2023-01-17 16:06:12
![](https://img.aspxhome.com/file/2023/4/a312692_0s.png)
如何给自己的电脑文件夹增添色彩
2022-11-09 20:07:53
![](https://img.aspxhome.com/file/2023/9/a343246_0s.jpg)
excel制作表格斜线表头
2022-02-28 18:36:04
![](https://img.aspxhome.com/file/2023/1/41201_0s.jpg)
Win10电脑遇到未识别的网络怎么办?
2022-05-07 02:23:45
![](https://img.aspxhome.com/file/2023/1/a277754_0s.jpg)
美图秀秀怎么改图片尺寸
2023-03-12 12:07:05
![](https://img.aspxhome.com/file/2023/9/a341141_0s.png)
word 如何快速删除页眉横线? word删除页眉横线图解教程
2022-09-21 12:21:24
![](https://img.aspxhome.com/file/2023/9/33459_0s.gif)
Win8系统安装office2007弹出Setup Error错误提示的解决方法
2023-10-26 19:40:37
![](https://img.aspxhome.com/file/2023/28/a245177_0s.png)
word2003和2010如何横向排版
2023-12-03 08:22:07
![](https://img.aspxhome.com/file/2023/8/21778_0s.jpg)
Win7文件夹属性都有什么?win7文件夹属性详细介绍
2023-02-15 06:26:36
![](https://img.aspxhome.com/file/2023/26/a228527_0s.jpg)
Win10如何右键添加管理员取得所有权?
2023-06-19 03:32:46
![](https://img.aspxhome.com/file/2023/1/a272109_0s.jpg)
Excel2010怎么利用SmartArt功能将数据转换成图形?
2022-04-24 22:22:27
![](https://img.aspxhome.com/file/2023/2/a141752_0s.jpg)
如何在Word2010文档中插入合并域
2022-01-30 05:50:49
![](https://img.aspxhome.com/file/2023/5/29665_0s.jpg)