The Complete Excel Course with AI Integration

Excel formulas for retail buyers

A buyer's week runs on a few sums done for hundreds of lines: margin, mark-up, sell-through, sales against plan and each supplier's record. The Complete Excel Course with AI Integration teaches the formulas behind them on industry-standard projects, and the lessons gathered here are the ones a buyer reaches for most: arithmetic with locked cells and IFERROR, SUMIFS and COUNTIFS for each category, supplier and store, IF and IFS labels, and a plan against actual model.

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 out landed cost, margin and mark-up line by line across the whole line list, with brackets setting the order of each sum and the freight and duty rates held in locked cells of their own.
  • Show each line's sell-through as a share of the units received, with IFERROR keeping a readable note on the lines whose delivery has not landed yet.
  • Total the sales value and the units of each category, supplier or store with SUMIF and SUMIFS, then divide one total by the other for a category's true average selling value per unit.
  • Label every line against its plan with IF and IFS, nesting one IF inside another where three outcomes are needed, and flag the lines that miss on two counts with AND, or on either of two with OR.
  • Score each supplier on late, short and returned deliveries with COUNTIF and COUNTIFS, turned into percentages that set suppliers side by side.
  • Check a supplier's cost sheet or the week's sales file with COUNT, COUNTA and SUM before a single margin is worked out from it.
  • Set the season's buying budget beside the orders already committed for every category and month with SUMIFS on a shared key, then show variance and percent variance with a status note on each row.
  • Work out a repeat order's quantity from average recent sales, the weeks to cover and the stock held or on order, with an IF that never orders below zero.

Projects

What you will build.

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

  • Project 01

    Personal Budget Tracker

    Your first workbook: where the money goes each month.

    Built as a household budget, it is where a buyer's arithmetic is learned: the four operations with brackets, a rate held in one locked cell, each figure as a percentage of a total, and IFERROR in place of the #DIV/0! that a line with no sales would throw.

  • Project 08

    MarketPulse

    One screen that shows which campaigns earn back their spend.

    Built for marketing campaigns, it adds the ratio formulas a trading report leans on: CTR, conversion rate and ROI, each wrapped in IFERROR, with ROI worked exactly as mark-up is, the gain over the outlay divided by the outlay.

  • Project 09

    FinanceGuard

    The budget vs actual report finance teams send every month.

    Built for budget against actual spending, its model is the pattern for a buying budget held against orders committed: SUMIFS bring both sides beside every key, then variance and percent variance, with a written status on each row, show where a category has room left and where it has run over.

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 table of sales orders with a quota on every row, it is where the rules of a buying report are rehearsed: Achieved or Missed against a target, tiers built by nesting one IF in another or with IFS, flags that combine conditions, and SUMIFS and COUNTIFS totals by region, product and rating, the same shapes a buyer needs for each category, supplier and store.

Lessons

The lessons that matter, in course order.

The Complete Excel Course with AI Integration has 186 lessons. This page picks out 22 of them, 1 h 56 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 type figures into Excel but have not yet written formulas of your own: the sums there are the sums of margin, mark-up and landed cost. Completely new to Excel? Start at Lesson 1 for the window, the sheets and number formats. Already writing SUM and percentages without a second thought? Go straight to Lesson 30, where the Sales Goal Tracker begins and the IF, SUMIFS and COUNTIFS work starts.

22 of 186 lessons · 1 h 56 min

01 Microsoft Excel fundamentals: building a foundation from scratch 5 of 13 lessons · 19 min The arithmetic every buying figure rests on, practised on a personal budget: addition, subtraction, multiplication and division with brackets for landed cost and margin, SUM, AutoSum and MAX for totals and the largest order, a rate locked with F4 so a duty or a target margin holds as the formula fills down, each figure as a percentage of a total, and IFERROR for the line with nothing sold yet.
  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
