The Complete Excel Course with AI Integration

Excel formulas for payroll administrators

Every pay run rests on formulas: hours times rates, overtime above the contracted week, deductions, net pay, then totals that must tie back before anyone is paid. The Complete Excel Course with AI Integration teaches each of them on industry-standard projects, and this page picks out its formula lessons in the order a run needs them: arithmetic and locked rate cells, IF, IFS, AND and OR for pay rules, then COUNT, SUMIFS and dates for totals and checks.

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:

  • Build gross pay from hours, rates and an overtime multiple with arithmetic and brackets, then net pay as gross minus every deduction.
  • Keep each pay rule in a labelled cell, the overtime multiple or a contribution rate, locked with F4 so every row reads it and a policy change is one edit.
  • Pay overtime only on the hours above the contracted week with IF, and write two-condition rules, such as hours and an eligible grade, with AND and OR.
  • Turn banded rates, from shift premiums to tiered deductions, into IFS or nested IF formulas that test the highest band first.
  • Total gross pay, overtime and deductions by department, cost centre and pay period with SUMIF and SUMIFS, the period's dates as conditions, and count heads with COUNTIFS.
  • Prove a timesheet export before the run: COUNT against COUNTA for hours held as text, COUNTA with UNIQUE for the people on it, COUNTIF and MAX for entries that cannot be right.
  • Flag any pay that moved past a set tolerance since the last run, with a percentage change, IFERROR for new starters and IF with OR.
  • Work with pay dates: the days between two dates, the month of a pay date, a date some days on and a NOW stamp on the finished report.

Projects

What you will build.

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

  • Project 01

    Personal Budget Tracker

    Your first workbook: where the money goes each month.

    Built as a household budget, it rehearses the arithmetic of a payslip: income less spending gives savings the way gross less deductions gives net pay, one locked rate cell drives a whole column, and each line shows as a share of the total.

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

    Built to track salespeople against quota, its table holds the logic of a pay rule: a label on every row from one test, tiers that stop at the first true condition, a bonus flag that needs two conditions, and totals by region, product and month, the totals a register needs by department and period.

Lessons

The lessons that matter, in course order.

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

Where to start

Lesson 8 Basic maths in Excel

Begin at Lesson 8 if you enter hours and rates comfortably but have not yet locked a reference or written IF: every pay calculation on this page grows from there. If that arithmetic is second nature, join at Lesson 28, where overtime and banded rules start. Already fluent in IF? Lesson 34 opens the counts and conditional totals that check a register. Brand new to Excel? Lesson 1 starts with the very first spreadsheet.

20 of 186 lessons · 1 h 42 min

01 Microsoft Excel fundamentals: building a foundation from scratch 6 of 13 lessons · 21 min The arithmetic of a payslip, practised on a household budget: the four operations with brackets for hours times rate plus overtime, SUM and AutoSum with MAX, references locked with F4 so one rate cell serves every row, each figure as a percentage of a locked total, the #DIV/0!, #NAME? and #VALUE! errors and the IFERROR that manages them, then the file organised into an input sheet, a summary sheet and a sheet of notes. The rows are spending; the formulas are those of a pay calculation.
  1. 8 Start here Basic maths in Excel Add, subtract, multiply and divide with formulas 3 min
  2. 9 SUM and AutoSum in Excel Total income, expenses and savings with MAX 6 min
  3. 10 Relative vs absolute references in Excel Dollar signs and mixed references 3 min
  4. 11 Calculating percentages in Excel Each expense as a percentage of income 2 min
  5. 12 Common Excel errors and how to fix them DIV0, NAME, VALUE errors and IFERROR 4 min
  6. 13 Organising an Excel workbook Dashboard, transactions and notes sheets 2 min
02 Project: personal budget tracker 1 of 5 lessons · 4 min AVERAGE beside SUM, with the range chosen so only the right rows count: average overtime per head or average hours per shift once the rows are your employees.
  1. 14 SUM and AVERAGE in Excel Personal budget tracker totals and average expense 4 min
