Tabellab

Failure Log to MTBF, MTTR & Availability per Asset

Lesson 1 of 20Lab

All lessons

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

Why every maintenance team needs MTBF, MTTR and availability

Ask a production manager how reliable a machine is and you often hear a story: "the filler keeps leaking", "the labeller was down all weekend". Stories are useful, but they do not tell you which machine to fix first, whether last quarter was better than this one, or how much output the line actually loses. Three numbers do: MTBF (mean time between failures), MTTR (mean time to repair) and availability. All three come straight from the failure log you probably already have, and Excel turns that log into the numbers in a few minutes.

This free first lesson is for maintenance planners, reliability engineers, production and plant managers, apprentices preparing for a technician exam and anyone who has been handed a CMMS export and asked for "the KPIs". You do not need statistics. If you can write =SUM() you can follow every step. We use the same fictional plant as the lab above: line 2 of Vantorp Bottling, with a filler, a capper and a labeller, and twelve breakdowns logged in the third quarter of 2026.

By the end you will know what each number means, how to calculate it per asset with COUNTIF and SUMIF, why the availability of a production line is always lower than that of its weakest machine, and which mistakes make reliability reports look better or worse than reality.

The core idea in plain words

A machine lives in two states: it is either able to run or it is broken and being repaired. Over a quarter, those states alternate: run, fail, repair, run again. If you add up all the running stretches and divide by the number of failures, you get the average length of a running stretch. That is the MTBF. If you add up all the repair stretches and divide by the number of failures, you get the average length of a repair. That is the MTTR.

  • MTBF = (scheduled hours − downtime) ÷ number of failures. Higher is better. It tells you how often the machine stops.
  • MTTR = downtime ÷ number of failures. Lower is better. It tells you how long each stop lasts, which reflects the repair itself plus waiting for a technician, a part or a permit.
  • Availability = MTBF ÷ (MTBF + MTTR). The share of scheduled time the machine was able to run. With the definitions above it equals 1 − downtime ÷ scheduled hours.

Notice that MTBF and MTTR answer different questions. A machine can fail rarely but take ages to fix (high MTBF, high MTTR), or fail often but be back up in minutes (low MTBF, low MTTR). Both can have the same availability, yet they need completely different actions: the first calls for spare parts and repair skills, the second for root-cause analysis and preventive work. That is why a good report always shows all three side by side and never availability alone.

Definitions vary between companies. Some use "uptime" instead of scheduled hours minus downtime, some count only unplanned stops, and for non-repairable parts people use MTTF (mean time to failure). Write down which definition you use at the top of the sheet, and keep it the same from quarter to quarter, otherwise your trend is meaningless.

Worked example: Vantorp Bottling, line 2, Q3 2026

Here is the failure log from the lab. Each row is one breakdown with the date, the asset, the failure mode and the downtime in hours. Each machine was scheduled to run 1,560 hours in the quarter (for example two shifts on five days over thirteen weeks, rounded). All names and numbers are fictional and illustrative.

Vantorp Bottling line 2, Q3 2026 failure log (fictional, same as the lab)
No.DateAssetFailure modeDowntime (h)
12026-07-03FillerValve seal leak2.50
22026-07-09CapperTorque head jam1.00
32026-07-15LabellerGlue pump fault3.00
42026-07-22FillerValve seal leak2.00
52026-07-30CapperTorque head jam0.75
62026-08-06FillerLevel probe drift1.50
72026-08-14LabellerGlue pump fault5.00
82026-08-21CapperServo drive trip2.25
92026-08-28FillerValve seal leak3.00
102026-09-08CapperTorque head jam1.25
112026-09-17FillerLevel probe drift1.00
122026-09-26CapperServo drive trip1.75

Step one is to summarise the log per asset. The filler appears five times (rows 1, 4, 6, 9 and 11) with 2.5 + 2 + 1.5 + 3 + 1 = 10 hours of downtime. The capper also has five failures but only 7 hours down. The labeller failed just twice, but each glue pump fault took a long time, 8 hours in total. In Excel you never add these by hand: =COUNTIF($C$4:$C$15,A20) counts the rows where the asset column equals "Filler", and =SUMIF($C$4:$C$15,A20,$E$4:$E$15) adds the downtime of exactly those rows.

