๐ Excel Formulas โ Part 6
This part focuses on Date & Time formulas โ essential for reporting, deadlines, ageing analysis, trends, and time-based calculations.
1๏ธโฃ TODAY
Returns the current date.
=TODAY()
โข Example: Automatically display today's date.
2๏ธโฃ NOW
Returns the current date and time.
=NOW()
โข Example: Track when a workbook was last recalculated.
3๏ธโฃ DATE
Creates a date from year, month, and day.
=DATE(2026,9,24)
โข Result: 24-Sep-2026
4๏ธโฃ YEAR
Extracts the year from a date.
=YEAR(A2)
โข Example: 24-Sep-2026 โ 2026
5๏ธโฃ MONTH
Extracts the month number.
=MONTH(A2)
โข Example: 24-Sep-2026 โ 9
6๏ธโฃ DAY
Extracts the day of the month.
=DAY(A2)
โข Example: 24-Sep-2026 โ 24
7๏ธโฃ EOMONTH
Returns the last day of a month.
=EOMONTH(A2,0)
โข If A2 is 24-Sep-2026 โ Result: 30-Sep-2026
โข You can also move between months:
โข =EOMONTH(A2,1) โ Last day of next month
8๏ธโฃ DATEDIF
Calculates the difference between two dates.
=DATEDIF(A2,B2,"Y")
โข Returns the number of complete years.
Other units:
โข "Y" โ Years
โข "M" โ Months
โข "D" โ Days
Example:
โข =DATEDIF(A2,B2,"D") โ Number of days between the dates.
9๏ธโฃ DAYS
Returns the number of days between two dates.
=DAYS(B2,A2)
โข Example:
โข Start Date โ 01-Sep-2026
โข End Date โ 24-Sep-2026
โข Result โ 23
๐ NETWORKDAYS
Calculates the number of working days between two dates, excluding weekends.
=NETWORKDAYS(A2,B2)
โข You can also exclude holidays:
โข =NETWORKDAYS(A2,B2,E2:E10)
๐ง Quick Reference
โข TODAY() โ Current date
โข NOW() โ Current date + time
โข DATE() โ Create a date
โข YEAR() โ Extract year
โข MONTH() โ Extract month
โข DAY() โ Extract day
โข EOMONTH() โ Last day of month
โข DATEDIF() โ Difference between dates
โข DAYS() โ Number of days between dates
โข NETWORKDAYS() โ Working days between dates
๐ก Practice
โข Employee โ Joining Date โ End Date
โข Rahul โ 10-Jan-2022 โ 24-Sep-2026
โข Priya โ 15-Mar-2023 โ 24-Sep-2026
โข Amit โ 20-Jul-2024 โ 24-Sep-2026
โข Neha โ 05-Feb-2025 โ 24-Sep-2026
โค๏ธ Double Tap & React For Part 7!
Post #2332
2.8K
- โค 19