04 Essential formulas and functions (IF, SUMIF and more) 13 lessons · 1 h 17 min Pay rules and pay totals, written on the Sales Goal Tracker: TRUE and FALSE tests, IF, nested IF and IFS for bands, AND and OR for two-condition rules, SUM, COUNT and COUNTA with a completeness check, SUMIF, COUNTIF, SUMIFS and COUNTIFS with dates as conditions, the Insert Function dialog, date and time functions, and a Ninja Challenge to answer before the solutions. The data is sales against quota; the rules you write are your pay policy's.
  1. 28 Logical functions in Excel TRUE and FALSE comparisons for beginners 5 min
  2. 29 The IF function in Excel Pass or fail results with a single condition 3 min
  3. 30 IF function practice in Excel Categorise sales data with IF formulas 6 min
  4. 31 Nested IF and IFS in Excel Customer value tiers with nested IF 6 min
  5. 32 Nested IF and IFS in Excel Sales performance labels with the IFS function 5 min
  6. 33 AND and OR with IF in Excel Flag high-value deals with multiple conditions 8 min
  7. 34 SUM, COUNT and COUNTA in Excel SUM with FILTER and counting numbers with COUNT 7 min
  8. 35 SUM, COUNT and COUNTA in Excel COUNTA, unique counts and completeness checks 4 min
  9. 36 SUMIF and COUNTIF in Excel Conditional sum and count with one criterion 8 min
  10. 37 SUMIFS and COUNTIFS in Excel Sum and count with multiple criteria 7 min
  11. 38 The Excel function library Insert Function dialog and Formula AutoComplete 5 min
  12. 39 Date and time functions in Excel TODAY, NOW, MONTH and date arithmetic 6 min
  13. 40 Excel Ninja Challenge COUNTIF, SUMIF, IF, COUNTIFS, SUMIFS and IFS practice 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.

What Excel formulas are used in payroll, from gross pay to the checks before a run, and where can a payroll administrator learn them?

The formulas that take a run from hours to a checked register, and The Complete Excel Course with AI Integration from Coding Liquids teaches them in that order, on industry-standard projects designed after talking with people from many different industries. Hours times the hourly rate, plus overtime at its multiple, makes gross pay, and gross less deductions makes net (Lesson 8, Lesson 9). One rate cell, locked with F4, feeds every employee's row (Lesson 10). IF decides who earns overtime, IFS picks the premium band, and AND and OR join two conditions in one rule (Lesson 29 to Lesson 33). SUMIFS totals the register by department and pay period while COUNTIFS counts heads (Lesson 37), and COUNT, COUNTA and MAX prove the input before anyone relies on it. You write every one yourself in a working file, across 20 lessons and 1 hour 42 minutes, with a finished workbook beside you to check against. The lessons practise on a budget and on sales, and your register takes the formulas unchanged.

Can one formula pay overtime only on the hours above the contracted week?

Yes: IF compares the hours worked with the threshold and pays only the excess, and The Complete Excel Course with AI Integration builds that rule in short steps. Lesson 28 starts with a plain comparison that returns TRUE or FALSE, the test at the heart of every overtime rule. Lesson 29 wraps the test in IF, with one answer when it is true and another when it is false, and the lesson itself points out that the same logic runs payroll bonuses in real companies. Put hours minus the threshold in the true answer and zero in the false one, and overtime can never come out negative. Multiply the result by the hourly rate and by the overtime multiple held in a locked cell (Lesson 10), add basic pay with brackets setting the order (Lesson 8), and gross pay is a single formula that fills down the register. The lessons test marks and sales against a bar; your threshold and multiple come from your own terms of employment.

How do I get from gross pay to net pay without the formula going wrong as it fills down?

Subtract the deductions from gross pay and lock every cell the rows share; The Complete Excel Course with AI Integration teaches both on a budget built like a payslip. Lesson 9 works out Savings as Total Income minus Total Expense, which is net pay's own shape, gross minus deductions, and changes the income to prove that every result follows. Lesson 10 then shows the fault that ruins payroll columns: a formula multiplying each amount by one rate cell is right in the first row and wrong in every row below, until F4 locks the rate while the row stays free. That is a flat-rate deduction worked out for every employee from one cell. Press F4 again and it cycles through the mixed references, locking only the row or only the column. Lesson 11 divides each line by a locked total, so each deduction can also show as a share of gross. Check the first and the last row, and the column can be trusted.

Can IFS apply a banded rate, such as a shift premium or a tiered deduction, without a tangle of nested IFs?

