Measurement system analysis

MSA with Excel or software: sources of error and how to check

Excel templates are common and often good enough, until they are not. Typical sources of error and how to check any tool with known data.

About 4 min read

In brief
  • Spreadsheets are flexible but error-prone; research finds errors in many spreadsheets.
  • Common: d₂ instead of d₂*, wrong K factors, rounding, no ANOVA.
  • Check every tool with reference data and edge cases.
  • Responsibility for the assessment stays with the user.
Contents

The starting point

Almost every company has one: the Excel file for measurement system analysis. Someone built it years ago; it was passed on, adapted, copied. You enter the measurements, and a result appears at the bottom. Usually it is right. But how do you know?

This article is not a plea against Excel. It shows where spreadsheets tend to go wrong, works through two typical mistakes with small numerical examples and describes how you can check any tool yourself, spreadsheet or software.

Rule of thumb: a formula that nobody checks any more is an assumption, not a calculation.

Why Excel so often?

Spreadsheets are available everywhere, quickly adapted and seemingly free. Many templates for Cg, Cgk and gage R&R have been circulating in companies for years. For single, simple evaluations this can be enough. It gets difficult with many studies, changing users, audits and methods that go beyond the average and range method.

Typical sources of error

Source of errorConsequence
d₂ instead of d₂* for small studies (appraisers × parts below 16)repeatability overestimated, by about 3 % with 2 appraisers, 5 parts and 2 trials
K factors for a different number of trials or appraisersEV and AV scaled wrongly
Correction of reproducibility (EV²/nr) forgottenAV too large
Only average and range method, no ANOVAappraiser × part interaction goes undetected
Intermediate results roundeddeviations from the correct calculation
Tolerance and total variation as reference mixed up%GRR with the wrong meaning
ndc rounded instead of truncated (or vice versa)deviation from the required rule
Formulas overwritten, range does not fit the number of partswrong results go unnoticed

The AIAG manual describes both methods; ANOVA is more accurate and detects the interaction. Some company guidelines, such as Bosch Booklet 10, call the average and range method outdated and recommend ANOVA with suitable statistics software.

Two mistakes, recalculated

Mistake 1: d₂ instead of d₂*

In the average and range method, for each part and each appraiser you take the range of the trials, i.e. largest minus smallest value, and from that the mean R̄. R̄ becomes the repeatability by dividing it by a table factor. This factor converts ranges into a standard deviation.

The well-known factor d₂ = 1.128 applies to two measurements and many ranges. With few ranges, for example 2 appraisers times 5 parts = 10 ranges, the correct factor is slightly larger, d₂* = 1.16. An example with R̄ = 2.0 µm:

EVwithd2=2.01.128=1.773µm
EVwithd2*=2.01.16=1.724µm
With d₂, EV is 2.8 % too large

Sounds small, but with a result close to 10 % or 30 % it can decide between “acceptable” and “conditionally acceptable”.

Mistake 2: forgetting the AV correction

The reproducibility AV follows from the difference between the appraiser means, X̄diff. But this difference also contains random repeatability, which has to be subtracted. The AIAG manual therefore writes:

AV=(X̄diff·K2)2−EV2n·r
n parts, r trials, K₂ = 0.7071 for 2 appraisers

Example with X̄diff = 3.0 µm, EV = 1.8 µm, 5 parts and 2 trials:

with correction
(3.0·0.7071)2−1.8210=4.500−0.324=2.044µm
without correction: 3.0 · 0.7071 = 2.121 µm, i.e. 3.8 % too large

Both mistakes are small, but they go in the same direction: the measurement system looks worse than it is. To check your spreadsheet, recalculate an example from the AIAG manual and compare every intermediate result.

What research says about spreadsheets

Raymond Panko evaluated studies on spreadsheet errors over many years. In field audits a large share of the spreadsheets examined contained errors, and the share of faulty cells was typically a few percent. This matches general error rates of human work. What proved effective above all was cell-by-cell inspection, which is laborious.

How to check any tool

  • Recalculate with reference data sets: examples from the AIAG manual; for software per ISO 22514-7, reference data are given in ISO/TR 11462-4.
  • Compare intermediate results, not just the final one: EV, AV, PV, degrees of freedom, factors.
  • Test edge cases: small studies, unequal trials, one appraiser, values at the resolution limit.
  • Document which method was used; ANOVA and the range method may differ slightly.
  • The example data of our articles are available as CSV and can be recalculated with any tool.

What software should do

  • all required procedures with the formulas of the respective guideline, including ANOVA and interaction
  • store measurements unchanged, round nothing, keep the order of entry
  • document traceably: formulas, method, limits, editor, changes
  • reports that an auditor understands without the file
  • import data instead of retyping it

STATlum is such software for Windows, local and without an account. Regardless of the tool: responsibility for the assessment stays with you, and every tool should be checked against known data before use.

Frequently asked questions

Is Excel forbidden for MSA?

No. What matters is that the calculation is correct and traceably documented. With many studies, several users and audits this quickly becomes laborious in spreadsheets.

Why do results differ between programs?

Mostly because of different methods (ANOVA or ranges), pooling of the interaction, rounding or the reference. Therefore always state the method.

How do I check an existing template?

Recalculate with reference data, compare intermediate results and test edge cases, for example a small study with 2 appraisers and 5 parts.

Sources

This article explains the method. It does not replace the guideline that applies to your part or the professional assessment of an actual study.