Q3 downtime per asset, Vantorp line 2 (fictional)Downtime hours from the failure log, 1,560 scheduled hours per asset03691210 hFiller5 failures7 hCapper5 failures8 hLabeller2 failures
Downtime hours per asset in Q3. The filler loses the most time, but the labeller loses almost as much with less than half the failures.

Step two turns counts into reliability figures. For the filler, the running time is 1,560 − 10 = 1,550 hours, spread over 5 failures, so the MTBF is 1,550 ÷ 5 = 310 hours. The MTTR is 10 ÷ 5 = 2 hours. Availability is 310 ÷ (310 + 2) = 99.36 %. The same arithmetic for the other two machines gives the summary below.

Summary per asset with 1,560 scheduled hours each (result of the lab)
AssetFailuresDowntime (h)MTBF (h)MTTR (h)Availability
Filler510.00310.02.0099.36 %
Capper57.00310.61.4099.55 %
Labeller28.00776.04.0099.49 %
Line (series)1225.0098.41 %

Look at the labeller: its MTBF of 776 hours is more than twice that of the other machines, which sounds excellent. But its MTTR of 4 hours is also twice as long. When the labeller stops, it stays stopped. A planner reading only the MTBF would leave it alone. A planner reading MTTR as well would ask why a glue pump repair takes four hours, and might find that there is no spare pump on site and the technician has to strip and clean the old one. That single insight is worth more than the whole spreadsheet.

MTBF per asset: average running hours between failuresLonger bars are better. MTTR (repair time) is shown in the label.02004006008001,000310.0 hFiller (MTTR 2.0 h)310.6 hCapper (MTTR 1.4 h)776.0 hLabeller (MTTR 4.0 h)
MTBF per asset with the MTTR in each label. The labeller runs longest between failures but takes the longest to repair.

Where each formula goes in the lab sheet
CellFormulaResult for the filler row
B20=COUNTIF($C$4:$C$15,A20)5
C20=SUMIF($C$4:$C$15,A20,$E$4:$E$15)10.00
D20=($D$17-C20)/B20310.0
E20=C20/B202.00
F20=D20/(D20+E20)99.36 %
F24=PRODUCT(F20:F22)98.41 % (line)

From machines to the whole line: availability in series

A bottling line is a chain. If the filler stops, the capper and the labeller run out of bottles. If the labeller stops, the bottles back up and the filler has to stop too. Engineers call this a series system, and for a series system the availabilities multiply: A(line) = A(filler) × A(capper) × A(labeller) = 0.9936 × 0.9955 × 0.9949 = 98.41 %.

Machines in series: availabilities multiplyFillerA = 99.36 %CapperA = 99.55 %LabellerA = 99.49 %Line 2A = 98.41 %about 24.9 h lostAverage of the three = 99.47 %, which is too optimistic.The line stops when any one machine stops, so use PRODUCT(F20:F22).Ignores buffers between machines. Numbers are fictional and illustrative.
Three machines in series. Multiplying the availabilities gives 98.41 %, lower than any single machine.

That result is lower than the weakest machine (99.36 %) and clearly lower than the average of the three (99.47 %). In hours, the line was unavailable for roughly 1.59 % of 1,560 hours, about 24.9 hours, which is almost exactly the 25 hours of downtime in the log. That is no coincidence: when failures rarely overlap, the line simply loses the downtime of every machine. The multiplication is the general rule, and it is what makes long lines with many machines so sensitive. Ten machines at 99 % each give a line availability of only about 90 %.

Real lines have buffers: conveyors and accumulation tables that keep the downstream machines fed for a few minutes. Buffers soften the series effect for short stops, so the true line availability is usually a little higher than the product. The product is a safe, conservative first estimate, which is what you want in a planning sheet.

