Home / How to Calculate OEE in Excel with AI: A Step-by-Step Guide for the Shop Floor

How to Calculate OEE in Excel with AI: A Step-by-Step Guide for the Shop Floor

The board at the end of the packing line said OEE 81%. The plant manager was proud of it, and to be fair, nobody had ever questioned it. Then we spent one afternoon rebuilding the same number from the operators' own shift sheets, in a plain Excel file, with an AI tool doing the boring parts. It came out at 56%. Nothing on the line had changed. Only the way we counted. In this tutorial I show you how to build an honest first OEE in Excel with AI, step by step, and where the number usually lies to you.

In my 24 years in manufacturing I have seen OEE used as a trophy more often than as a tool. The good news is that you don't need new software to see the real figure. One week of shift data, Excel, and ChatGPT, Claude or Copilot are enough for a first honest look. The line and all numbers below are illustrative, not data from a real company.

Illustrative OEE chart by Faramarz Ahmadi: the board at a packing line shows availability 90%, performance 94%, quality 96% and OEE 81%; rebuilt in Excel from one week of shift sheets it is 78%, 75%, 96% and OEE 56%

OEE in one minute

OEE (Overall Equipment Effectiveness) multiplies three simple ratios:

  • Availability = run time ÷ planned production time. It catches breakdowns, changeovers and waiting.
  • Performance = (ideal cycle time × total count) ÷ run time. It catches small stops and slow running.
  • Quality = good count ÷ total count. It catches scrap and rework.

OEE = Availability × Performance × Quality. The formula is public and simple. The trouble is always in the inputs.

The illustrative line

One packing line, two shifts, five days a week. After breaks, planned production time is 4,500 minutes a week. The machine's design rate is 60 packs per minute. Last week the operators logged 990 minutes of stops, packed 158,000 units, and 6,300 of them were rejected or reworked.

Step 1: collect one week of shift data, not a year

Start small. One week is enough to learn whether your data can be trusted. Put it in one Excel table with one row per stop and one row per shift total: date, shift, product, planned minutes, stop minutes, stop reason as the operator wrote it, total count and rejects. If the data is still on paper, typing one week by hand takes a couple of hours and is worth it.

Step 2: let AI clean the stop reasons

Operators write fast. "No material", "waiting mat.", "material late" and "feeder empty" are often the same loss. Copy the list of unique reasons into ChatGPT or Claude and ask something like this:

"Here are 140 stop reasons typed by operators on a packing line. Group each one into one of these loss types: breakdown, setup and changeover, small stop, waiting for material, reduced speed, quality loss. Return a two-column table, original text and loss type, and mark every line you are not sure about."

Paste the result back into Excel as a small lookup table. Then read every line the AI marked as unsure, and ask a shift supervisor to look at the rest for ten minutes. AI does the sorting in seconds; the people on the floor make it right.

Step 3: ask AI for the formulas, but understand every one

Next, ask the AI to write the formulas for minutes per shift and per loss type. You will get something like:

=SUMIFS(Stops[Minutes], Stops[Date], A2, Stops[Shift], B2)

Check each formula on two or three rows by hand before you trust it. The most common mistake I see, from people and from AI alike, is dividing by the wrong time: calendar time instead of planned production time, or run time that still includes the changeovers.

Step 4: compare the board with the rebuilt number

Now put the two versions side by side:

Board at the line Rebuilt from shift sheets
Availability 90% 78% (3,510 of 4,500 min)
Performance 94% 75% (158,000 of 210,600 possible)
Quality 96% 96%
OEE 81% 56%

Why the gap? In the illustrative plant, stops shorter than ten minutes were never written on the board, and performance was measured against an old "standard" speed that the line had slowly drifted down to over the years, not against what the machine was built to do. Nobody was lying. The rules of counting were simply too kind.

Step 5: rank the losses and ask the right question

Sum the stop minutes per loss type and sort them:

Loss type Minutes per week Share of stops
Small stops 380 38%
Changeovers 290 29%
Breakdowns 210 21%
Waiting for material 110 11%

Small stops, the ones that never reached the board, are the biggest block. Now give the AI your summary table and ask: "If we cut each loss in half, how many points of OEE would each one add?" It is a quick way to start the conversation with maintenance and production about where to begin. The answer is a starting point for discussion, not a decision.

The check I do before I believe any OEE

There is one more check I always do before I trust an OEE figure, on any line, in any factory. It takes about ten minutes, and in most plants I have seen it moves the performance number and changes which loss gets attacked first. I keep that one for when we sit together in front of your real data, because it only makes sense on your own line.

Where it gets harder

A first OEE in Excel is a strong start. It gets more specialized when one line runs many products with different cycle times, when you want counts and stops straight from the machine's PLC instead of paper, or when management asks how many OEE points are worth how much money. That last question is where many OEE projects stall, and I wrote about it in why OEE can go up while profit stays flat.

Common mistakes

  • Ignoring short stops. They are usually the biggest hidden loss.
  • Using a "standard" speed instead of the design speed. Performance looks great and means nothing.
  • Counting rework as good. Quality must count only what was right the first time.
  • Trusting AI formulas without a hand check. One wrong time base changes everything.
  • Comparing OEE between lines with different rules. Agree on one definition first.

OEE in Excel fits well with other tutorials I have written: cleaning factory data in Excel with Claude, a weekly production plan in Excel with ChatGPT, and finding the real root cause in downtime data.

Key takeaway: take one week of shift data, let AI group the stop reasons, check every formula by hand, measure performance against the design speed, and count short stops. Your first honest OEE will probably be lower than the board, and that is exactly where the improvement starts.

Want to know the real OEE of your line?

If you want us to calculate the real OEE of one of your lines together, send me one week of shift sheets or a stop log from your system. I will show you where your number differs from the board, which losses are worth attacking first, and we will run the check I mentioned above on your own data.

Contact me Read: OEE and profit Read: Claude for Excel

Related reading: Project control in Excel with AI, step by step — why a simple average of task percentages can say 80% when the project is really at 62%, and how to see it in one formula.
Related reading: Best AI for Excel? ChatGPT vs Claude vs Copilot — one factory report, three tools, and the confident mistake each of them made.
Related reading: Feasibility study for a production line: size it from real demand, not the machine catalogue — and the five-minute self-check before you buy a line.

Sources

  • OEE as Availability × Performance × Quality and the six big losses come from Total Productive Maintenance (TPM) practice, first described by Seiichi Nakajima.
  • Performance should be measured against the ideal (design) cycle time; using a reduced standard rate hides speed losses.
  • All numbers in this article (times, counts, rates and OEE values) are illustrative.
Faramarz Ahmadi (فرامرز احمدی), author photo

👁 Views: 1