Quantunet.com

My Account

Joins Us
Excel QuickSkills
The WEEKNUM() Function Knowledgebase  

 

The WEEKNUM function returns a number that tells you the week number of the year from 1 to 54.

  • The syntax for the function is WEEKNUM (serial_num, return_type ) .

The "serial_num" must be a string or a recognizable date format in Excel. "return_type" represents the different methods of referencing the week of the year.

  • Type 1 begins the week on sunday.
  • Type 2 begins the week on monday.

Each represents a different way of counting weeks. For example:
WEEKNUM ("1/7/2007",1) = 2 and WEEKNUM ("1/7/2007", 2) = 1 The values are different as the date 1/8/2007 is a sunday. Type 1 counts the beginning of a new week and so is in the second week but type 2 says that this date still lies in the first week.

Note: The WEEKNUM function considered the first week of the year to be the week containing the 1st of January. This is in contrast to the European standard that dictates weeks containing less than three days not be included as the first week of the year.


How to use the WEEKNUM() function:

  • Type " =WEEKNUM( "
  • Enter the coordinate for the "Date" data cell "A2"
  • Type a comma.
  • Enter the counting "type".
  • Type ")" then press the "Enter" key.
 


Note: It is better to enter the dates into this function using the DATE() function as dates in the forma of text strings can cause problems to occur.



© 2007 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us