02 Project: personal budget tracker 1 of 5 lessons · 4 min SUM and AVERAGE side by side on the budget tracker, with the mean shown for what it is, a total divided by a count. That is why a category's average selling value per unit is built from two totals rather than an average of its lines.
  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 The formulas of a buying report. Lesson 28 and Lesson 29 practise comparisons and IF on a small sheet of students' marks; from Lesson 30 the Sales Goal Tracker's sales table takes over: Achieved or Missed against a target, nested IF and IFS tiers, AND and OR flags, SUM, COUNT and COUNTA checks, SUMIF and COUNTIF on one condition, SUMIFS and COUNTIFS on several, the function library, TODAY and MONTH, and a closing challenge on a sales table.
  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
11 MarketPulse campaign intelligence dashboard 1 of 10 lessons · 4 min Ratio formulas guarded by IFERROR, worked on MarketPulse's summary PivotTable: CTR, conversion rate and ROI. The same divide-and-guard pattern gives sell-through, a supplier's on-time rate and mark-up without an error on any row.
  1. 109 CTR, conversion rate and ROI in Excel Marketing KPI formulas with IFERROR 4 min
12 Project: FinanceGuard budget variance analyser (budget vs actual Excel dashboard) 2 of 10 lessons · 11 min FinanceGuard's model: one sorted list of keys spilled from both tables with SORT, UNIQUE and VSTACK, each key split into its month, department and category with LET and TEXTSPLIT, SUMIFS bringing budget and actual beside every key, then variance and percent variance, each row closing with a status note. A buying budget against orders committed takes the same shape. These functions need a modern Excel.
  1. 117 Budget vs actual model in Excel SORT, UNIQUE, VSTACK, LET, TEXTSPLIT, SUMIFS 8 min
  2. 118 Budget variance in Excel Calculate variance and percent variance 4 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.

Can a retail buyer work out their own margin, sell-through and open-to-buy in Excel, without waiting for the merchandiser's figures?

Yes, every one of those figures, and The Complete Excel Course with AI Integration from Coding Liquids builds each on industry-standard projects designed after talking with people from many different industries. The arithmetic of margin, mark-up and landed cost comes first, on a budget tracker with locked cells and IFERROR; sell-through and stock on hand follow from the same sums. The Sales Goal Tracker, a table of sales orders with quotas, then carries the conditional totals and counts of SUMIFS and COUNTIFS, labels written with IF and IFS, and flags that join conditions with AND or OR. FinanceGuard sets a plan beside what happened for every key, the shape of an open-to-buy sheet, and MarketPulse adds ratios guarded against errors. Formula lists online name the functions; the 22 lessons on this page, 1 hour 56 minutes of video, have you build each one on a working file and hold it against the finished version.

Which formulas turn a supplier's cost into the selling value I need for my target margin?

Two short ones, and The Complete Excel Course with AI Integration teaches every piece of them. For a target margin, divide the landed cost by one minus that margin: a cost of forty-five at a twenty-five per cent margin needs a selling value of sixty. For a mark-up, multiply the cost by one plus the mark-up. Landed cost itself is the supplier's cost plus freight plus duty, with the duty worked as a percentage of the cost. Lesson 8 covers the operations and the brackets that decide what is calculated first, Lesson 10 locks a rate cell with F4, so a margin target or a duty rate holds while one formula fills a whole line list, and Lesson 11 formats the results as percentages. Change the target in its one cell and every selling value on the sheet moves with it, ready for the next round of cost talks.

If I mark a line down, what happens to its margin, and can a formula show it before I decide?

Yes: one column for the reduced selling value and one for the margin left, and The Complete Excel Course with AI Integration gives you both. The reduced value is the full selling value times one minus the markdown percentage, and the margin left is that value minus the cost, divided by that value, the same pattern as the margin at full value. Keep the markdown rate in its own locked cell (Lesson 10) and you can try thirty per cent, then forty, and watch every line's margin answer at once. An IF from Lesson 30 then labels each line that would fall below your floor, and AND from Lesson 33 narrows the list to lines that are also slow to sell. The lessons practise on budget and sales figures; the arithmetic is identical on a line list, and it turns a markdown meeting into a choice made on figures.

Can a formula work out sell-through for every line, including lines still waiting for their delivery?