Yes, and The Complete Excel Course with AI Integration teaches the nested IF it replaces too, so the older files you inherit stay readable. Lesson 31 builds a three-way result with one IF inside another and makes the point every band depends on: Excel stops at the first test that is true. Lesson 32 writes a longer ladder with IFS, which checks its conditions in order and returns the first match without layers of brackets, closing with TRUE to catch whatever the earlier tests missed. On a payroll sheet, return a rate or an amount instead of a label: a premium for each shift band, or a deduction rate for each band of earnings, then multiply it by the pay it applies to. Order the tests from the highest band down, or a low band written first will catch everyone. A slab scale that charges each slice of pay at its own rate needs a formula per slice, and statutory tax tables remain your own rules to enter.

Our overtime rule depends on hours and on grade: can one formula test both?

Yes, with IF wrapped round AND, and The Complete Excel Course with AI Integration builds exactly that shape in Lesson 33. There a deal counts as eligible for a bonus only when the sale passes its quota and the client gave an Excellent rating, so both tests must hold before the label appears. On a payroll sheet the pair becomes hours above the contracted week and a grade that qualifies for paid overtime, or a weekend shift and a role that earns the premium. OR covers rules where any single condition is enough: the lesson's risk alert fires on a poor rating or a small sale, the same shape as a flag for a missing timesheet or zero hours. The not-equal sign, <>, carves out an exception, as the lesson does for one region, so salaried staff can be kept outside an overtime rule in the same formula. The logic is a sales team's; the conditions you type are your pay policy's.

How do I total one pay period's overtime by department when the timesheet lines carry dates?

With SUMIFS, given the department and two date conditions, and The Complete Excel Course with AI Integration teaches every part of that formula. Lesson 36 starts with SUMIF and a single condition, and shows the fault that quietly breaks payroll totals: when the condition range and the sum range cover different rows, the answer looks plausible and is wrong. Lesson 37 moves on to SUMIFS, which takes the column to add first and the conditions after it in pairs, and ends by counting one month's sales with two conditions on the same date column. Put the first and last day of the pay period in two cells, set the conditions to on or after the first and on or before the last, add the department, and that period's overtime lands in one cell. Copy it across the departments and down the periods, and a whole cost table fills in. The lesson's zero for a month with no sales is worth remembering: a zero is an answer, not an error.

Before the hours go into the run, which formulas prove the timesheet export is complete?

Four counts and a maximum, and The Complete Excel Course with AI Integration teaches them as checks to run before any figure goes out. COUNT counts only cells holding numbers while COUNTA counts every filled cell (Lesson 34, Lesson 35), so run both down the hours column: any gap between them is hours held as text, which a SUM skips without a word. COUNTA wrapped round UNIQUE counts the distinct employee IDs on the export, to set beside the headcount you expect to pay; UNIQUE needs a modern Excel. COUNTIF with a threshold such as more than a set number of hours (Lesson 36) counts the entries that deserve a second look, and MAX from the AutoSum list (Lesson 9) shows the single largest entry, where an extra zero typed by mistake gives itself away. The lesson's own warning applies: select a column from its header and COUNTA counts the header too. Five cells, and the export is proved before payroll relies on it.

Can a formula flag anyone whose pay moved by more than a set percentage since the last run?

Yes, and The Complete Excel Course with AI Integration teaches every piece of that control. Bring both runs onto one row per employee with SUMIFS, keyed on the employee ID and the pay period (Lesson 37): unlike a lookup, it adds up every line a person has, so basic pay, overtime and allowances arrive as one figure for each run. Subtract the last run from this one (Lesson 8), divide the change by the last run's figure and show it as a percentage (Lesson 11), and wrap the division in IFERROR for new starters who have no earlier pay (Lesson 12). IF with OR then flags the row when the change rises above your tolerance or falls below its negative (Lesson 33), with the tolerance in one locked cell so it can be tightened in a sensitive month. Filter the flag column and the rows to explain before approval are all in front of you. The lessons use sales and budget figures; the control works on any two pay periods.

Simple Excel formulas for payroll: which should a new payroll clerk learn first, and how soon will they help?

Seven building blocks, in this order, and The Complete Excel Course with AI Integration teaches them in its first formula lessons. The four operations with brackets, for hours times rate and gross minus deductions (Lesson 8). SUM and AutoSum (Lesson 9). MAX, from the same lesson, for the largest figure on a sheet. AVERAGE, for a typical week's hours or a typical payslip (Lesson 14). Absolute references, so a rate cell stays put as a formula fills down (Lesson 10). Percentages of a total (Lesson 11). And IF, the first pay rule (Lesson 29). They are short lessons that fit a single sitting, each shown on a working file, and they help on the very next run: a checked total and a locked rate cell are worth having straight away. The whole path on this page takes 1 hour 42 minutes, and if Excel itself is new to you, Lesson 1 begins with the very first spreadsheet.

