I-MR Chart in Excel: Step-by-Step Guide to Process Control
In this article
An I-MR (Individual-Moving Range) chart is a statistical process control tool used to monitor processes where data is collected as individual observations rather than subgroups. It achieves two primary goals: the Individual (I) chart tracks the process mean to detect shifts in the average, while the Moving Range (MR) chart tracks process variation to identify instability. This is essential for processes with low volume, slow production cycles, or where measurements are expensive or time-consuming.
What You'll Need
- Microsoft Excel (Any version from 2013 onwards).
- A dataset consisting of a single column of continuous numerical data collected in chronological order.
- Basic knowledge of Excel formulas (AVERAGE, ABS).
- At least 20 to 25 data points for the control limits to be statistically meaningful.
Step-by-Step
- Organize Your Data: Open a blank Excel workbook. In Column A, enter your time markers or sample numbers (1, 2, 3...). In Column B, enter your raw measurements. Ensure there are no blank cells or non-numeric characters in the data column, as this will break the calculations.
- Calculate the Moving Range (MR): The MR chart tracks the absolute difference between consecutive points. In cell C3 (next to your second data point), enter the formula
=ABS(B3-B2). Drag this formula down to the end of your dataset. This calculates the distance between each point and the one immediately preceding it. - Calculate the Process Average (X-bar): Find the average of your individual measurements. In a separate cell (e.g., E2), enter
=AVERAGE(B2:B100), adjusting the range to match your actual data. This value serves as the Center Line (CL) for your I-chart. - Calculate the Average Moving Range (MR-bar): Find the average of the values in Column C. In cell E3, enter
=AVERAGE(C3:C100). This is the Center Line for your MR-chart. - Determine the I-Chart Control Limits: To calculate the Upper Control Limit (UCL) and Lower Control Limit (LCL) for the Individual chart, you need the constant 2.66 (which is 3 divided by the constant d2 for a subgroup size of 2).
- UCL (I): In cell E4, enter
=E2 + (2.66 * E3). - LCL (I): In cell E5, enter
=E2 - (2.66 * E3).
- UCL (I): In cell E4, enter
- Determine the MR-Chart Control Limits: For the Moving Range chart, the LCL is typically zero for a subgroup of 2. The UCL is calculated using the constant 3.267.
- UCL (MR): In cell E6, enter
=3.267 * E3. - LCL (MR): Enter
0in cell E7.
- UCL (MR): In cell E6, enter
- Create the Data Columns for Plotting: To make the lines appear straight on the chart, create new columns. In Column D, fill every cell with the value of the X-bar (E2). In Column E, fill every cell with the UCL (I) value. In Column F, fill every cell with the LCL (I) value. Repeat this process for the MR chart limits using the MR-bar, MR-UCL, and MR-LCL.
- Insert the I-Chart: Highlight your individual data (Column B) and the three limit columns you just created. Go to the Insert tab, select Insert Line or Area Chart, and choose Line with Markers.
- Insert the MR-Chart: Repeat the insertion process using the Moving Range data (Column C) and its corresponding limit columns. Place this chart directly below the I-chart for easy comparison.
- Format for Clarity: Right-click the limit lines and change the line style to dashed. Label your axes (X-axis as "Sample Number" and Y-axis as "Measurement") and add a chart title.
Common Mistakes
One of the most frequent errors is using the standard deviation (STDEV function) to calculate control limits instead of the Average Moving Range. While standard deviation is common in general statistics, SPC requires the MR-bar because it is less sensitive to extreme outliers and more reflective of short-term process variation.
Another common mistake is failing to account for "out-of-control" points when establishing the baseline. If a point is clearly a result of a known error (e.g., a power outage or measurement mistake), it should be removed, and the limits recalculated. Including these anomalies inflates the control limits, making the chart less sensitive to actual process shifts.
Users also often forget to use the absolute value function (ABS) for the moving range. Without ABS, negative differences will cancel out positive ones, leading to an incorrect average moving range and mathematically impossible control limits.
Tips
To make your I-MR chart dynamic, use Excel Tables. Select your data and press Ctrl + T. When you add new data to the bottom of a table, Excel automatically extends the formulas and updates the charts, saving you from manually updating cell ranges every time a new measurement is taken.
Use Conditional Formatting to highlight points that exceed the control limits. Select your data range, go to Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter a formula such as =B2>$E$4 (where E4 is your UCL) and set the fill color to red. This provides an immediate visual alert before you even look at the chart.
For better presentation, remove the gridlines from the chart area and use a clean, sans-serif font. Ensure the Y-axis does not start at zero if your data is clustered far from zero; this allows the variation to be more visible to the viewer.
Troubleshooting
The LCL for the I-chart is a negative number, but my data cannot be negative: This is common when process variation is high relative to the mean. In this case, simply set the LCL to zero. A negative LCL is mathematically correct based on the formula but physically impossible for certain measurements (like weight or time).
The chart looks like a flat line: Check your Y-axis scale. If you have one massive outlier, Excel will scale the axis to fit that point, making the rest of the data look flat. Right-click the axis, select Format Axis, and manually adjust the Minimum and Maximum bounds to better fit the majority of your data.
The Moving Range values are all zero: This happens if your measurement tool lacks the necessary resolution. If your tool only measures to the nearest whole number, but the process varies by decimals, the MR will be zero. You will need a more precise measurement instrument to create a meaningful I-MR chart.
Formula errors (#VALUE!): Ensure there are no text strings or spaces in your data columns. Even a single space in a cell can cause Excel to treat the column as text, which breaks the AVERAGE and ABS functions.
Frequently Asked Questions
When should I use an I-MR chart instead of an X-bar R chart?
Use an I-MR chart when you have a sample size of one. This occurs when measurements are taken individually, the process is very slow, or the product is homogeneous (like a chemical batch) where one sample represents the entire lot.
What does it mean if a point is outside the control limits?
A point outside the limits indicates a "special cause" of variation. This means the process has shifted or an anomaly occurred that is not part of the normal, random noise of the system. It requires investigation to find the root cause.
How many data points are enough to start an I-MR chart?
While you can technically create one with a few points, 20 to 25 observations are generally recommended to establish a stable baseline and reliable control limits.
Can I use I-MR charts for non-normal data?
I-MR charts assume the underlying data follows a normal distribution. If your data is heavily skewed, the control limits may produce too many false alarms. In such cases, you may need to transform the data (e.g., using a log transformation) before plotting.
Why is the MR chart important if I already have the I-chart?
The I-chart shows you where the process is, but the MR chart shows you how stable the process is. A process can have a stable mean (I-chart) but wildly increasing variation (MR-chart), which signals a looming failure.