The Complete Excel Course with AI Integration

Excel date functions for merchandise planners

A merchandise plan is a calendar as much as a spreadsheet: order-by dates, delivery windows, receipt months, selling weeks and markdown points, most of them still counted off a wall planner. The Complete Excel Course with AI Integration turns them into formulas on industry-standard projects, and this page picks out its date lessons for a planner: date arithmetic, TODAY and EOMONTH, NETWORKDAYS, date conditions in SUMIFS and the date columns Power Query builds.

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:

  • Work back from each line's in-store date to the last day its order can be placed, and count the working days left to place it with NETWORKDAYS and TODAY.
  • Count the selling weeks a line has had since launch and the weeks left before the season ends, as the base for a weekly rate of sale.
  • Give every order its receipt month with EOMONTH, so orders placed sit in the right month of the open-to-buy.
  • Total units and count new lines between any two dates with SUMIFS and COUNTIFS, for a week, a month or a promotion.
  • Turn a five-digit serial or a period code from the planning system into a readable date with formats and DATE, and show a date's month name with the MMM and MMMM formats.
  • Give every date its retail week, month and season from one calendar table with XLOOKUP, and its trading year in Power Query.
  • Set markdown review dates a fixed number of weeks after launch, flag the ones now due, and prove that every date formula recalculates.

Projects

What you will build.

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

  • Project 06

    PeopleInsight HR workbook

    Employee data joined across sheets with one formula.

    Built for HR analytics, it adds a date sheet where TODAY counts the days to each deadline, EOMONTH finds its month end and NETWORKDAYS counts working days, plus an exact-match XLOOKUP, the lookup a day-by-day trading calendar needs.

  • Project 07

    TaskFlow

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

    Built for tasks, it turns dates into live working-day counts: days planned with NETWORKDAYS, days left measured from TODAY, days past due once a deadline goes by, and a test row proving each count moves with its date.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    Built as a budget vs actual dashboard, its model turns the year and month inside each key into a real date and a month label with DATE and TEXT, the method for a period code exported by a planning system.

  • Project 12

    SalesFusion

    A sales report that refreshes itself from a folder of files.

    Built as a sales reporting system on raw CSV exports, it repairs dates in Power Query and adds year, month, month-start and fiscal year columns to every file in a folder, so each row arrives knowing its period.

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 sales against quota, it is where the date work begins: days since each sale with TODAY, month numbers and month-name formats, a follow-up date set by arithmetic and COUNTIFS held to one month, the moves behind order-by dates and receipt months.

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 4 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 39 Date and time functions in Excel

Begin at Lesson 39 if you already write simple formulas: TODAY, MONTH and date arithmetic start there, on a sales table. If the dates in your exports sort in a strange order, take Lesson 20 first. New to Excel? Start at Lesson 1. Comfortable with TODAY and SUMIFS already? Go to Lesson 74 for EOMONTH and NETWORKDAYS, then to Lesson 159 for date columns built in Power Query.

11 of 186 lessons · 1 h 4 min

03 Managing data in Excel: sort, filter and tables (Dunder Michael Paper employee database) 1 of 9 lessons · 6 min Sorting by date, oldest to newest, once the column is checked as real dates, and the lesson's warning that a date column sorting strangely holds text: the first check on any export's delivery or sale dates.
  1. 20 Sorting data in Excel Single and multi-level sort on an employee database 6 min
04 Essential formulas and functions (IF, SUMIF and more) 1 of 13 lessons · 7 min SUMIFS and COUNTIFS with two conditions on a date column, the lesson's month that comes out at zero included: the pattern for units sold or lines launched between any two dates.
  1. 37 SUMIFS and COUNTIFS in Excel Sum and count with multiple criteria 7 min
04 Essential formulas and functions (IF, SUMIF and more) 1 of 13 lessons · 6 min TODAY, NOW, MONTH and date arithmetic on a sales table: days since a sale, a follow-up date a set number of days on, a live timestamp, a date's month name shown with the MMM and MMMM formats and a Yes or No flag for one month.
  1. 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 1 of 10 lessons · 4 min A PivotTable that groups a date field into years, quarters and months by itself, with drill-down from year to day: a quick read of receipts or sales by period without a helper column.
  1. 61 PivotTable summaries in Excel Sales by product category and grouping by date 4 min
