Advanced Excel
About Lesson

Function: WEEKDAY()


🔍 Purpose:

The WEEKDAY() function returns the day of the week for a given date — as a number (1 to 7).
You can also set which day the week starts on (Sunday or Monday, etc.).

It’s very useful for analysing patterns — like attendance, sales, or billing activities by weekday.


🧮 Syntax:  =WEEKDAY(serial_number, [return_type])

Parameters:

  • serial_number → The date you want to find the weekday for.

  • return_type(Optional) A number that defines which day is treated as the first day of the week.

Return Type Days Numbered As Description
1 (Default) Sunday = 1 → Saturday = 7 U.S. system
2 Monday = 1 → Sunday = 7 ISO style
3 Monday = 0 → Sunday = 6 European style

📘 Explanation:

Excel internally stores dates as serial numbers.
When you use =WEEKDAY(A2), it converts that serial into a day code (1–7).
You can then identify whether it’s a Monday, Friday, or Sunday, etc.


🇮🇳 Indian Example 1: Student Attendance Day Tracker

Student Name Attendance Date Formula Weekday (Number) Weekday Name
Ramesh Kumar 25-Oct-2025 =WEEKDAY(B2,2) 6 Saturday
Priya Das 24-Oct-2025 =WEEKDAY(B3,2) 5 Friday
Arjun Verma 26-Oct-2025 =WEEKDAY(B4,2) 7 Sunday
Sneha Roy 27-Oct-2025 =WEEKDAY(B5,2) 1 Monday

💡 Common in schools or coaching centres to find attendance trends — like how many students come late on Mondays!


🇮🇳 Indian Example 2: Weekly Sales Pattern

Sale Date Total Sales (₹) Formula Weekday (Number) Weekday Name
20-Oct-2025 12,000 =WEEKDAY(A2,2) 1 Monday
21-Oct-2025 9,500 =WEEKDAY(A3,2) 2 Tuesday
22-Oct-2025 15,800 =WEEKDAY(A4,2) 3 Wednesday
23-Oct-2025 8,600 =WEEKDAY(A5,2) 4 Thursday

📊 Indian retail stores or restaurants often use this to identify which day of the week has the highest sales (like weekends).


⚙️ Real-Life Uses:

  • Analyzing sales or expenses by weekday.

  • Finding attendance patterns in institutions.

  • Determining weekend days to skip in project timelines.

  • Generating weekday-based reports for HR, schools, and stores.


🧩 Project Tasks for Students


🧠 Project Task 1: Coaching Centre Attendance Report

You are managing a coaching centre in India. Create a report to check on which day of the week students attend classes.

Student ID Name Attendance Date Formula for Weekday Weekday Name
ST101 Aditi Sen 20-Oct-2025 =WEEKDAY(C2,2)  
ST102 Rahul Roy 21-Oct-2025 =WEEKDAY(C3,2)  
ST103 Rina Das 22-Oct-2025 =WEEKDAY(C4,2)  
ST104 Karan Paul 23-Oct-2025 =WEEKDAY(C5,2)  

👉 Bonus: Use an IF formula to mark Sundays:
=IF(TEXT(C2,"ddd")="Sun","Holiday","Class Day")


🧩 Project Task 2: Delivery Service Workload Report

An Indian courier company (like DTDC) wants to know which days of the week have more deliveries.

Delivery ID Delivery Date Deliveries (No.) Weekday (Number) Weekday Name
D101 20-Oct-2025 12 =WEEKDAY(B2,2)  
D102 21-Oct-2025 8 =WEEKDAY(B3,2)  
D103 22-Oct-2025 14 =WEEKDAY(B4,2)  
D104 23-Oct-2025 9 =WEEKDAY(B5,2)  

📦 Then create a bar chart showing deliveries per weekday — perfect for analyzing workload trends.