How to do it in Excel, step by step

  1. Open the lab above, or export your own failure log from the CMMS into Excel (in most systems: Reports > Work orders > Export to Excel or CSV). Keep one row per failure and columns for date, asset, failure mode and downtime in hours.
  2. Convert minutes to hours if necessary: in a helper column type =E4/60 and fill down with Ctrl+D. Mixing minutes and hours is the most common source of nonsense MTTR values.
  3. Optional but recommended: click inside the log and press Ctrl+T (Insert > Table) so that new rows are picked up automatically by your formulas.
  4. Put the scheduled run hours in one clearly labelled input cell, here D17 = 1,560. Never type 1,560 inside a formula.
  5. List the assets in the summary block (A20:A22). In B20 type =COUNTIF($C$4:$C$15,A20). Press F4 while the cursor is in a range to add the dollar signs (Cmd+T on a Mac).
  6. In C20 type =SUMIF($C$4:$C$15,A20,$E$4:$E$15) for the downtime of that asset.
  7. In D20 type =($D$17-C20)/B20 for the MTBF, in E20 =C20/B20 for the MTTR and in F20 =D20/(D20+E20) for the availability.
  8. Select B20:F22 and press Ctrl+D to copy the first row down to the other assets.
  9. Format F20:F22 as a percentage with two decimals: Ctrl+Shift+%, then Home > Number > Increase Decimal twice. Availability values sit close to 100 %, so zero decimals hide all the differences.
  10. In F24 type =PRODUCT(F20:F22) for the line availability. Compare it with =AVERAGE(F20:F22) in a spare cell to see how much the average flatters the line.
  11. Add a chart: select A19:A22 and C19:C22 (hold Ctrl for the second range), then Insert > Charts > Clustered Column. A one-glance chart of downtime per asset is often all a morning meeting needs.
If an asset had no failures in the period, COUNTIF returns 0 and the MTBF formula shows #DIV/0!. Wrap it: =IFERROR(($D$17-C20)/B20,"no failures"). Do not replace it with the scheduled hours, because an MTBF based on zero failures is not a measurement, it is a lower bound.

Maintenance planner reviewing machine failure data and reliability figures in Excel
Reliability work starts with a clean failure log and a few honest numbers per machine.

Reading the numbers like a reliability engineer

Once the table is filled, resist the urge to rank machines by availability alone. Instead, read the three columns as a story. The filler has the most downtime and the lowest availability, and the log shows why: three of its five failures are valve seal leaks. A repeated failure mode on one asset is the classic signal for a root-cause analysis and a change in the preventive maintenance plan, for example replacing seals at a fixed interval before they leak. Lesson 5 of this course works out exactly what that interval should be.

The capper fails as often as the filler, but its repairs are short (1.4 hours on average). Short, frequent stops often point to adjustment problems, operator settings or a worn component that is "fixed" with a quick reset each time. They are cheap individually and expensive in total, and they also tend to be under-reported, because nobody writes up a ten-minute jam. If your capper log looks clean but operators complain, check whether short stops are being logged at all.

The labeller fails rarely but each repair is long. That is a spare parts and repair-procedure problem more than a reliability problem. Questions worth asking: is there a spare glue pump in stock, how long does it take to get a technician to the line, is there a written procedure? Lesson 6 of this course sizes such spare part stocks with a simple Poisson model.

Finally, compare the line availability with your target. If the plant plans for, say, 98 % availability on line 2, then 98.41 % is just above target, but the margin is small: one more long labeller failure would push the line below it. The value of the spreadsheet is that you can see that margin, and test it, by changing a single downtime cell.

