Convert Numeric Ranges to an Average in Excel
Question details
The user needs to convert text-based numeric ranges from survey responses into single average numbers for correlation analysis.

- 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.
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.
Convert a Single Range Using AVERAGE and TEXTSPLIT
Best for quick conversion of a standard text-based numeric range in a single cell.
Click on the empty cell next to your survey data range where you want the average to appear.
Type the formula =AVERAGE(--TEXTSPLIT(A1,"-")), assuming your text range is in cell A1.
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.

Process Multiple Ranges Using MAP and LAMBDA
Ideal for Excel 365 users who want to apply the conversion dynamically across an entire column or array of data.
Handle Open-Ended Ranges with Conditional IF Statements
Standard split formulas will return an error for open-ended values like '90+', requiring an IF check.
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. Open your survey dataset: Launch WPS Spreadsheet and open the document containing your survey ranges.
- 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. Calculate the average: Use the standard =AVERAGE(B1:C1) function on the newly split columns to find the mean value quickly.
- 4. Use advanced text formulas: Alternatively, utilize WPS Spreadsheet's native formula integration to parse and average strings directly within a single cell.

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.




