Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use Excel’s CORREL Function to Measure Correlation

Use CORREL on two aligned ranges, interpret values from −1 to +1, and fix errors caused by missing data or constant values.

Table of Contents

Use =CORREL(array1, array2) to calculate the Pearson correlation between two sets of paired numbers. A result near +1 indicates a strong positive linear relationship. A result near −1 indicates a strong negative one. A value near zero indicates little linear association and can still occur when the variables have a nonlinear relationship.

Compare paired data in Excel

Put one observation on each row. For example, use column A for sales, B for TV ad spend, and C for radio ad spend, with all three figures on each row referring to the same period and market.

What is the CORREL function in Excel? Picture 1
Align the sales and spending values by observation before calculating a correlation.
=CORREL(A2:A201, B2:B201)
=CORREL(A2:A201, C2:C201)
What is the CORREL function in Excel? Picture 2
Compare sales with TV ad spending.
What is the CORREL function in Excel? Picture 3
Compare the same sales rows with radio ad spending.

If one result is 0.78 and the other is 0.576, both are positive in this example and the first is closer to +1. That comparison alone cannot establish which campaign caused more sales. Check for seasonality, extreme values and other factors shared by the rows.

Check errors and visualize the relationship

  • #N/A: Check that the input ranges are the same size and start on the same observation.
  • #DIV/0!: Check that there are usable numeric pairs and that neither range is constant.
  • Unexpected result: Look for blank cells or numbers stored as text. Excel ignores text and blanks but includes numeric zero. Verify that zero represents a real observation.

Use an XY scatter chart to look for outliers and curves. A PivotTable can prepare grouped totals, and the desktop Data > Data Analysis > Correlation tool can produce a matrix when the Analysis ToolPak is enabled. Check Microsoft’s CORREL reference for formula behavior and the chart guide for choosing a clear display.

What is the CORREL function in Excel? Picture 4
Summarizing the data changes which observations are being compared.
What is the CORREL function in Excel? Picture 5
A correlation matrix compares more than two numeric columns at once.
Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.