The Complete Excel Course with AI Integration

Excel date functions for payroll administrators

Payroll runs to dates: where the period ends, the working days in a joiner's first month, when timesheets are due, the day a leaver goes. Counted off a desk calendar, one slip pays someone wrongly. The Complete Excel Course with AI Integration teaches the date functions that count them, on industry-standard projects, and the lessons gathered here serve a pay year: day counts and month ends, totals between two dates, period labels and a calendar of cut-offs.

Taught by Sagnik Bhattacharya and Virginia Thorn

The Complete Excel Course with AI Integration: Sagnik Bhattacharya and Virginia Thorn

What you will be able to do

At work, you will be able to:

  • Find the last day of any pay month with EOMONTH and the first day of the next by adding one, so period boundaries come from a formula, not a desk calendar.
  • Count the working days between two dates with NETWORKDAYS for a leave request, a joiner's first part-month or a leaver's last one.
  • Measure days in post, days to a cut-off and days past a deadline by subtracting dates, with TODAY keeping each count current.
  • Count and total timesheet lines between a period's first and last date with COUNTIFS and SUMIFS, and read a zero as a missing timesheet.
  • Flag timesheet lines dated outside the period being paid with IF and MONTH, so none slips into this run's totals unseen.
  • Turn a period code holding a year and a month into a true date and a short month label with DATE and TEXT.
  • Run the payroll calendar from a tracker that counts the working days left to each cut-off and the days past due on any that slip.
  • Find dates held as text by setting COUNT against COUNTA on the date column, before a day count goes wrong.

Projects

What you will build.

The course has 14 industry-standard projects. These four matter most here.

  • Project 07

    TaskFlow

    One sheet that shows what is done, what is late and what is urgent.

    Made for tracking project tasks, it becomes your payroll calendar: each cut-off as a row with its start and due date, working days planned and left counted with NETWORKDAYS from TODAY, days past due the moment a deadline slips, and a timeline that lays every step against the dates.

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    An HR analytics workbook whose date sheet brings in EOMONTH and NETWORKDAYS: a deadline's month end, the days until it and the working days between two dates, the very counts behind a joiner's or a leaver's part-month pay.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    A budget vs actual project whose model turns the year and month inside each key into a month label with LET, DATE and TEXT, the same move that makes a period code from your payroll export readable.

Tap or pinch to zoom in, drag to move around. Click or scroll to zoom in, drag to move around.

  • Project 03

    Sales Goal Tracker

    A sales tracker where dates first do arithmetic: days since each sale with TODAY, the month of a date with MONTH, a follow-up date by plain addition, and COUNTIFS with two date conditions that counts one month's rows, the same test that gathers a pay period's lines.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 16 of them, 1 h 31 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 35 SUM, COUNT and COUNTA in Excel

Start at Lesson 35 if you can already write SUM and IF: the date work rests on counts and totals with conditions, and the Sales Goal Tracker is open from there. New to formulas? Begin at Lesson 28, where comparisons start on a small sheet of students' marks; first time in Excel at all? Lesson 1 opens the course from the very first spreadsheet. Already writing SUMIFS? Go to Lesson 39, then Lesson 74, where EOMONTH and NETWORKDAYS begin.

16 of 186 lessons · 1 h 31 min

04 Essential formulas and functions (IF, SUMIF and more) 5 of 13 lessons · 29 min On the Sales Goal Tracker: COUNT over a date column, where a shortfall against COUNTA means dates held as text; SUMIF, COUNTIF, SUMIFS and COUNTIFS, the last pair with two conditions on the date column to count one month's rows; the function library searched by purpose; then TODAY, NOW, MONTH and date arithmetic for day counts, the month a date falls in and dates a set number of days on, with the MMM and MMMM formats that show a date's month name.
  1. 35 Start here SUM, COUNT and COUNTA in Excel COUNTA, unique counts and completeness checks 4 min
  2. 36 SUMIF and COUNTIF in Excel Conditional sum and count with one criterion 8 min
  3. 37 SUMIFS and COUNTIFS in Excel Sum and count with multiple criteria 7 min
  4. 38 The Excel function library Insert Function dialog and Formula AutoComplete 5 min
  5. 39 Date and time functions in Excel TODAY, NOW, MONTH and date arithmetic 6 min
