
π This article includes 1 downloadable practice file β
Bookmark this page. These are the date formulas that come up again and again in reports, HR sheets and finance work. A2 holds a date unless stated.
In this article
Today and the current month
1 =TODAY() ' today
2 =EOMONTH(TODAY(), 0) ' last day of this month
3 =EOMONTH(TODAY(), -1) + 1 ' first day of this month
4 =EOMONTH(TODAY(), -2) + 1 ' first day of last month
5 =EOMONTH(TODAY(), -1) ' last day of last month
Adding and subtracting
6 =A2 + 30 ' 30 days later (due date)
7 =EDATE(A2, 1) ' same day next month
8 =EDATE(A2, -12) ' one year earlier
9 =WORKDAY(A2, 10, Holidays) ' 10 working days later
10 =B2 - A2 ' days between (format as Number)
Age, tenure, differences
11 =DATEDIF(A2, TODAY(), "y") ' completed years
12 =DATEDIF(A2, TODAY(), "ym") ' extra months
13 =DATEDIF(A2, TODAY(), "y") & "y " & DATEDIF(A2, TODAY(), "ym") & "m"
14 =NETWORKDAYS(A2, B2, Holidays) ' working days between
15 =YEARFRAC(A2, B2) ' years as a decimal
Parts and labels
16 =TEXT(A2, "dddd") ' Sunday
17 =TEXT(A2, "mmm-yy") ' Oct-26
18 =WEEKDAY(A2, 2) ' 1 = Monday β¦ 7 = Sunday
19 =ISOWEEKNUM(A2) ' week number
20 =ROUNDUP(MONTH(A2)/3, 0) ' calendar quarter
Indian financial year
21 =YEAR(A2) - (MONTH(A2) < 4) ' FY start year
22 ="FY " & (YEAR(A2)-(MONTH(A2)<4)) & "-" & RIGHT(YEAR(A2)-(MONTH(A2)<4)+1, 2) ' FY 2026-27
23 ="Q" & INT(MOD(MONTH(A2) - 4, 12) / 3) + 1 ' FY quarter (Apr-Jun = Q1)
Checks
24 =ISNUMBER(A2) ' TRUE for a real date, FALSE for text dates
25 =AND(A2 >= DATE(2026,4,1), A2 <= DATE(2027,3,31)) ' inside FY 2026-27?
Go deeper: the dates lesson and working days with holidays.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πDate scenarios workbookMonth maths, financial-year start, working days with holidays β with PASS/FAIL checks and the 2 most common date mistakes.β¬ XLSX Β· 8 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βStuck on a step? Ask a question and the AI answers using this article.