Common mistakes and how to spot them

  • Dividing the scheduled hours, not the running hours, by the failures. =D17/B20 gives 312 hours for the filler instead of 310. The error is small here but grows with downtime. Spot it by checking that MTBF + MTTR, multiplied by the failures, equals the scheduled hours.
  • Using COUNTIF where SUMIF is needed. COUNTIF returns the number of failures (5), SUMIF returns the downtime (10 h). If your "downtime" column contains only whole numbers that match the failure counts, you used the wrong function.
  • Forgetting the dollar signs. Without $C$4:$C$15 the range slides down when you copy the formula, and the last asset silently misses some rows. Spot it by checking that the failures in column B add up to the number of rows in the log.
  • Averaging availabilities for a line. The average (99.47 %) ignores that any single stop stops the whole line. Use PRODUCT for machines in series.
  • Mixed units. One technician logs 45 (minutes), another 0.75 (hours). Sort the downtime column descending (Data > Sort Largest to Smallest) and look for suspiciously large values.
  • Spelling differences in the asset name. "Filler", "filler " with a trailing space and "Filler 2" are three different criteria for COUNTIF. Clean names with =TRIM() or, better, use a drop-down list (Data > Data Validation > List).
  • Mixing planned and unplanned stops. Planned changeovers and cleaning are not failures. Count them separately, or your MTBF will look terrible and drive the wrong decisions.
  • Too few failures to trust. Two labeller failures are not a robust MTBF. Report the number of failures next to every MTBF so readers can judge the evidence themselves.

Quick reference

Quick reference: functions and shortcuts used in this lesson
Function or keyWhat it does here
COUNTIF(range, criteria)Counts the log rows for one asset, i.e. the number of failures.
SUMIF(range, criteria, sum_range)Adds the downtime hours of the rows that match the asset.
COUNTIFS / SUMIFSSame idea with several conditions, e.g. asset and failure mode, or asset and month.
PRODUCT(range)Multiplies the availabilities of machines in series.
IFERROR(value, alt)Shows a dash instead of #DIV/0! for an asset with zero failures.
$ and F4Locks a range so it does not move when you copy the formula down (Cmd+T on a Mac).
Ctrl+DFills the formula from the top cell down through a selected column.
Ctrl+Shift+%Formats the selection as a percentage. Add decimals with Home > Number > Increase Decimal.
Ctrl+TTurns the log into an Excel Table so new rows are included automatically.

Real-world uses of this sheet

  • Monthly maintenance KPI report. Paste the CMMS export into the log each month, and the summary updates. Add a month column and switch to COUNTIFS and SUMIFS to build a trend per asset.
  • Choosing the next improvement project. Rank assets by downtime and by repeated failure modes. The filler valve seals in our example are an obvious candidate for a root-cause analysis.
  • Justifying a spare part or a second technician. A long MTTR with a short repair time on paper means waiting. Showing the hours lost to waiting is a stronger argument for a budget than any anecdote.
  • Comparing lines or plants. Line availability calculated the same way on every site makes the comparison fair, and shows quickly which line has the weakest link.
  • Preparing a capacity plan. Production planning needs realistic available hours. Multiply the scheduled hours by the line availability to get the hours you can actually plan to fill.

What you will build in the rest of this course

This first lab is free. The remaining 19 labs are part of the paid course (a one-time $9.90) and build a complete maintenance and reliability workbook on the same plant, step by step.

Failure Rate & Reliability over Time: R(t) = e^(−λt). You turn the MTBF into a failure rate and expected failures per year, build the reliability curve with EXP, and see how machines in series and redundant pumps change the odds of getting through a period without a breakdown.

Weibull Basics: Shape β from a Linearised Fit. Not every part fails at random. You fit a Weibull line to failure times with LN, SLOPE and INTERCEPT and read from β whether failures are early-life, random or wear-out, which decides whether preventive replacement makes sense at all.

Preventive vs Run-to-Failure: Cost per Operating Hour. You compare the cost per operating hour of running each asset to failure with a preventive plan, pick the cheaper strategy per asset with IF and add up the saving with SUMPRODUCT.

Optimal Preventive Interval: Cost-Rate Table & Chart. You build a cost-per-hour table for eight overhaul intervals, find the cheapest one with MIN and INDEX/MATCH, and chart the classic U-shaped cost curve.