Yes, and the lines still in transit stay tidy instead of throwing errors. Sell-through is units sold divided by units received, shown as a percentage, and The Complete Excel Course with AI Integration teaches each part: the division and brackets in Lesson 8, the percentage format in Lesson 11, and IFERROR in Lesson 12, which swaps the #DIV/0! of a line with nothing received for a message such as Awaiting delivery. For the version that divides by units sold plus the stock still on hand, brackets keep the sum in the right order. MarketPulse uses the same divide-and-guard pattern for CTR, conversion rate and ROI (Lesson 109), so by then the shape is second nature. With sell-through on every row, the nested IF of Lesson 31 can sort the range into tiers on thresholds you choose.

How do I get a category's average selling value per unit when every line sells at a different value?

Divide the category's sales value by its units, both totalled with SUMIF, and The Complete Excel Course with AI Integration teaches exactly that pair. Averaging the lines' own values would give a small line the same weight as a best seller, so the answer comes from two totals: SUMIF adds the sales value for the category (Lesson 36), a second SUMIF adds its units, and one divides by the other. Lesson 14 defines AVERAGE as the total divided by the count, which is exactly why it misleads here: it suits a list of similar items, not lines selling in very different volumes. SUMIFS from Lesson 37 takes the same figure down to one store or one supplier within a category. The lessons total sales by product, region and rating; point the same formulas at category and units and the average unit retail of every category stands in one column.

Can Excel keep a running stock and on-order figure for each line, and warn me when it falls below the reorder level?

Yes: a few totals and one test per line, built from what The Complete Excel Course with AI Integration teaches. Stock on hand is opening stock plus receipts minus units sold, the arithmetic of Lesson 8, with receipts and sales totalled for each line by SUMIFS from your movement logs (Lesson 37). On order is a SUMIFS of open purchase order quantities for the line, with the order status as a second condition. Then an IF in the style of Lesson 30, which sets each sale against its quota, sets stock plus on order against your reorder level and returns Reorder or OK, while AND from Lesson 33 keeps lines you have chosen to drop off the list. Kept as Excel tables, the logs feed totals that take in each new week's rows by themselves, as Lesson 34 shows. The course's data is sales orders, and the formulas carry over unchanged.

Can formulas grade my suppliers into tiers from their late deliveries, short shipments and returns?

Yes, a supplier scorecard is a column of counts and a few percentages, and The Complete Excel Course with AI Integration teaches every formula in it. COUNTIF counts each supplier's deliveries (Lesson 36); COUNTIFS counts the ones that arrived late, short or with returns by stacking the supplier with a status column (Lesson 37); dividing one by the other gives on-time and returns rates (Lesson 11). A nested IF (Lesson 31) or IFS (Lesson 32) turns those rates into tiers such as Preferred, Approved and On watch, and IF with OR (Lesson 33) raises a Review flag when either rate crosses your limit. The lessons grade customers and deals the same way, from Premium to Low Value and from Safe to Risk. You walk into the next supplier review with every point backed by a count.

How many lines in each category hit their sales target, and can a formula keep that count?

Yes: label every line, then count the labels, and The Complete Excel Course with AI Integration teaches both steps on the Sales Goal Tracker. An IF compares each line's sales with its target and returns Achieved or Missed (Lesson 30); a nested IF adds a middle band, Near Target, for lines within a tenth of the goal (Lesson 31). COUNTIFS then counts the Achieved lines in each category, with the category and the label as two conditions in one formula (Lesson 37), and COUNTIF counts all the lines in the category (Lesson 36), so one divided by the other gives the hit rate as a percentage (Lesson 11). Change a target and every label and count updates at once. A category where only a third of the lines hit plan tells a different story from one where a single star carries the total, and the range review should hear both.

How much of this season's buying budget is still uncommitted in each category, and can a formula keep that figure current?

