The Complete Excel Course with AI Integration
Excel date functions for compensation analysts
A pay cycle runs on dates: who joined before the cut-off, what share of the year a new joiner worked, when an increase takes effect and how many working days managers have left to submit. The Complete Excel Course with AI Integration teaches the date functions behind each on industry-standard projects, and this page picks out the lessons in the order a cycle needs them: formats and date arithmetic, counts between two dates, EOMONTH and NETWORKDAYS, then Power Query's date columns.
Taught by Sagnik Bhattacharya and Virginia Thorn
What you will be able to do
At work, you will be able to:
- Measure each employee's days of service, or the days since their last increase, by subtracting the date from one locked cycle date, and know when TODAY belongs in the formula instead.
- Flag who joined after the eligibility cut-off, or whose hire month matches the review month, with IF tests on dates and on MONTH.
- Turn an approval date into the first day of the following month with EOMONTH plus one, so every increase takes effect on the date payroll expects.
- Show how many working days managers have left before recommendations are due, and how far a late step has slipped, with NETWORKDAYS and TODAY.
- Count the joiners between two dates with COUNTIFS and total their salaries with SUMIFS, the population a cycle has to pro-rate.
- Group effective dates by year, quarter and month in a PivotTable, and line staff up by hire date with SORTBY.
- Give an HR extract true dates plus year, month and plan-year columns in Power Query, rebuilt on every refresh.
Projects
What you will build.
The course has 14 industry-standard projects. These four matter most here.
-
Project 06
PeopleInsight HR workbook
Employee data joined across sheets with one formula.
An HR analytics workbook of employee records, it gives dates a sheet of their own: days to a deadline from TODAY, month ends from EOMONTH and working days from NETWORKDAYS, then the whole employee table sorted by hire date with SORTBY, the same moves a pay file makes on its own date columns.
-
Project 07
TaskFlow
One sheet that shows what is done, what is late and what is urgent.
Built to track a team's tasks, it lends a merit timetable its live date columns: working days planned and left from NETWORKDAYS, days past due counted from TODAY, blanks for whatever is on time, and a test row that proves the figures move as the days do.
-
Project 12
SalesFusion
A sales report that refreshes itself from a folder of files.
A Power Query project on a folder of sales exports, it settles dates once for every file: true date types, placeholders and impossible dates cleared, year, month and year-month columns, then fiscal year columns, the treatment an HR extract needs before pay is reported by plan year.
-
Project 03
Sales Goal Tracker
A sales tracker built up from IF to COUNTIFS, it is where a date first works as a number in a formula: days since each sale, the month pulled out with MONTH, a follow-up date ten days on, a flag on one month's rows and a count held between two dates.
Lessons
The lessons that matter, in course order.
The Complete Excel Course with AI Integration has 186 lessons. This page picks out 11 of them, 1 h 1 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, the course's first full lesson on dates, if you already write IF and SUMIFS: it shows that a date is a number, and every later lesson here builds on that. Unsure why a date shows as hashes or as a five-digit number? Take Lesson 6 first, and Lesson 37 for counts between two dates. New to Excel altogether? Begin at Lesson 1. Already at home with TODAY and EOMONTH? Go straight to Lesson 85 for live deadline columns and Lesson 158 for dates fixed in Power Query.
11 of 186 lessons · 1 h 1 min
01 Microsoft Excel fundamentals: building a foundation from scratch How Excel shows a date: the Date formats in Format Cells and the short-date shortcut, set on a budget's Date column, and the hashes that mean a column is too narrow for its dates. Hire, increase and effective dates take the same formats, so every date in a pay file reads one way.
- 6 Number formatting in Excel Currency, date and percentage formats for a budget 5 min
04 Essential formulas and functions (IF, SUMIF and more) Dates inside formulas, on the Sales Goal Tracker: COUNTIFS with two conditions on one date column to count a single month, Insert Function searched by purpose for the function a task needs, then TODAY minus a date for days elapsed, MONTH with the MMM and MMMM formats, a date ten days on, NOW as a live stamp and IF on a month. The rows are sales; a hire or effective date behaves the same.
- 37 SUMIFS and COUNTIFS in Excel Sum and count with multiple criteria 7 min
- 38 The Excel function library Insert Function dialog and Formula AutoComplete 5 min
- 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 date field in a PivotTable grouped by itself into years, quarters and months, with levels removed to switch between quarterly, monthly and daily views. The lesson groups order dates; the same grouping shows when increases took effect or when today's staff joined.
- 61 PivotTable summaries in Excel Sales by product category and grouping by date 4 min
08 Advanced Excel functions: lookups, text and arrays Date calculations on the PeopleInsight HR workbook: days until a deadline with TODAY, the last day of a month with EOMONTH, working days between two dates with NETWORKDAYS, a custom day-first date format, and the fix when Excel has read a date as text.
- 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
08 Advanced Excel functions: lookups, text and arrays SORTBY puts the employee table in hire date order and re-sorts it whenever the data changes, with hire dates that arrive as bare numbers given the Date format: a seniority list built by formula rather than by hand.
- 77 SORT and SORTBY in Excel Sort data dynamically with formulas 4 min
09 Project: task automation with data validation and forms Live deadline columns in TaskFlow: working days planned between start and due date, working days left counted from TODAY, and days past due with a blank for anything still on time. Give each step of a review its own row and the timetable keeps itself current.
- 85 NETWORKDAYS and TODAY in Excel Days remaining and task deadlines in TaskFlow 5 min
15 SalesFusion: advanced data tools and a Power Query modelling system Dates fixed once in Power Query: data types set, placeholders and an impossible date cleared before the conversion so it cannot fail, then year, month name, month number, month start and year-month columns added for reporting by period.
- 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 in a folder query that rebuilds on every refresh: the way an extract learns which plan year each row belongs to when the plan year does not follow the calendar.
- 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.
Every merit cycle starts from hire dates: where does a compensation analyst learn the Excel date functions that turn them into tenure, eligibility and effective dates?
In The Complete Excel Course with AI Integration from Coding Liquids, where dates are taught as working formulas on industry-standard projects, each designed after talking with people from many different industries. The 11 lessons on this page, 1 hour 1 minute in all, give a review cycle every date skill it leans on: days of service from one subtraction against TODAY or a fixed date (Lesson 39), EOMONTH for month-end boundaries and NETWORKDAYS for working days (Lesson 74), COUNTIFS held between two dates (Lesson 37), PivotTables that group dates by year, quarter and month (Lesson 61), and Power Query columns for year, month and fiscal year (Lesson 159, Lesson 167). The lessons date sales, tasks and employee records. Your hire, promotion and last-increase dates follow exactly the same rules, so each formula moves across to your pay file unchanged.
Should tenure and eligibility be measured from TODAY or from the cycle's effective date?
From the effective date, typed once in its own cell, for anything that decides pay. The Complete Excel Course with AI Integration teaches both halves of that choice. TODAY minus a date gives the days elapsed (Lesson 39), and the TaskFlow lessons show its catch: TODAY moves every day, so the same file gives different answers depending on when it is opened (Lesson 85). That suits a deadline tracker and does not suit an eligibility list that has to match what was approved. Point every formula at a cycle date cell instead, locked with an absolute reference (Lesson 10), and the whole sheet answers as of that date, today and in an audit months later. Change the one cell and you can rerun last year's cycle or model the next one. Keep TODAY for what really is live, such as the days left before submissions close.
Some staff had an off-cycle increase a few months ago: can Excel flag them before the merit run?
Yes, with one subtraction and one test, both taught in The Complete Excel Course with AI Integration. Take the last-increase date from the cycle's effective date and you have the days since that increase, the date arithmetic of Lesson 39, where the days since each sale are worked out the same way. An IF formula then compares that figure with your policy's minimum, as the IF practice lesson compares a sale with its quota (Lesson 30), and returns a label such as Review or Eligible. Keep the minimum in its own locked cell, so a policy change is one edit rather than a hunt through formulas. The same pattern answers time since promotion or time in grade: any date your HR system holds becomes a number of days, and any rule about it becomes a column you can filter, count with COUNTIF and explain to a manager.
How do I work out what share of the review year a new joiner actually worked?
With three pieces of date arithmetic that The Complete Excel Course with AI Integration teaches, and no special function. Their time in the period starts at the later of their hire date and the period's first day: because Excel stores a date as a number (Lesson 39), MAX picks the later of two dates exactly as it picks the larger of two amounts (Lesson 9). Subtract that start from the period's last day, add one so both ends count, and divide by the days in the whole period; formatted as a percentage (Lesson 11), that is the share to apply to an increase or a bonus target. YEARFRAC, which many date guides use here, has no lesson in the course, and the subtraction does the same job in plain view. For anyone hired before the period began, the same formula simply returns a full share.
Increases take effect on the first of the month after approval: can Excel work that date out on every row?
Yes: EOMONTH gives the month end, and one day more is the first of the next month. The Complete Excel Course with AI Integration teaches EOMONTH in Lesson 74 on the PeopleInsight HR workbook, where it returns the last day of the month a deadline falls in, a bare serial number until a format is applied. Add one to that month end, the same date arithmetic as the follow-up date ten days on in Lesson 39, and every approval date becomes its effective date, down the whole column at once. The function's second argument, zero in the lesson, counts whole months forward or back, so the month end before a date, or two months after it, comes from the same formula. Payroll cut-offs, the month an increase first reaches a payslip and the last day of a review period all fall out of that one function.
Managers have a deadline for their recommendations: can the merit file count the working days they have left?
Yes, and the count updates itself every morning. NETWORKDAYS counts the working days between two dates, leaving weekends out, and The Complete Excel Course with AI Integration uses it twice: first on a small sheet of HR tasks (Lesson 74), then in TaskFlow, where each task gets working days planned, working days left from TODAY and, once the due date has passed, days past due, with a blank for anything still on time (Lesson 85). Give each step of your timetable a row (band review, manager submissions, calibration, final sign-off) and the same columns show which step is running short. The test lesson that follows moves a due date on by a day and watches the past-due count drop by one (Lesson 87), the proof that the formulas recalculate rather than sitting there as typed numbers.
How many people joined between the eligibility cut-off and the effective date, and what do they earn?
Two formulas answer it, and The Complete Excel Course with AI Integration teaches both in Lesson 37. COUNTIFS accepts two conditions on the same date column, one for the start of a window and one for its end, and the lesson uses exactly that to count a single month of sales, where a count of zero turns out to be an insight of its own. Point the two conditions at your cut-off and effective date cells and you have the late joiners; SUMIFS with the same pair over the salary column gives their combined pay, the figure a pro-rating decision is costed on. Add a third condition for a grade or a department and the count narrows again, with no helper column. Because the dates sit in cells rather than inside the formula, next cycle needs two new dates and nothing else.
Why does a hire date sometimes show as a five-digit number, and a day count show as a date?
Because Excel keeps every date as a number of days and shows it through a format, and The Complete Excel Course with AI Integration makes that plain early. Give a column a Date format and it reads as dates (Lesson 6); subtract two dates and Excel may wrap the answer in a date format, so the lesson switches it to Number to show the count of days (Lesson 39). It happens the other way round too: EOMONTH returns a bare serial number until a format is applied (Lesson 74), and hire dates sorted by SORTBY arrive as numbers until the Date format goes on (Lesson 77). A custom day-first format sets dates out the way your organisation writes them. When a date refuses to calculate at all, Excel has read it as text, and the HR date lesson shows the fix.
Some increases fall on the hire anniversary: can Excel flag whose anniversary month is coming up?
Yes, with MONTH and an IF test, the exact pairing The Complete Excel Course with AI Integration uses to flag one month's sales. In Lesson 39, MONTH pulls the month number out of each date and IF returns Yes or No depending on whether it matches; the custom MMM and MMMM formats then show the month by name. Swap the sale date for a hire date and the month for the one your review covers, and every employee whose anniversary falls in it is flagged in a column you can filter or count. A COUNTIFS on that flag by department, from Lesson 37, tells you how many anniversary increases each manager will be asked about. Service awards that fall on the anniversary take the same two functions, and the flag recalculates the moment the review month in its cell changes.
Off-cycle increases come through all year: can I see how many took effect in each month?
Yes: put the effective date into a PivotTable's rows and Excel groups it by year, quarter and month for you. The Complete Excel Course with AI Integration teaches the grouping in Lesson 61, where order dates fall into years, quarters and months by themselves and removing a level switches between quarterly, monthly and daily views. Add the employee ID to Values as a count and each month shows how many changes took effect; add the increase amount and it shows what they added to payroll. A slicer on department (Lesson 62) narrows the view to one manager's area. Set beside the merit cycle, the picture shows whether off-cycle money is spread evenly or bunched into the months before a review, exactly the kind of pattern a compensation analyst is asked to explain.
Bonuses run on a plan year that starts partway through the calendar: can each row of the extract say which plan year it belongs to?
Yes, inside Power Query, where the column is added once and rebuilt on every refresh. The Complete Excel Course with AI Integration adds fiscal year columns in Lesson 167, on a query that combines a whole folder of sales files, beside the year, month name, month number, month start and year-month columns built in Lesson 159. Before any of that, Lesson 158 and Lesson 159 give the date column a true type and clear the placeholders and impossible dates that would break the conversion, the same faults an HR extract can arrive with. Bring your extract in through Get Data, set the dates once, and every row carries its calendar month and its plan year for PivotTables and SUMIFS to read. Next cycle's extract runs through the same steps at a refresh, with nothing rebuilt by hand.
Tenure bands of under one year, one to three years and so on: can I build them without DATEDIF?
Yes, and exactly, by testing hire dates against boundary dates. The Complete Excel Course with AI Integration gives every piece. Type each band's boundary once in its own cell, such as the date one year before the effective date and the date three years before it, and lock those cells (Lesson 10). IFS then tests a hire date against them in order and returns the first band that fits, with TRUE as a final catch-all (Lesson 32); since a date is a number, an earlier date is simply a smaller one. Because the boundaries are real dates, a leap year can never push anyone into the wrong band. DATEDIF and YEARFRAC, the functions many tenure guides reach for, have no lesson in the course. SORTBY then lines everyone up by hire date (Lesson 77), the order a review of pay against service reads best in.
Market survey data has an effective date months behind ours: can Excel age it forward?
Yes: ageing is date arithmetic and one locked rate, and The Complete Excel Course with AI Integration teaches both. The gap between the survey's effective date and your own common date is one subtraction (Lesson 39); divided by the days in a year, it becomes the share of a year to age by. Multiply that share by your yearly ageing assumption, held in one cell and locked with an absolute reference (Lesson 10), add one, and apply the result to each market figure; percentages are covered in Lesson 11. Every survey in your file can carry its own effective date, so data cut at different times lines up to one date in a single column. Choosing the ageing rate is your judgement and not a lesson; the formulas that apply it consistently, and show their working to anyone who asks, are.
Our cycle opens in a few weeks: is that enough time to get these date skills into the merit file?
Comfortably: this path is 1 hour 1 minute of lessons, and the first formulas can go into your file the same day. The Complete Excel Course with AI Integration has days of service and month flags working by the end of Lesson 39, effective dates and working days by Lesson 74, and the live timetable columns by Lesson 85; the Power Query lessons can wait until the extract itself needs fixing. Each project comes with its files, so every result is checked against a working answer before it touches pay. Lifetime access keeps the lessons open for the next cycle's new question, the course page has free lessons to watch before you buy, and finishing the whole course earns a Certificate of Completion. With the instructor support plan, a question about your own pay file goes to the instructor in writing.
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 compensation analysts
- Lookups for compensation analysts
- PivotTables for compensation analysts
- Charts for compensation analysts
- Dashboards for compensation analysts
- Conditional formatting for comp analysts
- Data cleaning for compensation analysts
- Data validation for comp analysts
- Excel tables for compensation analysts
- Text functions for compensation analysts
- Dynamic arrays for compensation analysts
- Copilot for compensation analysts
- ChatGPT for compensation analysts