08 Advanced Excel functions: lookups, text and arrays 1 of 12 lessons · 5 min The date sheet of the PeopleInsight HR workbook: days until a deadline counted from TODAY, EOMONTH for the last day of a date's month, and NETWORKDAYS for the working days between a start date and a deadline, with the warning that an odd result usually means a date read as text.
  1. 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
09 Project: task automation with data validation and forms 9 lessons · 49 min TaskFlow, a project tracker that payroll can run its calendar on: drop-downs for status and priority, highlighting for overdue and completed rows, a Gantt chart timeline (the lesson's title: build a project timeline with conditional formatting), data bars and icons, working days planned, left and past due from NETWORKDAYS and TODAY, sheet protection and a test that proves the counts recalculate.
  1. 79 TaskFlow project tracker in Excel Overview of the task tracker dashboard 4 min
  2. 80 Designing a task tracker in Excel TaskFlow layout, columns and headers 5 min
  3. 81 Data validation in Excel Status and priority drop-down lists in TaskFlow 8 min
  4. 82 Conditional formatting in Excel Highlight overdue and completed tasks 8 min
  5. 83 Gantt chart in Excel Build a project timeline with conditional formatting 6 min
  6. 84 Data bars and icon sets in Excel Visual priority and progress in TaskFlow 6 min
  7. 85 NETWORKDAYS and TODAY in Excel Days remaining and task deadlines in TaskFlow 5 min
  8. 86 Protect a sheet and lock cells in Excel Secure the TaskFlow tracker workbook 4 min
  9. 87 Testing an Excel task tracker Stress test TaskFlow with sample data 3 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) 1 of 10 lessons · 8 min FinanceGuard's model: LET with LEFT, MID, DATE and TEXT turns the year and month packed into each key into an MMM-YY label. The keys come from a budget; a payroll export's period code takes the same formula.
  1. 117 Budget vs actual model in Excel SORT, UNIQUE, VSTACK, LET, TEXTSPLIT, SUMIFS 8 min

Instructors

Who teaches it.

Virginia Thorn smiling at the camera, dark hair tied back, wearing a navy top.

Instructor, Excel with AI

Virginia Thorn

Emmy Award winner. Teaches Excel with AI at Coding Liquids.

Questions

Asked before starting.

Excel date functions for payroll administrators: what does each one do in a pay run, and where can I see them worked through with examples?

Each one answers a date question that every pay run asks, and The Complete Excel Course with AI Integration from Coding Liquids works them through on industry-standard projects, not on a reference list. EOMONTH tells you where a monthly period ends, and one day later is where the next begins. NETWORKDAYS says how many working days a joiner's first month, a leaver's last one or a leave request covers. TODAY keeps the days to the timesheet cut-off counting down by itself. MONTH, inside IF, separates a late line from last period from this period's own, while SUMIFS and COUNTIFS with two date conditions total the hours that fall inside the period. DATE and TEXT turn a period code into a month a payslip can print. Each example is built in a project file, a sales tracker through to TaskFlow, set up on this page as a payroll calendar, and the 16 lessons add up to 1 hour 31 minutes.

Can Excel give me each pay month's last day, and the first day of the next, without a calendar on the desk?

Yes: EOMONTH returns the last day of any date's month, and adding one to it gives the first day of the next. The Complete Excel Course with AI Integration teaches EOMONTH in Lesson 74, where the month end of each deadline appears beside it and a custom number format shows its month, and the adding comes from Lesson 39, which moves a date ten days on with a plain plus sign, because Excel keeps every date as a number. In a payroll workbook that pair fixes the edges of a monthly period from any date inside it: a joiner's start date gives the end of their first month, and a leaver's final day gives the month their last pay belongs to. Short months and leap years come out right with no thought at all, which is exactly where a hand-typed list of dates slips.

A leave request runs across a weekend: can Excel count only the working days it uses?

