AI Assistant
Help Center AI Assistant is now available
Got questions about Lark? Use our AI chat to find the answers.
00:00
Click and hold to drag
Got It
Try Now

WEEKNUM function for Sheets

1 min read
I. Intro
You can use the WEEKNUM function to find the week of the year on which a specified date falls.
II. About the function
  • Formula: =WEEKNUM(date, [type])
  • Parameters:
  • Date (required): The date that you want to find the week number for. It must be one of the following: a reference to a cell containing a date, a function returning a value in a date format, or an integer.
  • Type (optional): A number indicating which day the week starts on. Sunday is 1.
Type
Week starts on
1 or blank
Sunday
2
Monday
11
Monday
12
Tuesday
13
Wednesday
14
Thursday
15
Friday
16
Saturday
17
Sunday
21
Monday
  • Example:
  • In a cell, enter =WEEKNUM("2021-1-31", 2).
  • The formula will calculate which week of 2021 Jan 31, 2021 falls in, if Monday is considered as the first day of the week.
  • The cell will return the value 5, indicating that Jan 31, 2021 is in the 5th week of 2021.
  • Note: Use double quotation marks (") around the date in the formula.
III. Steps
You can use the WEEKNUM function together with TODAY and NOW functions to create a mini calendar in a sheet.
  1. Use the TODAY and NOW functions to obtain the current date and time.
  1. In a blank cell, enter =WEEKNUM(today's date) to obtain the current week of the year. In the image below, =WEEKNUM(B33) returns week number 20 for May 12.
  1. The WEEKNUM, TODAY, and NOW functions will be updated every time you refresh the sheet.
250px|700px|reset
1.gif
Written by: Lark Help Center
Updated on 2022-10-08
How satisfied are you with this content?
Thank you for your feedback!
Need more help? Please contact Support.
0
rangeDom