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.
Leave a Comment