A free PDF lists payroll formulas: what does a course give me that a cheat sheet cannot?

Practice on real files, and the judgement a list leaves out. A cheat sheet shows each formula once, already written; The Complete Excel Course with AI Integration has you write it yourself in a workbook that needs it, from a starter file, with the finished file to compare against, so you learn why a rate cell is locked, why a band is tested from the top and why a total can look right and still be wrong. Lesson 38 shows how to find any function by what it does, through the Insert Function dialog and its Function Arguments window, so the next formula your payroll needs is never a hunt through a download. Lesson 40 then sets fifteen questions on IF, IFS, SUMIF, SUMIFS, COUNTIF and COUNTIFS to answer before you watch the solutions. The course page has free lessons to watch first, lifetime access keeps every lesson open afterwards, and completing the course earns a Certificate of Completion an employer can verify.

Our overtime rate has changed: how do I update a whole register without editing every formula?

Keep each rate in a cell of its own and point every formula at it, the way The Complete Excel Course with AI Integration builds its formulas from the start. Lesson 10 multiplies every amount by one rate cell locked with F4, so changing that cell recalculates the whole column at once. Lay out the overtime multiple, the contracted hours and each contribution rate the same way, as labelled input cells, and a change of policy becomes a single edit. Where rates form a grid, by grade down the side and band across the top, F4's mixed references let one formula fill the whole grid. Lesson 13 splits a workbook into data, summary and notes sheets, and the notes sheet is where each rule and the date it took effect can be written down, while Lesson 31 recommends naming the function in a column's header so the column is easy to revise or audit. A rate typed inside a formula is how one row keeps paying the old rate; rate cells end that.

New starters join the register every period: will my totals take them in?

Yes, when the register is an Excel table, and The Complete Excel Course with AI Integration shows why. Lesson 34 totals a column through a structured reference to the whole table column, and makes the point that this keeps the SUM connected when rows are added later, where a fixed range quietly leaves the newcomers out. Lesson 30 shows the other half: in a table, a formula typed once fills down by itself, so a new starter's gross pay, overtime and flags are worked out the moment their row exists, and the @ in the reference tells the formula to read its own row. SUMIFS and COUNTIFS written on table columns behave the same way, so next period's department totals and headcounts include everyone without a range edited by hand. A leaver's row, once removed, drops out of every total just as cleanly. The lessons add sales rows to a table; on your file each row is a person.

Can these formulas handle pay dates and clock times, such as the days in a pay period or the hours on a shift?

Dates fully, and clock times through the same arithmetic. The Complete Excel Course with AI Integration explains in Lesson 39 that Excel stores a date as a number, which is why one date minus another gives a count of days once the result is formatted as a number: days from a joining date to the period end, or between two pay dates. MONTH pulls the month out of a pay date for monthly totals, a date plus a number gives the date that many days on, NOW stamps a report with the moment it was produced, and IF can test the month to flag one period's rows. A clock time is held the same way, as a fraction of a day, so end minus start, times 24, gives decimal hours: no lesson works on a timesheet, but the subtraction and multiplication are the ones in Lesson 8. Working days for pro-rata pay come from NETWORKDAYS and EOMONTH, taught in Lesson 74 on HR dates, beyond this page.

If Copilot writes the overtime column on my pay register, what must I still check myself?

Its logic, its threshold and a few rows worked by hand, and The Complete Excel Course with AI Integration teaches all three checks. In Lesson 95, Copilot writes formula columns into a table and ChatGPT returns an edited copy of the file, and the rule is the same for both: preview the formula, read its logic and threshold before inserting it, then work one row out by hand and scroll to see that the flagged rows really meet the rule. Lesson 99 adds a short checklist for any AI result, from the data selected to an honest look at every number, because Copilot states a wrong answer as confidently as a right one. Knowing IF, IFS and AND from this page is what lets you spot an overtime test written the wrong way round. Before sending pay data to any outside service, follow your organisation's rules on personal data. The draft can come from AI; the sign-off on a payroll column stays with you.

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.