The Complete Excel Course with AI Integration
Excel date functions for government officers
Government work is measured in dates: the days an application has waited, the working days left on a reply, the month a return closes and the financial year a payment belongs to. The Complete Excel Course with AI Integration teaches the date functions behind each on industry-standard projects, and this page picks out its lessons: TODAY and date arithmetic, EOMONTH and NETWORKDAYS, a live deadline tracker, counts by period and Power Query date columns.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Work out how many days each application or request has waited with TODAY and date arithmetic, shown as a plain count that moves on every morning.
- Count the working days left on a task or reply and the days it is past due with NETWORKDAYS, TODAY and IF.
- Find the last day of the month a deadline falls in with EOMONTH, for month-end returns and cut-offs.
- Count and total a register's entries between two dates with COUNTIFS and SUMIFS, and flag a chosen month's entries with MONTH and IF.
- Group a register's dates into years, quarters and months in a PivotTable for a periodic return.
- Turn text dates in an office return into true dates in Power Query, with year, month, year-month and fiscal year columns rebuilt on every refresh.
- Fix dates that show as hashes or five-digit numbers, and counts that show as dates, with column width and number formats.
Projects
What you will build.
The course has 14 industry-standard projects. These five matter most here.
-
Project 07
TaskFlow
One sheet that shows what is done, what is late and what is urgent.
Built for tasks, it is where the date formulas run a live deadline log: working days planned, working days left and days past due from TODAY and NETWORKDAYS, plus a timeline of each task's start and length, the model for a register of requests and replies.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
Built for HR data, it closes its date work on a small sheet of tasks and deadlines: days until each deadline, the month a deadline closes through EOMONTH, and the working days between start and deadline.
-
Project 09
FinanceGuard
The budget vs actual report finance teams send every month.
Built as a budget against actual model, it rebuilds a real date from the period inside each budget key with DATE, then labels it by month with TEXT, so every budget line sorts and reports in calendar order.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
Built on sales exports, its Power Query half repairs dates that arrive as text, sets aside impossible ones and adds year, month, year-month and fiscal year columns to every file in a folder.
-
Project 03
Sales Goal Tracker
Built for sales targets, its date column is where TODAY, NOW and MONTH first appear, with days since each entry, a follow-up date, a flag for one month and COUNTIFS with two conditions on the date.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 12 of them, 1 h 11 min of video. Each lesson keeps its number in the course.
Where to start
Lesson 39 Date and time functions in Excel
Start at Lesson 39 if you can write a simple formula: TODAY and date arithmetic are the base for everything after it. Unsure how Excel formats dates? Take Lesson 6 first, or begin at Lesson 1 if Excel itself is new. Already counting days? Go straight to Lesson 74 for EOMONTH and NETWORKDAYS and then to Lesson 85 for a live deadline tracker, and to Lesson 158 when the dates arrive in monthly files.
12 of 186 lessons · 1 h 11 min
01 Microsoft Excel fundamentals: building a foundation from scratch Date formats from the very first workbook: Format Cells and the short-date shortcut for a date column, and AutoFit for the column of hashes that means the dates are wider than their cells.
- 6 Number formatting in Excel Currency, date and percentage formats for a budget 5 min
- 7 Cell formatting in Excel AutoFit column width, the #### error and cell styles 6 min
04 Essential formulas and functions (IF, SUMIF and more) SUMIFS and COUNTIFS on the Sales Goal Tracker, including a count with two conditions on the date column for one month, the pattern for any reporting period.
- 37 SUMIFS and COUNTIFS in Excel Sum and count with multiple criteria 7 min
04 Essential formulas and functions (IF, SUMIF and more) TODAY minus a date for days elapsed, MONTH and the month-name formats, a follow-up date by plain addition, NOW for an as-of stamp and an IF that flags one month's entries.
- 39 Start here Date and time functions in Excel TODAY, NOW, MONTH and date arithmetic 6 min
07 PivotTables and PivotCharts: data analysis made easy A PivotTable that groups a date field into years, quarters and months by itself, with levels removed to switch between quarterly, monthly and daily views. The data is sales orders.
- 61 PivotTable summaries in Excel Sales by product category and grouping by date 4 min
08 Advanced Excel functions: lookups, text and arrays TODAY, EOMONTH and NETWORKDAYS on a small task sheet in the HR workbook: days until each deadline, the end of the deadline's month and the working days between start and deadline.
- 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
09 Project: task automation with data validation and forms The Gantt chart lesson, in its title's words a project timeline built with conditional formatting, showing each task's start and length against the dates of a programme.
- 83 Gantt chart in Excel Build a project timeline with conditional formatting 6 min
09 Project: task automation with data validation and forms NETWORKDAYS and TODAY in TaskFlow: working days planned for each task, working days left, and days past due shown only for late tasks, every figure live each morning.
- 85 NETWORKDAYS and TODAY in Excel Days remaining and task deadlines in TaskFlow 5 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) FinanceGuard's model, where LEFT, MID and DATE rebuild a real date from the period in each budget key and TEXT shows it as a month label. It needs a modern Excel.
- 117 Budget vs actual model in Excel SORT, UNIQUE, VSTACK, LET, TEXTSPLIT, SUMIFS 8 min
15 SalesFusion: advanced data tools and a Power Query modelling system Power Query dates: text turned into true dates once placeholders and an impossible date are replaced, failures set to empty, then year, month name, month number, month start and year-month columns added for reporting. The files are sales exports.
- 158 Data types in Power Query Fix date, whole number, decimal and text types 7 min
- 159 Date columns in Power Query Add year, month and year-month fields for reports 7 min
15 SalesFusion: advanced data tools and a Power Query modelling system Fiscal year columns, added with the profit metrics to every file in a folder of period files, so each row carries its financial year after every refresh.
- 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 min
Instructors
Who teaches it.
Instructor, Excel with AI
Virginia Thorn
Emmy Award winner. Teaches Excel with AI at Coding Liquids.
Questions
Asked before starting.
Where should a government officer start with Excel date functions, and how far can one course take that?
Start with TODAY and simple date arithmetic, and The Complete Excel Course with AI Integration from Coding Liquids carries you from there to a working deadline tracker and reporting by period, on industry-standard projects designed after talking with people from many different industries. Lesson 39 turns a date into a live count of days, a month and a follow-up date; Lesson 74 adds EOMONTH for month ends and NETWORKDAYS for working days; TaskFlow then puts both to work on a tracker of tasks and deadlines, with working days left and days past due that change every morning (Lesson 85). For reporting, COUNTIFS counts entries between two dates (Lesson 37), a PivotTable groups dates into years, quarters and months (Lesson 61), and Power Query turns text dates into real ones with year, month and fiscal year columns (Lesson 159, Lesson 167). The 12 lessons on this page come to 1 hour 11 minutes, short enough to finish in a week of lunch breaks and use on the next return.
Which dates does a government officer's work turn on, and which function handles each?
Seven questions come up again and again, and The Complete Excel Course with AI Integration has an answer for each. How long has this been open? Subtract the date from TODAY (Lesson 39). How many working days remain? NETWORKDAYS, which counts the working days between two dates (Lesson 74, Lesson 85). When does this month close? EOMONTH (Lesson 74). Which month does an entry belong to? MONTH, with IF to flag a chosen month (Lesson 39). How many arrived in a period? COUNTIFS with a start and an end date (Lesson 37). What does the year look like by quarter and month? A PivotTable's date grouping (Lesson 61). Which financial year is it in? Power Query's fiscal year columns (Lesson 167). Behind all seven sits one fact the date lessons keep returning to: Excel stores a date as a number of days, which is why dates can be subtracted, counted and grouped at all.
How many days has each application been waiting, and can that figure update itself every morning?
Yes: subtract the date received from TODAY and the count refreshes itself each day, as The Complete Excel Course with AI Integration shows in Lesson 39. The formula returns the days since each entry, and one detail catches most people out: Excel may display the answer as a date, so the lesson switches the cell's format to Number to show the plain count. TaskFlow builds the same idea into its columns (Lesson 85): working days left on each task, and days past due for anything late, left blank while a task is still within its deadline. Because TODAY moves on every day, the figures change each morning without anyone touching them, which is what makes the register a live queue rather than a snapshot. Sorted largest first (Lesson 20), the longest-waiting applications rise to the top of the list before the working day begins.
Should a deadline count calendar days or working days, and does the course teach both?
Both are taught, because different rules count differently, and The Complete Excel Course with AI Integration gives each its own formula. Calendar days are a subtraction: a deadline minus TODAY, formatted as a number, gives the days left including weekends, the daysUntilDue column of Lesson 74, and one date minus another gives the days between them (Lesson 39). Working days come from NETWORKDAYS, which counts the working days between two dates and leaves weekends out (Lesson 74). TaskFlow uses it for the working days planned for each task, and again from TODAY to the due date for the working days left (Lesson 85). Which one a register needs depends on how its time limits are written: a limit stated in working days calls for NETWORKDAYS, one stated in plain days calls for a subtraction. Keep both columns side by side for a week and the gap between them, two days for every weekend crossed, shows anyone reading the file why the rule matters.
Our returns close at month end: can a formula find the last day of the month for each entry?
Yes: EOMONTH returns the last day of a date's month, and The Complete Excel Course with AI Integration uses it in Lesson 74 to set consistent month-end boundaries. Given a deadline and a zero, it hands back that month's final day, so every entry carries the date its month closes, whatever day it arrived. The result first appears as a serial number and the lesson gives it a custom format, a reminder that EOMONTH returns a real date to be shown however you like. From there, a subtraction gives the days left before the month's return closes, and COUNTIFS with two date conditions counts what falls inside the month (Lesson 37). MONTH returns the month's number (Lesson 39), while a custom format such as MMM, applied to the date itself, shows the month's name. One function, used the same way across a register, ends the arguments about which month a late entry belongs to.
Can a formula count the applications received between two dates, such as a reporting quarter?
Yes: COUNTIFS takes the same date column twice, once for on or after the start and once for on or before the end, and The Complete Excel Course with AI Integration builds exactly that in Lesson 37. The lesson counts one month's entries with two conditions on the date and gets zero, a result it treats as information: no activity in that period. Add a third condition, a district or a scheme, and the count narrows further, while SUMIFS does the same for amounts. For a quick flag without counting, MONTH inside IF marks each row Yes or No for a chosen month (Lesson 39). When the question is the whole year by quarter and month, a PivotTable groups the dates for you and switches between quarterly, monthly and daily views as levels are removed (Lesson 61). Keep the start and end of your reporting quarter in two cells, and every count follows the moment you change them.
Our return came back with five-digit numbers where the dates should be and hashes in another column: is the data damaged?
Nothing is lost: the date is still there, shown in the wrong way, and The Complete Excel Course with AI Integration explains both symptoms. Excel stores every date as a number, a count of days, which is why date arithmetic works at all (Lesson 39); a cell formatted as General or Number shows that count instead of the date. Format Cells, then Date, or the short-date shortcut, brings the calendar date back (Lesson 6). Lesson 74 meets the same effect when EOMONTH's answer first appears as a serial number and needs a format. A column of hashes is the other common sight: the date is fine, but the column is too narrow to show it, and AutoFit Column Width cures it with a double-click (Lesson 7). So a five-digit number in a return is usually a formatting slip, not a data error, and takes seconds to put right once you know what you are looking at.
A district's return has dates typed every which way, some as text: can they become real dates?
Power Query fixes them for good, and The Complete Excel Course with AI Integration shows the whole routine on an export whose dates are a mess (Lesson 158, Lesson 159). Placeholders such as n/a and not a date are replaced first, along with an impossible date that would break the conversion; the column is then given a date type, and any value that still fails becomes an empty cell instead of an error. Year, month name, month number, month start and year-month columns follow, ready for reports by period. The steps are saved with the query, so next month's file is put right on refresh. On the worksheet, strange answers are the giveaway: Lesson 74 names a date read as text as the usual cause of an odd result, and an entry that refuses to sort or subtract like its neighbours is the one to check. Fix the dates at the source, and every count and deadline built on them can be trusted.
Our financial year does not start in January: can each entry be labelled with its financial year and quarter?
Yes, and The Complete Excel Course with AI Integration gives two routes. For returns that arrive as files, Power Query adds fiscal year columns inside the query (Lesson 167), beside the year, month and year-month columns of Lesson 159, so every row is labelled again on each refresh. On the worksheet, MONTH returns each entry's month number (Lesson 39), and an IFS formula of the kind built in Lesson 32 turns that number into the quarter of your own year, testing the months in order and stopping at the first match. A COUNTIFS or a PivotTable on the new column then reports by financial quarter instead of calendar quarter. Set the rule once in a column of the register, and every new entry lands in the right period without anyone working it out by hand, which is exactly where period-end returns tend to go wrong.
My tracker shows different figures each morning: how do I freeze them for the return I submit?
Paste them as values once the return is final, a step The Complete Excel Course with AI Integration teaches in its clean-up lessons. TODAY and NOW recalculate whenever the workbook does (Lesson 39), and TaskFlow's working days left and days past due move on each morning (Lesson 85): ideal for a working tracker, wrong for a figure already reported. Copy the finished columns and use Paste Special, Values (Lesson 22), on a copy of the sheet, and the numbers stand still while the live tracker carries on. NOW earns its place in the live version as an as-of stamp, showing when the figures were calculated, though it too moves on. The TaskFlow lesson also points out that a file opened on a later day shows later results, so a saved copy with pasted values is the record to keep beside the return you sent.
Can Excel work out a date a set number of days ahead, such as a follow-up or a review date?
Yes: add the number of days to the date, and The Complete Excel Course with AI Integration does it in Lesson 39, where each sale's follow-up date is simply the sale date plus ten. Because a date is a count of days, any calendar-day offset works the same way: a review date thirty days after receipt, or a reminder a week before a deadline by subtraction. EOMONTH (Lesson 74) handles the month-based version, the last day of the month a date falls in, the usual cut-off for a monthly return. Adding whole months or a count of working days takes functions outside the lessons, EDATE and WORKDAY; what the course gives instead is the check that matters, NETWORKDAYS counting the working days between two dates (Lesson 74), so a proposed deadline can be tested against the working days it really allows. Each of these sits in a table column and fills itself in for every new case.
Our monthly table lists April, August, December in that order: how do I get the months in calendar order?
Give every month a number as well as a name, as The Complete Excel Course with AI Integration does in Power Query (Lesson 159): the lesson adds MonthName and MonthNumber side by side and explains that without the number, Excel sorts months alphabetically. On the worksheet, the cleanest fix is to keep a real date and show its month's name with a custom format such as MMM or MMMM (Lesson 39); the cell still holds a date, so it sorts in calendar order. A PivotTable that groups a date field by months keeps calendar order by itself (Lesson 61). For a label inside a report or a key, TEXT turns a date into a month-and-year name, as FinanceGuard's model does (Lesson 117). Typed month names are the root of the problem: build the name from a date, and the order looks after itself in every table, chart and summary that follows.
My days-left formula shows a strange date instead of a number of days: why?
Excel has guessed the wrong format for the answer, and The Complete Excel Course with AI Integration shows the quick fix. When a formula subtracts one date from another, or a date from TODAY, the result is a number of days, but Excel often formats it as a date, so a count of a few days appears as an odd date near the very start of its calendar. Lesson 39 meets exactly this and switches the cell to Number, and Lesson 74 does the same for its days-until-due column. The opposite slip happens too: a date that shows as a long number just needs a date format. The rule behind both is the one the date lessons rest on: dates are stored as numbers, and the format decides whether you see a count or a calendar date. Once that clicks, every odd-looking date result in a register takes seconds to read correctly and to fix.
Excel with AI
See the whole course.
The Complete Excel Course with AI Integration: 16 hours of video in 186 lessons, built around 14 industry-standard projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.
The same course
For another job, skill, goal, level, topic or comparison.
The course for this job
More skills for this job
- Formulas for government officers
- Lookups for government officers
- PivotTables for government officers
- Charts for government officers
- Dashboards for government officers
- Conditional formatting for government
- Data cleaning for government officers
- Data validation for government officers
- Excel tables for government officers
- Text functions for government officers
- Dynamic arrays for government officers
- Power Query for government officers
- Power Pivot and DAX for government
- Copilot in Excel for government officers
- ChatGPT for government officers