08 Advanced Excel functions: lookups, text and arrays 1 of 12 lessons · 6 min XLOOKUP with an exact match and its own if-not-found answer; the lesson looks up location codes, and a calendar table with one row per day is read the same way to give each date its retail week, period and season.
  1. 69 XLOOKUP in Excel Exact match, if not found and two-way lookup 6 min
08 Advanced Excel functions: lookups, text and arrays 1 of 12 lessons · 5 min TODAY, EOMONTH and NETWORKDAYS on a small task sheet: days until each deadline, the last day of the month a deadline falls in, and the working days between two dates.
  1. 74 TODAY, EOMONTH and NETWORKDAYS in Excel Date calculations for HR data 5 min
09 Project: task automation with data validation and forms 1 of 9 lessons · 5 min NETWORKDAYS and TODAY in the TaskFlow tracker: working days planned, working days left while a task is open, and days past due once its date has gone by, each column live.
  1. 85 NETWORKDAYS and TODAY in Excel Days remaining and task deadlines in TaskFlow 5 min
09 Project: task automation with data validation and forms 1 of 9 lessons · 3 min The tracker's stress test, in which a new row with its dates moved on proves the day counts recalculate rather than copy: the check every date column deserves before a season starts.
  1. 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, where LET with LEFT, MID, DATE and TEXT turns the year and month held in each key into a real month label: the way a period code from a planning system becomes a date. It needs a modern Excel.
  1. 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 1 of 21 lessons · 7 min Date columns in Power Query: placeholders and an impossible date cleared, the column typed as a date, then year, month name, month number, month start and year-month fields added for reporting by period.
  1. 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 1 of 21 lessons · 7 min Fiscal year columns and the same date fields added inside a folder query, so every file that joins the folder arrives with its trading year and period already set.
  1. 167 From Folder automation in Power Query Profit metrics and fiscal year columns 7 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.

Which of a merchandise planner's season dates can Excel work out by formula?

Nearly all of them, and The Complete Excel Course with AI Integration from Coding Liquids teaches the functions on industry-standard projects designed after talking with people from many different industries. An order-by date is a subtraction from the in-store date, and selling weeks gone or left come from TODAY (Lesson 39). Receipt months come from EOMONTH, the working days before a deadline from NETWORKDAYS (Lesson 74), and TaskFlow turns such counts into live countdowns with days past due (Lesson 85). A week, a month or a promotion is totalled by SUMIFS with two date conditions (Lesson 37); a period code becomes a real date through DATE (Lesson 117); and Power Query stamps every row with its year, month and trading year (Lesson 159, Lesson 167). Markdown review points follow from the same arithmetic. The 11 lessons here, 1 hour 4 minutes in all, swap the wall planner for formulas that move when a date does.

Working back from a line's in-store date, can the sheet tell me the last day its order can go to the supplier?

Yes: subtract the lead time from the in-store date, and The Complete Excel Course with AI Integration teaches every part of it. Excel stores dates as numbers, so a date minus a number of days is another date, the same arithmetic Lesson 39 uses to set a follow-up date ten days after a sale, run in the other direction. Take the supplier's lead time and the transit days off each line's in-store date and you have its order-by date. NETWORKDAYS then counts the working days between today and that date (Lesson 74), and an IF built the TaskFlow way shows the working days left while there is time and zero once the date has passed, with a days-past-due column beside it (Lesson 85). Sort by the count and the orders that must be placed this week rise to the top of the list.

Can a formula count the selling weeks each line has had since launch, and the weeks left before the season ends?

Yes: both are date arithmetic, which The Complete Excel Course with AI Integration teaches with TODAY in Lesson 39. TODAY minus the launch date gives the days a line has been on sale, shown as a count once the cell's format is set to Number, as the lesson does; divided by seven, it becomes selling weeks. The season's end date minus TODAY gives the days left, and divided by seven, the weeks left. Units sold divided by weeks on sale is the line's weekly rate of sale, and stock on hand divided by weeks left is the rate it must reach to clear by the season's end, so the gap between the two picks out the markdown candidates without guesswork. Because TODAY moves on each day, every figure is current whenever the sheet is opened. Subtraction does here what DATEDIF is often used for, so no extra function is needed.

