Blog · How-to guides · Finance and FP&A teams
Calculate Pearson correlation from matched business observations with the CORREL function. Work through the arithmetic, inspect a scatter chart and distinguish association from evidence of cause.
For correlation Excel provides CORREL, which measures the linear association between two numeric variables observed on the same rows. Match the records, calculate the coefficient, and inspect the paired observations before using the result in a business decision.
Choose the unit first: a branch in a month, a customer in a quarter, or a product in a week. Every row must represent the same unit for both measures. Sorting one column independently destroys that match even when both columns still contain the right totals.
A US field-service company wants to know whether branches completing more service jobs also use more overtime. Finance exports completed jobs and paid overtime hours for the same September period and matches the branch IDs. These are the complete pairs in A1:C7:
| Branch | Completed jobs, x | Overtime hours, y |
|---|---|---|
| A | 10 | 25 |
| B | 20 | 45 |
| C | 30 | 35 |
| D | 40 | 65 |
| E | 50 | 55 |
| F | 60 | 75 |
| Total | 210 | 300 |
| Mean | 35 | 50 |
The totals are controls, outside the formula ranges. The means are 210 / 6 = 35 jobs and 300 / 6 = 50 overtime hours. Keep the source period and branch definitions beside the table. Resolve duplicate IDs and unexplained missing values using the spreadsheet cleaning checklist.
Enter the formula in an empty cell:
=CORREL(B2:B7,C2:C7)
The result is 0.8857142857, or 0.886 rounded to three decimals. Microsoft's CORREL documentation specifies the two input ranges and explains that zero values are included, while text, logical values and empty cells are ignored.
Pearson r = Sum of [(x - mean x) × (y - mean y)] / Square root of {Sum of [(x - mean x)²] × Sum of [(y - mean y)²]}.
The coefficient runs from -1 to +1. Positive values indicate a tendency for higher observations of one measure to accompany higher observations of the other; negative values indicate the opposite direction. Zero describes the absence of linear association, which still leaves room for a curved relationship.
Here, the positive coefficient summarizes a tendency for branches with more completed jobs to have more overtime. It does not measure overtime hours per additional job, or the savings from changing staffing. Those are different questions; the existing regression analysis in Excel guide explains fitted slopes and their checks.
Subtract each mean, multiply the deviations, and square each deviation. The full calculation is:
| Branch | x - 35 | y - 50 | Product of deviations | Squared x deviation | Squared y deviation |
|---|---|---|---|---|---|
| A | -25 | -25 | 625 | 625 | 625 |
| B | -15 | -5 | 75 | 225 | 25 |
| C | -5 | -15 | 75 | 25 | 225 |
| D | 5 | 15 | 75 | 25 | 225 |
| E | 15 | 5 | 75 | 225 | 25 |
| F | 25 | 25 | 625 | 625 | 625 |
| Total | 0 | 0 | 1,550 | 1,750 | 1,750 |
With deviations in D and E, their product in F, and their squares in G and H, enter these in row 2 and fill through row 7:
D2: =B2-AVERAGE($B$2:$B$7)
E2: =C2-AVERAGE($C$2:$C$7)
F2: =D2*E2
G2: =D2^2
H2: =E2^2
Then reconstruct the coefficient:
=SUM(F2:F7)/SQRT(SUM(G2:G7)*SUM(H2:H7))
The denominator is the square root of 1,750 × 1,750, or 1,750. Dividing 1,550 by 1,750 gives 0.8857142857, matching CORREL. Both deviation columns also sum to zero, which checks the means and copied formulas. Keep full precision until presentation.
Select the paired numbers in B1:C7 and insert an XY scatter chart with markers. Put completed jobs on the horizontal axis and overtime hours on the vertical axis. Microsoft's scatter chart guidance explains that both axes use numerical values, so each point represents an actual pair.
Look for a broad linear pattern, isolated points, curves and distinct branch groups. The NIST scatter plot guide identifies those diagnostic questions and states that association does not prove causation. A coefficient alone hides the shape you need to inspect.
Finance can report: "Across six branches in September, completed jobs and overtime hours have a positive Pearson correlation of 0.886." Then ask operations to examine branch size, staffing and job complexity. Larger branches may simply have more of both measures. The association and cause guide explains how to keep the claim within the evidence.
For an inventory decision about fast, slow and nonmoving items, use FSN analysis in Excel to classify movement before asking whether other measures are associated with it.
Covirage is not affiliated with Microsoft.
Bring the branch, customer or period export with both measures and their matching identifiers. Covirage maps the columns; its tools compute and check the figures, and the external AI model explains the results with every figure traced to its rows. Create a free Covirage account and bring a sample of your own data.
See Covirage for finance teams for the business context.
Check the ranges first. Different numbers of data points can produce #N/A. An empty range or a variable with no variation produces #DIV/0!. Rebuild a table of complete numeric pairs and confirm that both measures vary before running the formula again.
No. The sign describes direction: one measure tends to be lower when the other is higher. Strength concerns how close the coefficient is to either endpoint. A negative association may be useful, but its business interpretation still depends on the observations and their context.
Be careful with ordered rating categories. Coding them with consecutive numbers assumes meaningful distances between categories that the survey may not support. A rank correlation may better match the question. Keep tied ratings, document the method and avoid presenting a raw Pearson coefficient as unquestionable evidence.