Spare Parts Stock with Poisson Demand. You turn yearly part usage into demand during the lead time and use POISSON.DIST to find the smallest stock that meets a 95 % service level, and see the trade-off between stock value and the risk of a long outage like the labeller's.

Criticality Ranking: Risk Priority Number. You score failure modes with a risk priority number, rank them with RANK.EQ, sort them into A/B/C classes with a nested IF, and spot the high-severity modes that a ranking alone would hide.

Maintenance Backlog & Planner Workload. You roll the backlog forward week by week, express it in crew-weeks, size the planning team and estimate how long contractor support would need to bring the backlog back to target.

Summary

A failure log becomes a reliability report with five formulas. COUNTIF gives the failures, SUMIF the downtime, MTBF = (scheduled hours − downtime) ÷ failures, MTTR = downtime ÷ failures, and availability = MTBF ÷ (MTBF + MTTR). For machines in series, multiply the availabilities with PRODUCT. In our example the three machines each look better than 99 %, yet line 2 as a whole reaches only 98.41 %, and the labeller's long repairs and the filler's repeated seal leaks are where the next hours can be won.

Now scroll up and try the lab yourself: fill B20:F22 and F24, check each answer, and then change a downtime value in column E to see how one long repair moves the line availability.

Frequently asked questions

How do you calculate MTBF in Excel?

Subtract the downtime from the scheduled hours and divide by the number of failures, for example =($D$17-C20)/B20. Count the failures per asset with COUNTIF and add the downtime with SUMIF.

What is the difference between MTBF and MTTR?

MTBF is the average running time between failures and should be high. MTTR is the average time to repair a failure, including waiting, and should be low.

How is availability calculated from MTBF and MTTR?

Availability = MTBF ÷ (MTBF + MTTR). With MTBF based on running hours this equals 1 minus downtime divided by scheduled hours.

How do you calculate the availability of machines in series?

Multiply the individual availabilities, for example =PRODUCT(F20:F22). The result is always lower than the weakest machine because the line stops when any machine stops.

Should planned maintenance be included in MTBF?

Usually not. Planned stops such as preventive maintenance or changeovers are not failures, so most teams count only unplanned breakdowns and track planned downtime separately. Whatever you choose, document it and keep it consistent.

What if a machine had no failures in the period?

The MTBF formula divides by zero. Wrap it in IFERROR and report "no failures" with the number of running hours, because zero failures only tell you the MTBF is at least that long.

Keep going: Maintenance & Reliability: MTBF, MTTR, Preventive Intervals & Spare Parts

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.

  1. Failure Rate & Reliability over Time: R(t) = e^(−λt)
  2. Weibull Basics: Shape β from a Linearised Fit
  3. Preventive vs Run-to-Failure: Cost per Operating Hour
  4. Optimal Preventive Interval: Cost-Rate Table & Chart
  5. Spare Parts Stock with Poisson Demand
  6. Criticality Ranking: Risk Priority Number
  7. Maintenance Backlog & Planner Workload
  8. Cleaning the Work-Order Export: Minutes vs Hours, Planned Stops & Repeat Failures
  9. Anatomy of MTTR: Detection, Waiting, Repair & Restart Time
  10. Weibull in Use: B10 Life, Hazard Rate & Conditional Reliability
  11. Reliability Growth: Is the Filler Getting Better? A Crow-AMSAA Plot
  12. Age-Based Replacement: Cost Rate with a Trapezoid Integral
  13. Condition Monitoring: Vibration Trend, Alarm Week & P-F Inspection Interval
  14. Spares by Total Cost: Holding Cost vs Expected Stock-Outs
  15. Repair or Replace? Economic Life with Equivalent Annual Cost
  16. PM Compliance & Planned Work Share: Due Windows, Overdue PMs & a Highlight Rule
  17. Weekly Schedule Loading by Craft: Capacity, Priority Cut-Off & Pushed Jobs
  18. Wrench Time from a Work-Sampling Study: Shares, Margin of Error & Sample Size
  19. Final Project: 12-Month Maintenance & Reliability Dashboard for Line 2

Buy course — $9.90 See the full course