Yes: NETWORKDAYS returns the number of working days between two dates, weekends left out, which is the figure a leave deduction or a holiday balance needs. The Complete Excel Course with AI Integration teaches it twice. Lesson 74 counts the working days between a start date and a deadline on the PeopleInsight HR workbook, and Lesson 85 builds the same function into TaskFlow as working days planned on every row. Give it the first and last day of a request and it returns the days to take off the balance; add your list of public holidays and those days drop out too. With SUMIFS from Lesson 37, each person's approved requests then add up to the days taken so far this leave year, ready to set against their entitlement before the pay run relies on the figure.

Working days or calendar days: can my workbook pro-rate a leaver's last month either way?

Yes, both counts come from functions this page covers, so the workbook follows whichever basis your pay policy names. Calendar days need two dates and a subtraction: EOMONTH from Lesson 74 gives the month's last day, and the leaving date minus the month's opening day, plus one, gives the days in post that month, the date arithmetic of Lesson 39. Working days need NETWORKDAYS twice, once up to the leaving date and once across all of that month, and dividing the first count by the second gives the share of the monthly pay that is due. The Complete Excel Course with AI Integration builds these counts on HR and task dates rather than pay records, and the arithmetic holds on yours unchanged. Run both for a sample leaver and the two shares rarely agree, which is why a formula that shows its method beats a figure from a calculator.

A late timesheet carries last month's dates: can a formula flag the lines that fall outside the period being paid?

Yes, and The Complete Excel Course with AI Integration teaches the exact test. Lesson 39 ends with IF wrapped round MONTH, answering Yes or No for whether each sale's date falls in January; point the same pair at your pay month and every timesheet line gets its answer before any total is struck. For a weekly or fortnightly period, AND from Lesson 33 tests a date against the period's first and last day at once, and EOMONTH from Lesson 74 supplies the last day of a monthly one. FILTER, taught in Lesson 76 for a modern Excel, then lists only the lines outside the period, so the late claims sit together for a decision: paid now as arrears or held for the run they belong to. That call stays yours; the formula makes sure no stray line reaches a total unseen.

Can a count between the period's first and last day show who has no timesheet lines at all?

Yes: COUNTIFS with an employee's ID and two date conditions counts that person's lines inside the period, and a zero is a missing timesheet. The Complete Excel Course with AI Integration builds that count in Lesson 37, where COUNTIFS with two conditions on the date column counts a month's sales and comes back with zero, and the lesson's point is that a zero is a finding in itself: nothing was recorded in that period. Run the count down your list of active employees, taken from the employee master rather than from the timesheet, and every zero is a person to chase before the cut-off instead of after payday. SUMIFS with the same two date conditions totals each person's hours in the next column, so someone with lines but too few hours stands out as well. Lesson 35 adds completeness checks with COUNTA for the rows themselves.

Before a day count runs, how can I tell how many dates in the export are really text?

With a count: COUNT takes in only true dates, so set against COUNTA on the same column, any shortfall is the number of dates held as text. Excel stores a real date as a number, the fact The Complete Excel Course with AI Integration builds its date arithmetic on in Lesson 39, and a date that arrives from another system as text can look identical in the cell yet refuse to subtract. Lesson 35 runs COUNT over the date column of the Sales Goal Tracker, and Lesson 74 gives the rule of thumb that an odd result from a date formula usually means a date read as text. Catch them before the run, not after: one text date in a leaver's row turns a NETWORKDAYS count into an error on the day it matters. For an export that brings the same fault every period, Power Query sets the data type at each refresh (Lesson 158).

Payslips and pay reports want the month written as a word, not as a code or a raw date: which functions and formats give that?

Two tools, and The Complete Excel Course with AI Integration teaches both: a custom number format and the TEXT function. A format changes how a date looks while leaving the date itself alone: Lesson 39 shows the custom formats MMM and MMMM, which print the month as Jan or January, and a date dressed that way still sorts, subtracts and groups as a date, which suits a register or a summary. TEXT goes further and writes the month into a cell of its own as words, the form a payslip heading or a joined label needs. When the export gives only a period code, DATE first builds a true date from its year and month: FinanceGuard, the budget vs actual project, does exactly that in Lesson 117, with LEFT, MID, DATE and TEXT inside LET producing an MMM-YY label for every key. Keep the date for anything that calculates, and the words for anything a person reads.