Can every order placed land in the right month of the open-to-buy by its delivery date?

Yes: give each order its receipt month with EOMONTH, which The Complete Excel Course with AI Integration teaches in Lesson 74. EOMONTH with zero months returns the last day of the month a date falls in, so every delivery dated anywhere in that month carries the same month-end date, a clean key for the month. SUMIFS then totals the units or the value on order for each category against that key (Lesson 37), and the result sits beside the planned intake for the month, the planned-against-placed shape FinanceGuard's budget vs actual model takes. The lesson's own point applies: EOMONTH sets consistent month-end boundaries, so an order due on the last day of a month never slips into the next. Its answer appears as a serial number until it is given a date format; set the column to show the month and the key reads as clearly as it calculates.

A delivery date in our export shows as a five-digit number: what is it, and how do I get the date back?

It is the date itself, shown without a date format, and The Complete Excel Course with AI Integration explains why in Lesson 39: Excel stores every date as a number, a count of days, which is why date arithmetic works at all. A column set to General or Number shows that count instead of the day, month and year, so the fix is a format, not retyping: Short Date, or a custom format laid out as day, month and year, turns the number back into a readable date with nothing in the cell changed. Lesson 74 shows the same effect from the other side, where EOMONTH's answer appears as a serial number until it is given a format. The opposite fault matters more: a date held as text looks right but will not sort or calculate, and Lesson 20 warns that a date column sorting strangely is the sign to check for it.

Period codes from the merchandise system sort as text and will not group by month: what fixes that?

LEFT, MID and DATE fix it between them, and The Complete Excel Course with AI Integration builds exactly that for FinanceGuard's month labels in Lesson 117. Each key there holds the year and month at its start; LEFT takes the year, MID takes the month, DATE turns the two into a true date, and TEXT shows it as a short month-and-year label, all inside LET so each part is named once. The result is a real date, so it sorts in calendar order, groups in a PivotTable and works as a SUMIFS condition, where the raw code would sort as text. Power Query offers the same at import: Lesson 159 adds month name, month number and month start columns, and its warning is worth keeping, since month names alone sort alphabetically, April before January. LET needs a modern Excel.

Our retail months follow a 4-5-4 calendar: can every date pick up its retail week, month and season?

Yes, from one calendar table, and The Complete Excel Course with AI Integration teaches the lookup that reads it. Lay the trading calendar out once with a row per day: the date, its retail week, retail month, quarter and season, as your business defines them. XLOOKUP with an exact match (Lesson 69) then brings the retail week and month onto every sales or receipt line from its date, and its own if-not-found answer shows a message for a date outside the table instead of an error. With those columns in place, SUMIFS totals by retail week (Lesson 37) and a PivotTable reads retail months as easily as calendar ones. A day-by-day table suits a 4-5-4 year, where months do not follow the calendar, because no date rule has to be worked out: the table simply says which week each day belongs to. Next year, extend the table and every formula keeps working.

Can I lay out the season's week-commencing dates by formula instead of typing each one?

Yes: add seven to the date above, and The Complete Excel Course with AI Integration teaches the arithmetic behind it in Lesson 39. Because Excel stores dates as numbers, a date plus a number of days is a later date; the lesson sets a follow-up ten days after each sale, and a planning grid uses seven to step from one Monday to the next. Type the season's first week-commencing date, write the formula below it once, fill it down for the length of the season, and the whole calendar of weeks appears, ready to head a plan or a sales-by-week table. Change the first date and every week after it moves too. A custom date format sets how each date reads (Lesson 74), and EOMONTH beside a week shows which month end it closes, the link between a weekly plan and a monthly open-to-buy.

Can I count how many new lines launch in each month of the range plan, and the units arriving with them?

