excel怎么统计每月天数不一样,如何计算日平均销售量
时间:2023-01-09 01:49:02
前几天, 过:Excel SUMPRODUCT计算指定年份与月份的销售总额,今天,就有朋友传给数据,精简如下:
计算每月的平均日销量,朋友问:
1、难道用MONTH函数,确定月份,再用IF函数按照“一三五七八十腊,三十一天永不差”的规律去做?
2、但遇到2月怎么办?难道还要确定年份是平年闰年?
请支招!!
公式实现
在C2单元格输入公式:“=B2/DAY(EOMONTH(A2,0))”,即可得解。
公式详解EOMONTH函数
功能:
返回某个月份最后一天
语法:
EOMONTH(start_date, months)
中文语法:
EOMONTH(日期, 月份数)
其中:
Start_date 即日期,必需,且必需是日期格式;
Months 即月份数,必需,指日期之前或之后的月份数。 为正值将生成未来日期、为负值将生成过去日期、为0是本月。
举例如下:
DAY函数
功能:
返回日期所在月的天数,为从 1 到 31 之间的整数。
标签:excel公式技巧,excel函数公式,excel常用函数,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word2010默认的行间距是多少
2022-03-21 23:13:49
![](https://img.aspxhome.com/file/2023/6/35036_0s.png)
如何在word文档中的末尾插入一个分节符
2022-10-11 09:05:32
![](https://img.aspxhome.com/file/2023/3/33143_0s.jpg)
Win10系统temp文件夹如何删除?
2023-12-14 00:40:11
![](https://img.aspxhome.com/file/2023/1/51631_0s.png)
excel寻找和插入公式技巧介绍
2022-03-01 21:07:39
![](https://img.aspxhome.com/file/2023/4/40854_0s.jpg)
如何为excel2016单元格添加条件格式进行快速分析数据
2023-10-26 11:55:59
![](https://img.aspxhome.com/file/2023/8/a140318_0s.jpg)
如何在word中设置封面
2023-07-08 20:08:35
Word怎么固定图片大小?
2023-09-26 17:45:52
![](https://img.aspxhome.com/file/2023/1/34721_0s.gif)
word中的网址怎么变成超链接点击即可进入网页?
2022-10-25 16:44:17
![](https://img.aspxhome.com/file/2023/0/24680_0s.jpg)
Word如何显示或隐藏段落标记等符号
2022-08-27 03:30:06
![](https://img.aspxhome.com/file/2023/5/31775_0s.png)
金山毒霸关闭自动处理病毒的技巧教程
2023-06-07 20:44:54
![](https://img.aspxhome.com/file/2023/7/53287_0s.png)
word安全模式怎么解除?word安全模式解除图文方法
2023-08-11 09:50:56
![](https://img.aspxhome.com/file/2023/6/29136_0s.png)
Win10如何查询错误日志?Win10查询错误日志的方法
2022-02-07 16:05:15
![](https://img.aspxhome.com/file/2023/5/52705_0s.jpg)
excel怎样设置行高
2022-03-04 06:17:02
![](https://img.aspxhome.com/file/2023/2/36132_0s.jpg)
excel工作表标签颜色怎么修改? excel修改工作簿颜色的教程
2022-11-25 20:20:43
![](https://img.aspxhome.com/file/2023/2/41962_0s.jpg)
word超链接怎么做
2023-12-08 00:58:47
excel图表一个公式搞定双条件查询
2022-05-12 18:17:40
![](https://img.aspxhome.com/file/2023/9/a142029_0s.gif)
Word怎样添加多级标题
2023-11-30 01:06:27
WPS如何使用制表符排版
2023-07-28 17:51:32
![](https://img.aspxhome.com/file/2023/9/53609_0s.jpg)
wps怎么在形状上添加文字
2023-05-25 10:39:29
Win10专业版电脑里的软件如何卸载干净?
2023-11-24 08:29:59
![](https://img.aspxhome.com/file/2023/6/50416_0s.jpg)