If the payroll file uses TODAY, will a pay run I signed off show different figures when I reopen it?

Yes, so where TODAY sits in the workbook matters. The Complete Excel Course with AI Integration shows in Lesson 39 that NOW refreshes whenever the workbook recalculates, a live stamp of when the figures were read, and Lesson 85 notes that a tracker built on TODAY gives results that depend on the day it is opened. That is exactly right for a calendar of cut-offs, where the days left should shrink each morning, and wrong for a closed pay run, where a leaver's day count must stay as it was paid. So a payroll workbook splits the two: TODAY in the deadline tracker, and in the pay calculations a cell holding the period's own end date, typed once and read by every formula. Lesson 87 then proves the live counts behave: move a due date by a day and Days Past Due moves by exactly one.

How do I build a payroll calendar in Excel that counts the working days left before each cut-off?

On TaskFlow, the tracker The Complete Excel Course with AI Integration builds from Lesson 79 to Lesson 87: made for project tasks, it serves as a payroll calendar once each row is a deadline. Timesheet cut-off, overtime approval, input to the payroll system, payslips out, the payment file: each takes a start date, a due date, an owner and a status picked from a drop-down. NETWORKDAYS and TODAY then work out working days planned, working days left and days past due (Lesson 85), conditional formatting picks out overdue and completed rows (Lesson 82), and the lesson on the Gantt chart, titled build a project timeline with conditional formatting (Lesson 83), lays each step's start and length against the dates. Lock the sheet against stray edits (Lesson 86) and copy the rows down for the next period: Lesson 87 proves the formulas carry into a new row.

We run weekly and fortnightly payrolls beside the monthly one: do these date lessons fit every cycle?

Yes, because the functions measure between any two dates, not only month ends. The Complete Excel Course with AI Integration teaches date arithmetic in Lesson 39, so a weekly period ends six days after it starts, a fortnightly one thirteen days after, and the next period starts the day after the last one ends. NETWORKDAYS from Lesson 74 counts the working days between whatever two dates a period has, and SUMIFS and COUNTIFS with two date conditions (Lesson 37) total and count the lines that fall between them, so one set of formulas serves every frequency once each period's dates sit in two cells. EOMONTH stays with the monthly payroll, where month ends matter. Keep a small table of each cycle's start and end dates, and every check on this page reads its dates from that table rather than from a list typed into each formula.

Can a formula tell me who has passed a qualifying period of service, counted from the start date?

Yes: TODAY minus a start date gives the days in post, and a comparison turns that count into an answer. The Complete Excel Course with AI Integration teaches the subtraction in Lesson 39, where TODAY minus a sale's date shows the days since the sale once the cell is formatted as a number, and Lesson 74 counts the days to a deadline the same way. Divide by seven for weeks, compare with your qualifying period, and IF from Lesson 30 answers Eligible or Not yet, while IFS from Lesson 32 handles bands, such as a holiday entitlement that grows with service. The date a person qualifies is simply the start date plus the qualifying days. The old DATEDIF function, which gives whole years and months, has no lesson here; for thresholds counted in days or weeks, the day count does the job directly.

Our payroll software already calculates pay: what are Excel date functions for, then?

For everything around the calculation: the inputs that go in, the checks on what comes out and the calendar that keeps the run on time. Payroll software applies the rules it is given, while a payroll administrator still settles how many working days a joiner's first month holds, which timesheet lines belong to this period and whether every cut-off was met. The Complete Excel Course with AI Integration teaches the formulas for each: NETWORKDAYS and EOMONTH for the counts (Lesson 74), COUNTIFS and SUMIFS with date conditions for the period's lines (Lesson 37) and TaskFlow's live day counts for the deadlines (Lesson 85). A figure from the software that you can recompute in a cell beside it is a figure you can stand behind when someone queries their pay. Payroll law and the software itself sit outside the course; the Excel that checks them is in it, practised in industry-standard projects designed after talking with people from many different industries.

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.