How to Make a Control Chart in Excel With Control Limits
By ExcelReady TeamUpdated 6 min read
The short answer
To make a control chart in Excel, calculate the mean and the control limits, then plot the data and all three lines on a line chart. For an individuals chart, the limits are mean ± 2.66 × the average moving range, where a moving range is the gap between neighbouring values. Points outside the limits need a look.
Key takeaways
- A control chart plots data over time with a centre line (the mean) and upper and lower control limits.
- For an individuals chart, UCL = mean + 2.66 × average moving range and LCL = mean − 2.66 × average moving range.
- A moving range is the absolute gap between each value and the one before: =ABS(B3-B2).
- Mean ± 3 × STDEV.S is a common shortcut, but one unusual point widens those limits.
- Lock the limit cells with $ so the chart's flat lines fill down correctly.
On this page+
A control chart in Excel shows your data over time with three extra lines: the average in the middle and an upper and lower control limit on either side. Points that land outside the limits, or odd patterns inside them, signal that something changed and is worth investigating. Excel has no built-in control chart, but you can build one in a few minutes with AVERAGE, ABS and a line chart. This guide makes an individuals chart, the most common type for one measurement per day, batch or week.
What a control chart shows#
A control chart separates normal, everyday variation from unusual changes. Every process varies a little: delivery times, fill weights and call lengths never repeat exactly. The control limits mark how far the data normally wanders. Inside them, the variation is routine. Outside them, something probably happened, such as a new supplier, a broken machine or a staff shortage.
The chart has four parts:
| Part | What it is |
|---|---|
| Data line | Your measurements in time order |
| Centre line | The mean (average) of the data |
| UCL | Upper control limit, above the mean |
| LCL | Lower control limit, below the mean |
The examples use twelve days of average delivery times in minutes, in A1:B13:
| Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Minutes | 31 | 29 | 32 | 30 | 28 | 31 | 33 | 30 | 29 | 44 | 31 | 30 |
Day numbers are in column A and minutes in column B, from row 2 to row 13.
Step 1: Calculate the moving ranges#
A moving range is the size of the jump from one value to the next, ignoring direction. In C3, type and fill down to C13:
=ABS(B3-B2)ABS removes the minus sign, so a drop of 2 and a rise of 2 both count as 2. Row 2 stays empty because day 1 has no previous day. The eleven moving ranges add up to 47.
Step 2: Calculate the mean and the control limits#
Put the summary numbers in their own cells so the chart can refer to them:
| Cell | Label | Formula | Result |
|---|---|---|---|
| I1 | Mean | =AVERAGE(B2:B13) | 31.5 |
| I2 | Average moving range | =AVERAGE(C3:C13) | 4.27 |
| I3 | UCL | =I1+2.66*I2 | 42.87 |
| I4 | LCL | =I1-2.66*I2 | 20.13 |
The 2.66 is a standard constant for individuals charts. The average moving range divided by 1.128 estimates the standard deviation of the process, and control limits sit three standard deviations from the mean: 3 ÷ 1.128 ≈ 2.66. If the LCL comes out below zero for something that can't be negative, such as a count, use 0. The AVERAGE function guide covers the first two formulas.
Step 3: Add the limit columns for the chart#
A chart needs each line as a column of values, so repeat the mean and limits on every row. In D2, E2 and F2, type these and fill down to row 13:
=$I$1
=$I$3
=$I$4The $ signs lock the references. Without them, filling down would shift I1 to I2, I3 and so on, and the "flat" lines would jump about. If the dollar signs are new, read how absolute references work.
Add headers in row 1: Mean, UCL and LCL. Now columns B, D, E and F hold everything the chart needs.
Step 4: Plot the control chart#
Build an ordinary line chart from the data and the three limit columns:
- Select A1:B13, then hold Ctrl (Mac: ⌘) and select D1:F13.
- Choose Insert > Line > Line with Markers.
- Right-click the UCL line, choose Format Data Series, and make it a dashed red line with no markers. Do the same for the LCL.
- Make the mean line solid grey with no markers.
- Add a chart title, such as "Delivery time, minutes".
The result is a line of daily points between two dashed limits. Day 10, at 44 minutes, sits above the UCL of 42.87. For more on formatting lines, see the line chart guide. The technique of drawing a flat line from a column of repeated values is the same one used to add a target line to a chart.
To make out-of-control points stand out, add one more column. In G2, fill down:
=IF(OR(B2>$I$3,B2<$I$4),B2,NA())It repeats the value only when it's outside the limits. NA() gives #N/A, which a line chart skips. Add column G to the chart, and format it with large red markers and no line.
STDEV.S limits or moving range limits?#
A common shortcut is to set the limits at the mean ± 3 × STDEV.S. On this data, that gives a UCL of about 44.00 and an LCL of about 19.00, wider than the moving range limits. Day 10 is now just inside the upper limit, and the unusual day disappears into "normal".
That happens because STDEV.S measures the spread of all twelve values together, so the unusual day itself pushes the standard deviation up. The moving range method looks only at neighbouring days, so one unusual point affects it less. That's why textbook individuals charts use the moving range. The standard deviation guide explains STDEV.S itself.
How to read a control chart#
Look for points outside the limits first, then for patterns inside them.
- A point beyond a limit. Find out what happened on that day. Here, day 10 needs a look.
- A long run on one side of the mean. Many rule sets flag about 8 points in a row above or below the centre line as a shift.
- A steady trend. Several points in a row rising or falling can signal wear or drift.
Once you find and fix the cause of an unusual point, many teams recalculate the limits without it and keep those limits fixed for future data. Limits describe the process, not a target. If the process is in control but still too slow for customers, the process itself has to change.
Practise it#
Try the exercise on this page to calculate an upper control limit from moving ranges. Then practise AVERAGE, MIN and MAX in a live spreadsheet and lock cells correctly in the relative vs absolute references lesson. For quick summary statistics around your chart, see AVERAGE, MIN and MAX explained.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Work out the upper control limit for these fill weights. Click E2 and type =AVERAGE(B2:B8)+2.66*AVERAGE(C3:C8), then press Enter.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Moving range | |||||
| 2 | UCL | |||||
| 3 | ||||||
| 4 | ||||||
| 5 | ||||||
| 6 | ||||||
| 7 | ||||||
| 8 | ||||||
| 9 | ||||||
| 10 | ||||||
| 11 |
Tip: The centre line is the average of the weights. Add 2.66 times the average of the moving ranges, which start in row 3.
Practise this in a lesson
Frequently asked questions
How do you calculate control limits in Excel?
Find the mean with AVERAGE, then the average moving range with AVERAGE of =ABS(B3-B2) filled down. The upper limit is the mean plus 2.66 times the average moving range, and the lower limit is the mean minus the same amount.
Where does the 2.66 come from?
It is 3 divided by 1.128. The average moving range divided by 1.128 estimates the standard deviation, and control limits sit 3 standard deviations from the mean. So 3 ÷ 1.128 is about 2.66.
Can I use STDEV.S for control limits?
Many people do: mean plus or minus 3 times STDEV.S. It is a reasonable rough version, but an unusual point or a shift in the process inflates STDEV.S and widens the limits, so real problems can stay hidden. The moving range method is less affected.
Is a control limit the same as a specification limit?
No. Control limits come from your own data and describe what the process normally does. Specification limits come from the customer or a standard and describe what is acceptable. A process can be in control and still miss its specification.
Does Excel have a built-in control chart?
No. Excel has no control chart type, so you calculate the mean and limits in cells and plot them with an ordinary line chart, as this guide shows.