Function: DAY()
📘 Definition:
The DAY() function in Excel returns the day of the month (a number between 1 and 31) from a given date.
It helps you extract just the day portion from a complete date — very useful for reports, scheduling, and filtering based on specific days.
DAY(serial_number)
serial_number → The date value (either a real Excel date or a cell reference containing a date)
Example (Indian Perspective):
| Date | Formula | Result |
|---|---|---|
| 15-Aug-2024 | =DAY(A2) |
15 |
| 26-Jan-2025 | =DAY(A3) |
26 |
| 02-Oct-2023 | =DAY(A4) |
2 |
This extracts only the day part of each important Indian national holiday date 🇮🇳.
🪜 Step-by-Step Explanation:
-
Suppose A2 =
15-Aug-2024 -
Formula →
=DAY(A2) -
Excel reads the date and returns 15, the day of that date.
-
You can use it for grouping or filtering all records from specific dates (like 1st, 15th, or 30th of each month).
💡 Tip:
If you have a text-based date like "15-Aug-2024", you must first convert it using DATEVALUE():
🎯 Why It’s Useful:
-
To analyze daily trends (like all sales on the 15th of each month).
-
For separating Day, Month, and Year from a full date.
-
For custom date formats or conditional logic based on day numbers.
🧑💻 Project Task 1: Analyze Daily Sales Patterns
| Invoice ID | Invoice Date | Total Amount (₹) | Day of Month |
|---|---|---|---|
| INV001 | 02-Apr-2024 | 1,250 | |
| INV002 | 15-Apr-2024 | 2,750 | |
| INV003 | 15-May-2024 | 3,200 | |
| INV004 | 25-May-2024 | 1,800 |
👉 Tasks:
-
Use
DAY()to extract the Day of Month for each invoice. -
Create a Pivot Table to check which day appears most frequently.
-
Which day (1–31) generates the most invoices?
🧑💻 Project Task 2: Student Birthday Month Analysis
| Student ID | Name | Date of Birth | Birth Day |
|---|---|---|---|
| S101 | Anjali Roy | 12-Mar-2003 | |
| S102 | Rohit Saha | 25-Dec-2002 | |
| S103 | Kiran Gupta | 05-Jul-2004 | |
| S104 | Meena Paul | 01-Jan-2003 |
👉 Tasks:
-
Use
DAY()to extract the Birth Day from the DOB. -
Find how many students have birthdays on the 1st, 5th, 12th, etc.
-
(Optional) Combine with
MONTH()later to sort birthdays by full date.