根据销售明细按月汇总的excel公式设置技巧
时间:2023-11-23 14:41:26
今天来学习根据销售明细按月汇总的excel公式设置技巧,有3种excel公式可以实现这个目的。
【例】,AB列是销售明细表。要求在右侧的月份汇总表中设置公式,计算出每个月的时时销售额。
方法1:使用sumifs函数(适用于2007及以上版本)
=SUMIFS(B:B,A:A,">"&DATE(2015,D2,0),A:A,"<"&DATE(2015,D2+1,1))
公式说明:
DATE(2015,D2,0) 用DATE函数生成当前月的第0天,即上个月的最后一天
DATE(2015,D2+1,1) 生成下个月的第1天。
方法2:使用SUMPRODUCT函数(适用于所有版本)
=SUMPRODUCT((MONTH(A$2:A$275)=D2)*B$2:B$275)
公式说明:
MONTH(A$2:A$275)用MONTH函数取出所有日期的天数。
方法3:使用SUM函数(数组公式,适用于所有版本)
{=SUM((MONTH(A$2:A$275)=D2)*B$2:B$275)}
公式说明:
计算原理同方法2
本公式需要用数组形式输入,即按ctrl+shift+enter三键输入。
补充:如果考虑公式简捷易用,建议用Sumproduct函数公式,如果考虑计算速度,建议用sumifs函数公式。
标签:公式,函数,方法,适用于,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10电脑加速技巧
2022-06-27 18:46:51
![](https://img.aspxhome.com/file/2023/5/a315853_0s.png)
怎么开启Win11安卓子系统 Win11 WSA怎么开启
2023-02-04 08:31:35
![](https://img.aspxhome.com/file/2023/2/a283943_0s.png)
在Mac上如何加密文件?
2022-04-08 16:41:43
![](https://img.aspxhome.com/file/2023/5/a207515_0s.jpeg)
如何查看Windows 2003的系统日志 Win2003系统日志查看方法介绍
2023-03-27 22:09:26
为什么Win7开始菜单附件里找不到写字板了?
2022-03-02 09:58:46
![](https://img.aspxhome.com/file/2023/29/a258780_0s.jpg)
Win7系统电脑使用共享时提示函数不正确的解决方法
2022-04-18 22:40:37
![](https://img.aspxhome.com/file/2023/3/a299950_0s.jpg)
WPS查找对话框不必关闭,可以应用在多个工作表中
2022-07-31 22:58:15
![](https://img.aspxhome.com/file/2023/8/a185428_0s.jpg)
Win10电脑怎么使用一键局域网共享工具?
2023-11-23 03:50:34
![](https://img.aspxhome.com/file/2023/4/50024_0s.png)
excel如何通过简称或关键字模糊匹配查找全称
2023-05-17 22:02:44
![](https://img.aspxhome.com/file/2023/3/37003_0s.jpg)
Microsoft Excel 教程「49」,如何在 Excel 中创建数据透视图?
2022-11-11 06:44:41
![](https://img.aspxhome.com/file/2023/7/a202697_0s.jpeg)
Word2010怎样创建自定义表格样式
2023-12-09 12:24:45
![](https://img.aspxhome.com/file/2023/8/20038_0s.jpg)
Wps如何设置表格字符上下标?Wps设置表格字符上下标的方法
2022-11-10 15:33:48
![](https://img.aspxhome.com/file/2023/0/a182320_0s.gif)
Win10 20H2系统使用Word文档打印不出图片怎么解决?
2023-07-30 23:31:57
![](https://img.aspxhome.com/file/2023/1/a280666_0s.jpg)
IF、VLOOKUP、LOOKUP、CHOOSE、INDEX都能搞定等级评定
2022-09-03 08:49:46
![](https://img.aspxhome.com/file/2023/8/a141998_0s.png)
怎么在 Windows 11 上设置默认打印机?
2023-10-08 18:58:33
![](https://img.aspxhome.com/file/2023/30/a268507_0s.jpg)
淘票票中怎么赚快乐金?淘票票中赚快乐金的具体操作方法
2023-11-26 05:53:15
![](https://img.aspxhome.com/file/2023/8/a334360_0s.jpg)
Win10电脑如何查看heic格式的HEIF图片转换为jpg格式
2023-09-04 10:40:00
![](https://img.aspxhome.com/file/2023/29/a262331_0s.png)
Win7打开Word很慢如何解决?
2023-06-17 14:29:55
![](https://img.aspxhome.com/file/2023/27/a231749_0s.jpg)
Vlookup函数查找数值
2023-05-28 19:25:03
wps目录生成后怎么修改
2023-01-26 08:58:13