Function Problems

Convert Numeric Ranges to an Average in Excel

Phi Hung VoPhi Hung Vo Nov 10, 2026 868 views

Question details

The user needs to convert text-based numeric ranges from survey responses into single average numbers for correlation analysis.

How to Convert Numeric Ranges to an Average in Excel
Product
Excel
Device & OS
not provided
Scenario
Processing survey response data containing text ranges (like 1-5, 16-20) to run correlation analysis.
Observed behavior
The data is structured as text string ranges, which cannot be directly analyzed mathematically and must be transformed into numerical averages.
Before you start

Ensure your data is formatted as text and verify the delimiter used (e.g., a standard hyphen). Identify any open-ended ranges like '90+' beforehand, as standard split formulas will return an error for them.

Solution 1Recommended

Convert a Single Range Using AVERAGE and TEXTSPLIT

Best for quick conversion of a standard text-based numeric range in a single cell.

1
Select the destination cell

Click on the empty cell next to your survey data range where you want the average to appear.

2
Input the combination formula

Type the formula =AVERAGE(--TEXTSPLIT(A1,"-")), assuming your text range is in cell A1.

3
Calculate and fill down

Press Enter to execute the formula, which splits the numbers and calculates their mean. Drag the fill handle from the bottom-right corner of the cell to apply the formula to the rest of your survey data.

Convert a Single Range Using AVERAGE and TEXTSPLIT
Compatibility Check: This efficient method requires Excel 365 or a spreadsheet tool that supports the TEXTSPLIT function.
WPS Spreadsheet Solution

Calculate Averages and Process Survey Data in WPS Spreadsheet

WPS Spreadsheet offers powerful formula support, including text extraction tools and advanced array functions, allowing you to seamlessly convert survey ranges into actionable average numbers for analysis.

  1. 1. Open your survey dataset: Launch WPS Spreadsheet and open the document containing your survey ranges.
  2. 2. Split data without formulas (Optional): Select the column with the ranges, go to the 'Data' tab, and click 'Text to Columns'. Choose 'Delimited' and use a hyphen as the separator to split the data into two columns.
  3. 3. Calculate the average: Use the standard =AVERAGE(B1:C1) function on the newly split columns to find the mean value quickly.
  4. 4. Use advanced text formulas: Alternatively, utilize WPS Spreadsheet's native formula integration to parse and average strings directly within a single cell.
Fully compatible with Microsoft Excel formulas and array functionsAdvanced Text-to-Columns feature for splitting range data without complex formulasLightweight application with high performance for large survey datasetsFree to download and use for everyday data analysis
microsoft office alternative - wps office

Frequently Asked Questions

Why does the TEXTSPLIT formula return a #NAME? error?

The #NAME? error occurs if your version of Excel or spreadsheet software does not support the TEXTSPLIT function, which was introduced in Excel 365. For older versions, you can use combinations of LEFT, RIGHT, and FIND functions instead.

How can I extract numbers using LEFT and RIGHT for older Excel versions?

You can use =AVERAGE(VALUE(LEFT(A1,FIND("-",A1)-1)), VALUE(MID(A1,FIND("-",A1)+1,LEN(A1)))) to manually split the text range by the hyphen and average the two extracted numbers.

What does the double minus (--) do in the formula?

The double minus (--) is a unary operator used to forcefully convert a text string that contains numerical characters (which is the default output of TEXTSPLIT) into actual mathematical numeric values so that functions like AVERAGE can compute them.

How do I fix the #VALUE! error when calculating ranges?

A #VALUE! error usually happens if there are hidden spaces in the text string, or if the delimiter in the cell does not exactly match the hyphen in your formula. Wrapping the cell reference with the TRIM function, such as TEXTSPLIT(TRIM(A1),"-"), can resolve trailing space issues.