简体   繁体   English

如何通过一年的周数获取月份的周数

[英]How to get week number of the month by week number of the year

I only have week number for the year. 我只有一年的星期数。 How can I get the week number of the month? 如何获得每月的星期数? For ex: 例如:

Week 42 第42周

Week of the month 2 每月的第2周

How can I get the “2” in excel? 如何获得Excel中的“ 2”?

I have created a formula for you. 我为您创建了一个公式。

=INT( DAY( (A1-1)*7+ (DATE(B1,1,1)+ (8-WEEKDAY(DATE(B1,1,1),2))) ) / 7)

The formula is inserted in C1, year is present in B1 and week number is present in A1 Week numbers are according to ISO stranded. 公式插入到C1中,年份出现在B1中,星期编号出现在A1中。

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

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