Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Understanding Anova in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Everything about Charts in Excel
  • Understanding Pivot Tables in Excel
  • How to combine 2 or more chart types in a single chart in Excel

References

  • To count total rows in a range in Excel
  • How to use Excel LOOKUP Function
  • How to get address of first cell in range in Excel
  • How to retrieve first match between two ranges in Excel
  • How to get relative column numbers in a range in Excel

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation must not contain
  • Excel Data validation don’t exceed total
  • How To Create Drop-down List in Excel
  • Excel Data validation must contain specific text

WEEKNUM function: Description, Usage, Syntax, Examples and Explanation

by

What is WEEKNUM function in Excel?

WEEKNUM function is one of Date and Time functions in Microsoft Excel that returns the week number of a specific date. For example, the week containing January 1 is the first week of the year, and is numbered week 1.

There are two systems used for this function:

  • System 1    The week containing January 1 is the first week of the year, and is numbered week 1.
  • System 2    The week containing the first Thursday of the year is the first week of the year, and is numbered as week 1. This system is the methodology specified in ISO 8601, which is commonly known as the European week numbering system.
Worked Example:   Sum by week number in Excel

Syntax of WEEKNUM function

WEEKNUM(serial_number,[return_type])

The WEEKNUM function syntax has the following arguments:

  • Serial_number: A date within the week. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
  • Return_type(Optional): A number that determines on which day the week begins. The default is 1.
Return_type Week begins on System
1 or omitted Sunday 1
2 Monday 1
11 Monday 1
12 Tuesday 1
13 Wednesday 1
14 Thursday 1
15 Friday 1
16 Saturday 1
17 Sunday 1
21 Monday 2
Worked Example:   Get week number from date in Excel

WEEKNUM formula explanation

  • Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1. January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
  • If Serial_number is out of range for the current date base value, a #NUM! error is returned.
  • If Return_type is out of the range specified in the table above, a #NUM! error is returned.

Example of WEEKNUM function

  • Sum by week number in Excel
  • Pad week numbers with zeros in Excel
  • Get week number from date in Excel
Worked Example:   Pad week numbers with zeros in Excel

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Data
3/9/2012
Formula Description Result
=WEEKNUM(A2) Number of the week in the year that 3/9/2012 occurs, based on weeks beginning on Sunday (default). 10
=WEEKNUM(A2,2) Number of the week in the year that 3/9/2012 occurs, based on a week beginning on Monday (the second argument, 2). 11

Post navigation

Previous Post:

DCOUNT function: Description, Usage, Syntax, Examples and Explanation

Next Post:

231 Keyboard Shortcut Keys In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel NOT Function
  • How to use Excel OR Function
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel

Date Time

  • Add business days to date in Excel
  • Display Date is same month in Excel
  • How to join date and text together in Excel
  • Custom weekday abbreviation in Excel
  • Extract time from a date and time in Excel

Grouping

  • Group arbitrary text values in Excel
  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel

General

  • How to create dynamic worksheet reference in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Index and match on multiple columns in Excel
  • How to test a range for numbers in Excel
  • How to make excel worksheets print on one page?
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning