Go Back

How to Get Week Number From Date in Excel

Read time: 20 minutes

Manually, it is difficult to calculate how many weeks have been elapsed since January 1st to the given date in the same year. But using the Excel WEEKNUM function we can easily get the week number from date.

Figure 1. Getting Week Number From Date

Formula Syntax

The syntax for the WEEKNUM function is;

=WEEKNUM (serial_num, [return_type])

The WEEKNUM function returns the number of weeks that have elapsed since January 1st of the year of the date, where;

  • Serial_num – It is required argument containing a valid Excel date value.
  • Return_type – (Optional) It is used to specify which day the week begins with. The default is Sunday.

Figure 2. The Syntax For the WEEKNUM Function

Suppose we have various dates in column B and we want to get the week number from date. In column C, we will use the Excel WEEKNUM function to determine how many weeks have been elapsed since the January 1st to the given date in the year 2018, where the week starts on Monday in our example, such as;

=WEEKNUM(B2,2)

Enter this formula in cell C2 and copy down to cells in column C

Figure 3. The Final Preview of the WEEKNUM Formula

Instant Connection to an Expert through our Excelchat Service:

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I would like: If cell E2 has a date then populate B2 with week number using date from E2 If cell E2 is blank - then populate B2 with week number using date from C2 So far I can get the correct week number if E2 has a date, however if E2 is blank I cannot get the correct week number in B2 from C2
Solved by G. H. in 19 mins
I need help finding a formula that will return the Week Number in the year from a date in the form of mm/dd/yyyy.
Solved by S. J. in 14 mins
I need to get the week to date completed in comparison to the goal amount. There are six days in the week and they are written out in the rows not the columns
Solved by F. F. in 26 mins

Leave a Comment

avatar