How to Calculate Revenue Lost to Stockouts % in Excel

Learn how to measure the revenue you’re losing when parts are unavailable, and see whether your inventory can actually handle peak season demand. In this lesson, you’ll build a month-by-month view of stockout impact, compare results to a target, and visualize the trend with a clear chart you can use to protect margins.

Download the Excel file used in this tutorial:

Revenue Lost to Stockouts % in Excel

1. Confirm the Required Columns in Your Dataset

  • Locate the columns you’ll use for this KPI:
    • Date
    • Potential Ticket Revenue
    • Revenue Lost to Stockouts
  • Keep the dataset in a structured table format so formulas reference cleanly.

2. Extract Month and Year From the Date Column

  • Create a Month field using the TEXT function:
    • Use the Date column as the input
    • Format as month name using mmmm
  • Create a Year field using the same TEXT function:
    • Use the Date column as the input
    • Format as year using yyyy
  • If you already created these fields, you can delete the temporary examples and keep the final Month and Year columns.

3. Build a Unique Month and Year List for Monthly Reporting

  • Highlight the Month and Year range you want to summarize by.
  • Use UNIQUE() to generate the unique list.
  • Make sure the list is sequential by date:
    • If your dataset is not sorted by date, sort it first.
  • Copy the unique list and paste values using Ctrl + Shift + V.

4. Add Your Summary Table Headers

  • Create columns in your summary table for:
    • Potential Ticket Revenue
    • Revenue Lost to Stockouts
    • Percentage
    • Target

5. Calculate Monthly Potential Ticket Revenue With SUMIFS

  • Use SUMIFS() to sum Potential Ticket Revenue by:
    • Month equals the Month in your summary table row
    • Year equals the Year in your summary table row
  • Fill the formula down for all month-year rows.

6. Calculate Monthly Revenue Lost to Stockouts With SUMIFS

  • Use the same SUMIFS() structure as above, but sum the Revenue Lost to Stockouts column instead.
  • Use the same Month and Year criteria ranges.
  • Fill the formula down.

7. Calculate Revenue Lost to Stockouts %

  • In the Percentage column, divide:
    • Revenue Lost to Stockouts ÷ Potential Ticket Revenue
  • Format as a percent using Ctrl + Shift + 5.
  • Fill down for all rows.

8. Add a Target %

  • In the Target column, enter your benchmark target (example used in the video: 2%).
  • Fill the same target down the column so it charts as a line.

9. Create a Display Date Label for Charting

  • Create a helper “Date” label for the x-axis by combining:
    • Month cell + Year cell
  • This becomes your clean x-axis label for the chart.

10. Build the Combo Chart

  • Select these fields for the chart:
    • Date label column
    • Revenue Lost to Stockouts (for columns)
    • Percentage (for line)
    • Target (for line)
  • Insert a Combo chart:
    • Revenue Lost to Stockouts as a Column series
    • Percentage as a Line series
    • Target as a Line series
  • Set Percentage and Target to the Secondary Axis so they display correctly.

11. Format the Chart for Readability

  • Rename the chart title (example: “Revenue Lost to Stockouts %”).
  • Adjust line thickness so the chart is easier to read.
  • Add data labels to the Percentage line only:
    • Click the line
    • Add data labels for that series only to reduce clutter
  • If labels are hard to see, add a fill color behind the label text using the font fill option.

12. Calculate the Overall Total %

  • At the bottom, calculate totals:
    • Sum total Potential Ticket Revenue
    • Sum total Revenue Lost to Stockouts
  • Compute the overall percent:
    • Total Lost ÷ Total Potential
  • This gives the overall loss percentage across the entire period.

Tracking Revenue Lost to Stockouts % in Excel Dashboards

Q1. What is Revenue Lost to Stockouts %?
Revenue Lost to Stockouts % shows how much potential revenue you are losing because jobs can’t be completed (or get delayed/canceled) due to missing parts. It helps reveal whether stockouts are quietly eroding your peak-season profitability.

Q2. Why does this KPI matter most during peak season?
Peak season increases demand, which increases the chances of shortages. If inventory cannot keep up, you can lose jobs, face delays, and even pay extra for expedited orders, all of which compresses margin and reduces total revenue.

Q3. What will I learn to build in this video?
You’ll learn how to create a monthly view of (1) potential revenue, (2) revenue lost to stockouts, and (3) the percent lost versus a target, then display it in a chart that makes seasonality and problem months easy to spot.

Q4. Is “revenue lost to stockouts” just the cost of the part?
No. In the approach shown here, revenue loss is bigger than part cost because it can include the job’s revenue impact, including labor and the total ticket value you miss when inventory prevents you from fulfilling the work.

Q5. What’s the best way to visualize this KPI?
A combo chart works well: columns for revenue lost (so the dollar impact is obvious) and lines for the percentage and your target (so performance against goal is easy to interpret month by month).

Q6. Where can I get the dataset used in the tutorial?
You can download the sample dataset using the link near the video, or request it using the email provided in the lesson, so you can follow along and replicate the exact dashboard view.

Get more lessons like this
by joining our newsletter

Receive weekly Excel tutorials, tips, and KPIs straight to your inbox

Databoards

Analysis & Development