WEEKNUM Function
Master the WEEKNUM function to return the week number of a specific date. Learn syntax, examples, and solutions for Excel and Google Sheets week calculations.




=WEEKNUM(serial_number, [return_type])
Practical Examples
Basic Week Number Calculation
Find the week number for September 29, 2025
Weekly Sales Report Aggregation
Group daily sales data by week number for reporting
ISO Week Number for International Reporting
Calculate ISO standard week numbers for global business reporting
Create Week-Year Identifier
Combine WEEKNUM with YEAR for unique weekly identifiers
Project Timeline Tracking
Track project progress by week number from start date
Fiscal Week Calculation
Calculate fiscal week numbers when fiscal year starts July 1
Weekly Employee Schedule Rotation
Assign teams to shifts based on week number rotation
Common Errors and Solutions
WEEKNUM returns #VALUE! error
The date parameter contains text that cannot be interpreted as a valid date
1. Verify the date format matches your regional settings (MM/DD/YYYY or DD/MM/YYYY) 2. Check for hidden spaces or non-printing characters 3. Use DATEVALUE to convert text to dates: =WEEKNUM(DATEVALUE("9/29/2025")) 4. Ensure cells are formatted as dates, not text 5. Use DATE function for unambiguous dates: =WEEKNUM(DATE(2025,9,29))
Always use cell references with properly formatted dates or the DATE function
WEEKNUM returns #NUM! error
The return_type parameter is outside the valid range (1-2, 11-17, or 21)
1. Check that return_type is a valid option 2. Common valid values: 1 (Sunday start), 2 (Monday start), 21 (ISO) 3. Remove the second parameter to use default (1) 4. Verify you're not using text instead of a number for return_type
Use only documented return_type values
WEEKNUM returns unexpected week number
Using different week numbering system than expected (standard vs ISO)
1. Verify which return_type you're using 2. Check if you need standard (1 or 2) or ISO (21) system 3. Remember ISO weeks can assign late December to week 1 of next year 4. Confirm your organization's week numbering convention 5. Test with known dates to verify correct system
Document which week system your organization uses and stick to it consistently
Unexpected week 53 in results
Some years have 53 weeks depending on the week numbering system
1. This is normal for certain years (about every 5-6 years) 2. Years starting on Thursday have 53 weeks (Sunday system) 3. Leap years starting on Wednesday have 53 weeks 4. Plan for week 53 in your data models 5. Use ISO system for more predictable behavior
Design systems to handle both 52 and 53-week years
Best Practices and Pro Tips
Always use the same return_type across your entire workbook or organization. Mixing Sunday-start and Monday-start systems leads to confusion and errors. Document your choice in a visible cell or comment.
To find the week-ending date (e.g., Saturday), use: =A2+(7-WEEKDAY(A2)). This is helpful for weekly reports that need to show 'Week Ending' dates.
Be careful with dates near year boundaries. January 1st might be week 53 of the previous year in ISO system, or week 1 might start in late December.
Excel 2013+ offers ISOWEEKNUM function specifically for ISO week numbers. Consider using =ISOWEEKNUM(date) instead of =WEEKNUM(date,21) for clearer intent.
For large datasets with repeated WEEKNUM calculations, add a helper column with week numbers rather than calculating repeatedly in formulas. This can improve performance by 50% or more.
Need Help with WEEKNUM Function?
Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.
Example Excel formula:
Related Formulas
Master the DATE function in Excel to create dates from year, month, and day values. Learn syntax, examples, errors, and best practices.


Master the TODAY function to insert dynamic current dates that update automatically. Learn practical examples and avoid common errors.


Master the WEEKDAY function to return the day of week as a number. Learn syntax, examples, and error solutions for Excel and Google Sheets calculations.


Master the YEAR function to extract years from dates in Excel and Google Sheets. Learn syntax, examples, error fixes, and best practices for date analysis.