Yes: open-to-buy is the season's buying budget less the orders already placed, and The Complete Excel Course with AI Integration teaches a model that keeps it current. FinanceGuard, built in the course to hold spending against a plan, gathers the keys of two tables into one sorted spill and fetches each side with SUMIFS (Lesson 117), then Lesson 118 works out variance and percent variance, writing a status beside every row. Feed it your buying budget as one table and your purchase orders as the other, keyed by category and month, and every row shows the headroom left before that category is fully bought. A newly opened month or category arrives in the key list unaided, and a double-click on the fill handle completes its row. Those spilling functions belong to a modern Excel, and the lessons flag that when they arrive.

My weekly trading report keeps the same layout of categories and stores: should its totals come from SUMIFS or a PivotTable?

SUMIFS, for a layout that must never move, and The Complete Excel Course with AI Integration teaches both so the choice is always yours. SUMIFS fills a fixed grid: categories down the side, stores across the top, each cell totalling the sales that meet its row and its column (Lesson 37), so the report keeps its shape, its order and its formatting every week and sits beside last year's figures cell for cell. With the headings held by mixed references, the column locked in one and the row in the other (Lesson 10), one formula fills the whole grid. A PivotTable rebuilds its layout from the data, which is ideal for exploring a question nobody planned, and the course teaches that from Lesson 57. Many buyers use both: PivotTables to find the story, SUMIFS to report it in the house format.

My margin formula is right on the first line and wrong on every line below it: what has gone wrong, and is it covered?

Yes, it is covered, and the cause is almost always a reference that moved. When a formula is copied down, Excel shifts every cell it points to, so a margin formula that divides by the target cell on one row divides by an empty cell on the next. The Complete Excel Course with AI Integration shows exactly this in Lesson 10: the formula copied, the references sliding, then F4 locking the rate cell while the line's own cells stay free to move. Lesson 11 repeats the fix for percentages, locking the total as the formula fills down the column. Learn it once and the same fix covers a target margin, a duty rate, a markdown percentage or any other fixed input. It is the most common reason a buyer's sheet looks right at the top and quietly wrong everywhere below.

How many units should the next order be, given recent sales and the stock already held?

A short formula works it out for every line, and The Complete Excel Course with AI Integration teaches each part of it. Average the last few weeks of sales with AVERAGE (Lesson 14), multiply by the number of weeks the order must cover, then subtract the stock on hand and the units already on order, all with the operations and brackets of Lesson 8. Keep the weeks of cover in one locked cell (Lesson 10) so a change of plan reruns the whole sheet, and wrap the result in an IF (Lesson 30) that shows zero instead of a negative number when a line already holds more than it needs. SUMIFS brings in the stock and open orders for each line from your logs (Lesson 37). The figure is the starting point of the buy rather than the buy itself: you still weigh the trend, the season and the supplier's minimums, but you weigh them against a number instead of a guess.

Do I need to be strong at maths to work out margins and mark-ups in Excel?

Excel does the arithmetic for you, and The Complete Excel Course with AI Integration teaches you how to set it up. Every buying formula on this page is built from the four operations, brackets and percentages, and Lesson 8 and Lesson 11 teach those from the first equals sign, on a personal budget with figures anyone can check in their head. From there each new formula arrives one idea at a time: SUM and AVERAGE, then IF, then totals with one condition and with several. Lesson 38 shows how to find a function by describing what you need, with Function Arguments placing the brackets and commas for you. What a buyer brings is judgement about the range; the course turns that judgement into formulas that run the same sum on every line without a slip, however long the line list grows.

I have a cost negotiation with a supplier soon: how quickly can these lessons get my margin figures in order?

Within a first sitting for the margin itself, and about 1 hour 56 minutes for everything on this page. The arithmetic of margin, mark-up, landed cost and locked rates sits in the opening run of The Complete Excel Course with AI Integration, Lesson 8 to Lesson 12, and rebuilt on your own cost sheet it gives a selling value and a margin for every line under discussion. The supplier figures follow on the Sales Goal Tracker: SUMIFS for what you bought from each supplier last season and COUNTIFS for how often they delivered late (Lesson 37), the numbers that give a negotiation its weight. Every project comes with a starter workbook and a finished one, so you can test each formula against the finished answer, and with lifetime access the lessons stay open for every negotiation after this one.

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.