


Use a combination of the IF() and WEEKDAY() functions here. Now all that’s left to do is to not display anything when a date falls on a weekend. Cell C5 = WEEKNUM(B5)-WEEKNUM(DATE(YEAR(B5),MONTH(B5), 1)) + 1Īpply the formula down to the last row and now you have the correct week number for February 1. You will again notice that the week now starts counting at 0.Īdd a 1 to the formula to address this. The number 1 is used since we want to find the serial number of the 1 st day of that month so that we can eventually find its corresponding week number. We will be using a combination of the DATE() function to find the serial number of the 1 st of a specific date, and the YEAR() MONTH() functions to find what year and month it should use. Subtract the current week number with the week number of the 1 st of the month and increment it as it goes. Whenever a new month is started, the week counter should reset back to 1.
#Week number excel how to#
To understand how to fix this, we will go through it step by step. In this example, we want February 1 to be counted as week 1 of February instead of week 5 of January.

However, this does not count the 1 st of the month as a new week when it doesn’t fall on a Monday. You will notice that the values rum from week 1 to 53 and then resets to week 1 when it starts a new year. The formula for cell C5 now becomes: Cell C5 = WEEKNUM(B5)ĭrag the formula down to the last row (or double click on the lower right corner of the cell). You will have an option to pick any way of the week. serial_number – this is the date you want to convert.Its syntax is: = WEEKNUM(serial_number, ) Excel’s WEEKNUM() function is used for Case 1.