Yes: COUNTIFS and SUMIFS with two date conditions do it, and The Complete Excel Course with AI Integration teaches the pattern in Lesson 37. The lesson counts the deals in one month with two conditions on the date column, one for the month's start and one for its end, and gets zero, a reminder that an empty month is an answer too. Point the same pair of conditions at your launch dates and COUNTIFS gives the new lines landing in each month; SUMIFS on the units column gives what arrives with them, and a category condition splits either by department. For a quick view instead of a grid of formulas, a PivotTable groups the launch dates into months by itself (Lesson 61). Set beside the open-to-buy by month, the counts show whether the range lands evenly or piles into one delivery window.

Our trading year starts in February: can every sale carry its trading year without a formula on each row?

Yes: Power Query adds it as a column while the data loads, and The Complete Excel Course with AI Integration teaches it on SalesFusion. Lesson 159 first makes the date column a true date, clearing placeholders and an impossible date that would break the conversion, then adds year, month name, month number, month start and year-month fields. Lesson 167 adds fiscal year columns inside a folder query, so every weekly file dropped into the folder arrives with its year and period already set at the next refresh. Nothing is typed down the rows, and nothing is missed when the file grows. Built to your own year start, the trading-year column then groups the season's sales correctly in every PivotTable. The lesson's reminder about month names matters for a trading calendar too: sort by the month number, not the name, or February lands after August.

Can the sheet set each line's markdown review date a fixed number of weeks after launch, and flag the ones now due?

Yes, with date arithmetic and IF, both in The Complete Excel Course with AI Integration. A launch date plus a number of days is the review date, the same move Lesson 39 makes when it sets a follow-up ten days after a sale; seven times the weeks you allow gives the days to add, held in one cell so a change of policy moves every line at once. An IF that compares the review date with TODAY then labels each line Due or Not yet, and the lesson's own Yes or No flag for one month shows the shape of that test. Filter to the Due lines (Lesson 21) and the week's markdown review list builds itself each Monday. EOMONTH (Lesson 74) can turn each review date into the month end it falls in, so the markdown plan totals by month alongside the open-to-buy.

How do I prove the intake tracker's day counts really recalculate before I trust them all season?

Run the test The Complete Excel Course with AI Integration runs on TaskFlow in Lesson 87. The lesson adds a new row by copying the last one, moves its start and due dates on, and checks the drop-downs, the highlighting and the calculated columns in the new row; the decisive check is a due date moved by a day making Days Past Due change by one, proof that the formula recalculates rather than holding a pasted value. If the count refuses to move, the formula is broken or points at the wrong cell. Do the same on your intake tracker: copy one order, shift its delivery date, and watch the working days left and the days late follow it (Lesson 85). The lesson's other caution applies too: counts built on TODAY depend on the day the file is opened, so a copy read on Monday will show different counts by Wednesday.

Can each delivery date show its month as a name, and can I flag the ones landing in one particular month?

Yes, and The Complete Excel Course with AI Integration covers both in Lesson 39. MONTH returns a date's month as a number from 1 to 12, handy for formulas and sorting, while a custom number format of MMM or MMMM on the date itself shows the month as Jan or January, with the full date still in the cell for arithmetic. For the flag, the lesson writes an IF round MONTH that answers Yes for one month and No for the rest; point it at your delivery dates and every line landing in the launch month is marked, ready to filter or to count with COUNTIF. Keep the formats on the dates and the numbers in MONTH: a month number formatted as a date always reads January, because Excel sees it as a day early in its calendar. Power Query adds month name and month number columns as well (Lesson 159).

Before the weekly pack goes to the buyers, can it carry a date and time stamp that freezes when I send it?

Yes: NOW gives the stamp and Paste Special freezes it, and The Complete Excel Course with AI Integration teaches NOW in Lesson 39 as a live stamp for a working report. NOW returns the date and the time and updates whenever the workbook recalculates, so a cell labelled Figures as at, with NOW beside it formatted to show both, tells every reader how fresh the numbers are; TODAY gives the date alone. Because it keeps moving, a pack you send outside the team should carry a fixed stamp: copy the cell and paste it back as a value with Paste Special, the move Lesson 42 uses to lock clean text in place so it no longer depends on a formula. The copy you send then keeps the moment it was finished. The same freeze suits any count built on TODAY, so the buyer reading the pack on Thursday sees exactly what you saw when it went out.

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.