TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.2K subscribers
Post #2135 2.66K
๐Ÿš€ Excel Formulas Fundamentals โ€” Part 7

๐Ÿ“… Date & Time Functions in Excel Real-World Business Examples

Dates are used in almost every business report. Whether you're tracking employee attendance, calculating customer age, measuring project timelines, or analyzing monthly sales, Excel's date and time functions are essential.

๐Ÿง  1. How Excel Stores Dates

Excel stores dates as serial numbers.

For example:

Date Serial Number

01-Jan-1900 1

15-Jun-2026 Stored as a serial number internally

๐Ÿ“Œ This allows Excel to perform calculations like adding days or finding the difference between dates.

๐Ÿ“… 2. TODAY() Function

TODAY() returns the current date.

Syntax: =TODAY()

Example: If today's date is 26-Jun-2026: Result 26-Jun-2026

Use Cases: โœ… Attendance sheets, โœ… Invoice dates, โœ… Daily reports

โฐ 3. NOW() Function

Returns the current date and time.

Syntax: =NOW()

Example: 26-Jun-2026 10:30 AM

Use Cases: Report generation timestamps, Activity logs, Audit tracking

๐Ÿ“Œ Unlike TODAY(), NOW() includes the time.

๐Ÿ—“๏ธ 4. DATE() Function

Creates a valid date from year, month, and day values.

Syntax: =DATE(year,month,day)

Example: =DATE(2026,6,15) Result 15-Jun-2026

Use Cases: Creating dynamic dates, Financial models, Scheduling reports

๐Ÿ“† 5. YEAR() MONTH() & DAY()

These functions extract parts of a date.

YEAR() =YEAR(A2) Result 2026

MONTH() =MONTH(A2) Result 6

DAY() =DAY(A2) Result 15

Business Example: If Order Date = 15-Jun-2026 โ†’ You can extract Year โ†’ 2026, Month โ†’ 6, Day โ†’ 15.

This is useful for monthly and yearly reporting.

โณ 6. Calculate Days Between Two Dates

Example: Start Date End Date โ†’ 01-Jun-2026 15-Jun-2026

Formula: =B2-A2 Result 14

๐Ÿ“Œ Excel automatically returns the number of days.

๐Ÿ“Š 7. DATEDIF() Function

Calculates the difference between two dates.

Syntax: =DATEDIF(start_date,end_date,unit)

Calculate Years: =DATEDIF(A2,B2,"Y")

Calculate Months: =DATEDIF(A2,B2,"M")

Calculate Days: =DATEDIF(A2,B2,"D")

Real Example: Employee Joining Date 01-Jan-2020, Today's Date 26-Jun-2026

Formula: =DATEDIF(A2,TODAY(),"Y") Result 6 Years

๐Ÿ“Œ Commonly used to calculate Employee experience, Customer age, Membership duration

๐Ÿข 8. NETWORKDAYS()

Calculates working days between two dates. Weekends are automatically excluded.

Syntax: =NETWORKDAYS(start_date,end_date)

Example: =NETWORKDAYS(A2,B2)

Include Holidays: =NETWORKDAYS(A2,B2,D2:D10) where D2:D10 contains holiday dates

Use Cases: โœ… Project planning, โœ… SLA tracking, โœ… Payroll calculations

๐Ÿ“ˆ 9. EDATE()

Adds or subtracts months from a date.

Syntax: =EDATE(start_date,months)

Example: =EDATE(A2,3) Returns a date 3 months after the date in A2

๐Ÿ“Œ Useful for Loan schedules, Subscription renewals, Contract expiry dates

๐Ÿ“… 10. EOMONTH()

Returns the last day of a month.

Syntax: =EOMONTH(start_date,months)

Example: =EOMONTH(A2,0) If A2 = 15-Jun-2026 Result 30-Jun-2026

Use Cases: Month-end reports, Financial closing, Billing cycles
  • โค 8
More from @excel_analyst
  1. Oct 13, 2026๐Ÿ“Š Excel Interview Questions โ€” Part 1 1๏ธโƒฃ What is the difference between VLOOKUP and XLOOKโ€ฆ
  2. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  3. Oct 12, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 7 This part focuses on Paste Special, Go To Special & Advanced Pโ€ฆ
  4. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  5. Oct 10, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 6 This part focuses on Worksheet & Sheet Management shortcuts โ€”โ€ฆ
  6. Oct 9, 2026Hey guys, Today, Iโ€™m covering some Excel interview questions that often pop up in data anaโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’