CORREL Function (Gnumeric)
Learn the CORREL function in Gnumeric: Returns the correlation coefficient.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by 1.12.62; original introduction not established.
- Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-stat function module must be included and enabled.
- Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
What CORREL does
CORREL returns Pearson’s linear correlation coefficient for two arrays of corresponding observations. A coefficient close to +1 denotes a strong positive linear association, one close to −1 a strong negative linear association, and one near 0 indicates little linear association. A zero coefficient does not rule out a nonlinear pattern. The result is dimensionless and lies between −1 and +1 whenever the measure is defined. This purpose and the arguments are stated in the official CORREL reference [S1].
Exact Gnumeric syntax and arguments
=CORREL(array1,array2)
| Position | Official name | Expected type and meaning | Required? / default |
|---|---|---|---|
| 1 | array1 |
First numeric data set; a same-length range such as A2:A6. |
Required; no default |
| 2 | array2 |
Second numeric data set paired by position with array1, such as B2:B6. |
Required; no default |
The order is not a display-axis designation: correlation is symmetric, so swapping the numeric paired ranges gives the same result. Exactly two arguments are documented, not a variable-length list and not a single combined two-column range. Text strings and blank cells are documented as ignored; see troubleshooting for pairing precautions. [S1]
Reproducible paired-data worksheet
Enter the following numeric values in a new sheet. The first row is a label, not part of the formula. Each row represents one observation; maintain that row pairing when copying or sorting.
| Row | A — Hours practiced (X) | B — Assessment points (Y) | C — Reverse ranking (Z) |
|---|---|---|---|
| 1 | Hours | Points | Reverse |
| 2 | 1 | 2 | 5 |
| 3 | 2 | 3 | 4 |
| 4 | 3 | 5 | 3 |
| 5 | 4 | 4 | 2 |
| 6 | 5 | 6 | 1 |
All data cells A2:C6 contain genuine numbers. Their independent statistics are: mean(X) = 3, mean(Y) = 4, Σ(X−3)(Y−4) = 9, Σ(X−3)² = 10, Σ(Y−4)² = 10, with n = 5. The reverse-ranked column C makes it possible to test a deliberately negative relationship. The figures below are independently calculated expectations rather than observed output from a running Gnumeric installation.
Worked formulas and expected results
| Enter formula | Independently calculated output | Why it matters |
|---|---|---|
=CORREL(A2:A6,B2:B6) |
0.9 |
Strong positive linear association for the five paired rows. |
=CORREL(B2:B6,A2:A6) |
0.9 |
Reversing X and Y does not reverse the result. |
=CORREL(A2:A6,A2:A6) |
1 |
Identical nonconstant measurements correlate perfectly. |
=CORREL(A2:A6,C2:C6) |
-1 |
Reverse ordering gives a perfect negative linear relationship. |
=CORREL(A2:A6,B2:B6)^2 |
0.81 |
Square the sample correlation for a simple one-predictor linear fit interpretation. |
The independent calculation uses deviations from their respective means:
X − mean(X): -2, -1, 0, 1, 2
Y − mean(Y): -2, -1, 1, 0, 2
Σ cross-products = 4 + 1 + 0 + 0 + 4 = 9
Σ squared X deviations = 10
Σ squared Y deviations = 10
r = 9 / SQRT(10 × 10) = 0.9
This normalization cancels the choice of population or sample covariance divisor when applied consistently. The five pairs are an illustration rather than evidence of a real-world relationship.
Advanced practical use: a consistency flag
A training coordinator can flag whether recent paired hours and scores have a positive linear association above a chosen internal review threshold:
=IF(CORREL(A2:A6,B2:B6)>=0.8,"Review strong positive pattern","Check relationship")
Expected: Review strong positive pattern. The 0.8 threshold is an analyst-defined rule for this example, not an official Gnumeric feature, statistical test or claim of causation. If data are recorded over time, prefer plotting a scatter chart and checking individual points before acting on the flag.
For larger reports, you can compute correlations between several aligned series using repeated calls. Gnumeric also provides a correlation tool for a multi-variable analysis, but that graphical tool is distinct from this cell formula. Repeat the exact pairwise checks for each variable and watch for missing rows. A single coefficient can be distorted by one extreme observation.
Differences from closely related Gnumeric functions
PEARSONis a separately registered documented function for the same Pearson product-moment correlation; the five-row numeric data here independently produce0.9for both. [S2]COVARcomputes covariance in the product of the variables’ units. For this worksheet its population result is1.8, not0.9; covariance is not a normalized correlation. [S3]RSQis a related fit diagnostic. SquaringCORRELproduces0.81for this specific simple paired example. This does not certify an arbitrary nonlinear regression or multivariable model.
Input quality and troubleshooting
- Different row counts or shifted rows: supply equal-shaped ranges containing genuinely corresponding observations. A pairwise measure has no meaning if X and Y were independently sorted. When copying formulas, inspect the highlighted ranges and lock rows/columns with
$where appropriate. - Blank, text, or Boolean data: Gnumeric’s official Statistics reference explicitly says text and empty cells are ignored for this function; the release-tagged collection implementation also excludes Boolean values. It is safer to clean and verify pairs in a helper table first. Do not assume a missing measurement in one column is safely re-paired with the next row in the other column; the exact malformed-input behavior needs native testing.
- Error-valued cells: fix upstream errors rather than silently replacing them with zero. The behavior and exact error label for a referenced cell that already contains an error were not tested in Gnumeric.
- Zero useful pairs, unequal-length arrays or invalid argument types: these can prevent a meaningful result. Confirm inputs first and test the exact error code in your installed version; the current manual does not specify an error code for every such case.
- Locale-specific syntax: the examples use the English-language formula name, comma argument delimiter and dot decimal. Gnumeric follows the configured operating-system locale; use the separators/format accepted by your own installation. The exact locale-specific formula delimiter was not natively checked in this review.
- Interpretation: a pattern in two columns does not by itself establish causation, accuracy of the underlying measurements, or a statistically significant relationship.
CORREL-specific edge cases
A constant series such as 7,7,7,7,7 has zero standard deviation, so Pearson correlation is mathematically undefined: do not publish 0 as its expected correlation. Inspect Gnumeric’s exact displayed error code during native QA; it was not independently observed here. Fewer than two varying numeric pairs likewise do not support a meaningful coefficient. Correlation is sensitive to outliers, so a scatter plot is a useful verification companion.
Compatibility and function identity
The Gnumeric manual marks CORREL as Excel compatible [S1], but that label does not establish every corner-case behavior or locale parser rule in another program. CORREL is a distinct registered function name. This guide targets the documented Gnumeric 1.12-series implementation and references 1.12.62 release context; we made no observations in the native application and no claims about untested earlier editions.
Version, support and evidence (checked 2026-10-13 UTC)
Gnumeric’s official 1.12-series Statistics manual documents this formula’s name, argument order and high-level behavior. The official Gnumeric 1.12.62 release announcement establishes release context; it does not establish that any example on this page was executed. The official function catalogue records catalogue registration and upstream implementation/test classifications, not a test run for this manuscript. The official localization manual documents locale configuration. Gnumeric is distributed primarily through supported operating-system packages; see its official download guidance for platform availability.
Validation limits: Official Gnumeric 1.12.62 source was checksum-verified and inspected, and numerical examples were independently calculated. Native Gnumeric execution, screenshots, locale regression and workbook round-trip tests were not performed.
- [S1] Gnumeric Statistics reference — CORREL, official GNOME-hosted manual, accessed 2026-10-13; supports syntax, arguments, ignoring strings/blank cells, and its compatibility label.
- [S2] Gnumeric Statistics reference — PEARSON, official manual, accessed 2026-10-13; independently documents the paired-data product-moment function.
- [S3] Gnumeric Statistics reference — COVAR, official manual, accessed 2026-10-13; supports covariance comparison.
- [S4] Official Gnumeric 1.12.62 source archive — checksum-verified
plugins/fn-stat/functions.cconfirms CORREL’s population-correlation callback, PEARSON’s delegation to CORREL, and COVAR’s population-covariance callback with text/Boolean/blank collection flags. Source inspection, not native execution.