查找月份中每天类型的数量(Excel) [英] Find number of Each Day Type Left in Month (Excel)

查看:121
本文介绍了查找月份中每天类型的数量(Excel)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试查找本月的平日数量:例如2个星期一,2个星期二等。任何人都知道我该怎么做?

Trying to find the number of weekdays LEFT in the month: e.g. 2 Mondays, 2 Tuesdays, etc in excel. Anyone know how I can go about doing this?

谢谢!

推荐答案

p>您正在使用哪个版本的Excel?如果您有Excel 2010,您可以自定义 NETWORKDAYS.INTL 函数来计算任何一天,例如从今天直到月底(包括今天)计算星期一可以使用此公式

Which version of Excel are you using? If you have Excel 2010 you can customise NETWORKDAYS.INTL function to count any single day, e.g. to count Mondays from today until the end of the month (including today) you can use this formula

= NETWORKDAYS.INTL(TODAY(),EOMONTH(TODAY(),0),0111111)

1011111星期三1101111等。

有常见的周末的具体代码,例如11周日周末,但事实上,您可以使用字符串使用任何组合的日期,如图所示 - 零表示要计算的天数,1秒是忽略的日期 - 字符串从星期一开始,以星期日结束

There are specific codes for common "weekends", e.g. 11 for Sunday weekends, but, in fact, you can use any combination of days by using a string as shown - zeroes denote days to be counted, 1s are days to be ignored - the string starts with Monday and ends with Sunday

这篇关于查找月份中每天类型的数量(Excel)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