Function: WEEKNUM()
🔍 Purpose:
The WEEKNUM() function returns the week number of a given date — counting from the start of the year.
For example, if a date falls in the 3rd week of January, WEEKNUM() will return 3.
It’s perfect for tracking weekly progress, sales trends, or project timelines.
🧮 Syntax: =WEEKNUM(serial_number, [return_type])
Parameters:
-
serial_number → The date you want to find the week number for.
-
return_type → (Optional) Decides which day the week starts on.
| Return Type | Description |
|---|---|
| 1 | Week begins on Sunday (default) |
| 2 | Week begins on Monday (ISO standard) |
📘 Explanation:
Excel considers Week 1 as the week containing January 1st.
Each week is numbered sequentially — Week 2, Week 3, etc.
Using this, you can group or summarize data by week, which is extremely useful in business analysis, attendance, or production tracking.
Example 1: Weekly Sales Summary
| Date | Total Sales (₹) | Formula | Week No. |
|---|---|---|---|
| 2-Jan-2025 | 12,500 | =WEEKNUM(A2,2) |
1 |
| 9-Jan-2025 | 18,000 | =WEEKNUM(A3,2) |
2 |
| 15-Jan-2025 | 22,750 | =WEEKNUM(A4,2) |
3 |
| 22-Jan-2025 | 25,600 | =WEEKNUM(A5,2) |
4 |
📊 Now, you can easily analyze which week had the highest sales.
This is especially useful for small Indian retailers or weekly offer tracking.
Example 2: Employee Attendance Summary
| Employee Name | Attendance Date | Formula | Week Number |
|---|---|---|---|
| Neha Gupta | 5-Mar-2025 | =WEEKNUM(B2,2) |
10 |
| Rohan Das | 12-Mar-2025 | =WEEKNUM(B3,2) |
11 |
| Kunal Sen | 19-Mar-2025 | =WEEKNUM(B4,2) |
12 |
| Sneha Paul | 26-Mar-2025 | =WEEKNUM(B5,2) |
13 |
💡 This helps HR staff create weekly attendance summaries automatically.
⚙️ Real-Life Uses:
-
Summarizing sales, production, or expenses by week.
-
Grouping attendance or shifts by week number.
-
Creating weekly performance dashboards in reports.
-
Tracking projects or deliveries based on week cycles.
🧩 Project Tasks for Students
🧠 Project Task 1: Agricultural Produce Tracking
A farmer’s cooperative in West Bengal maintains records of weekly vegetable sales.
Use WEEKNUM() to find the week number and analyze which weeks had better yield.
| Date | Product | Quantity (Kg) | Sales (₹) | Week No. |
|---|---|---|---|---|
| 3-Jan-2025 | Tomato | 250 | 5,000 | |
| 10-Jan-2025 | Potato | 300 | 4,200 | |
| 17-Jan-2025 | Brinjal | 180 | 2,700 | |
| 24-Jan-2025 | Cauliflower | 220 | 3,850 | |
| 31-Jan-2025 | Chilli | 100 | 1,600 |
👉 Use =WEEKNUM(A2,2)
Then, create a Pivot Table to summarize total sales by week.
🧩 Project Task 2: Indian Stock Market Portfolio Tracker
You are creating a weekly analysis sheet for Nifty50 investments.
Use WEEKNUM() to find which week each transaction falls under.
| Date | Stock Name | Buy Price (₹) | Sell Price (₹) | Profit/Loss (₹) | Week No. |
|---|---|---|---|---|---|
| 6-Jan-2025 | TCS | 3850 | 3920 | 70 | |
| 10-Jan-2025 | Infosys | 1530 | 1565 | 35 | |
| 15-Jan-2025 | Reliance | 2520 | 2600 | 80 | |
| 22-Jan-2025 | HDFC Bank | 1520 | 1500 | -20 | |
| 30-Jan-2025 | ITC | 455 | 465 | 10 |
📈 After adding =WEEKNUM(A2,2), you can analyze average profit/loss per week — a great exercise for data analysis students.