How to Fix the Excel AVERAGE #DIV/0! Error
Question details
The user needs to resolve a #DIV/0! error that occurs when using the AVERAGE function on cells formatted as percentages.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating the average of a range of percentage values in a spreadsheet.
- Observed behavior
- The AVERAGE function returns a #DIV/0! error because the referenced cells are being treated as text rather than numeric values, causing the function to find no numbers to calculate.
Verify that the cells you are trying to average are not genuinely blank, as the AVERAGE function will return a #DIV/0! error if no numeric values exist in the selected range.
Convert Text Values to Numbers Using F2
Use the F2 shortcut to force Excel to re-evaluate individual cells and convert text-formatted percentages into usable numeric values.
Even if cells are visually formatted as percentages, Excel may still store them as text (especially if data was imported or copied from another source). Re-evaluating the cell content manually forces the application to recognize the number.
Click on one of the cells containing the percentage value that is causing the formula to fail.
Press the F2 key on your keyboard to edit the contents of the active cell directly.
Press the Enter key. This action forces the application to recalculate the cell format, converting the text string into a numeric percentage.
Look at the cell containing your AVERAGE formula to verify that the #DIV/0! error is resolved. Repeat for other cells if necessary.
Handle Formulas Easily in WPS Spreadsheet
Avoid frustrating #DIV/0! errors by using WPS Spreadsheet. Its intelligent cell formatting and error-checking tools help you quickly identify and convert text-stored numbers, ensuring your AVERAGE formulas work flawlessly.
- 1. Open your file in WPS Office: Launch WPS Spreadsheet and open the workbook containing the formula errors.
- 2. Select the data range: Highlight the range of percentage cells that are being treated as text.
- 3. Use smart error checking: Click the small warning icon that appears next to the selected cells and choose 'Convert to Number'.
- 4. Apply your formula: Type =AVERAGE(range) into your target cell to instantly get accurate mathematical results.

Frequently Asked Questions
What exactly does the #DIV/0! error mean?
The #DIV/0! error occurs when a formula attempts to divide a number by zero or by an empty space. In the context of the AVERAGE function, it means the function cannot find any valid numeric data in the referenced range to complete its calculation.
Why are my percentages being stored as text?
This commonly happens when data is imported from external sources (like a database or web page) or pasted as plain text. The system imports hidden formatting characters that prevent the spreadsheet from recognizing the entries as standard numbers.
Can I use a formula to ignore errors when calculating an average?
Yes. You can use the IFERROR function combined with your formula (e.g., =IFERROR(AVERAGE(A1:A10), 0)) to display a zero or a blank instead of the error. Alternatively, the AVERAGEIF function can be used to only average cells meeting specific numeric criteria.
How do I quickly convert a large batch of text to numbers?
Select the entire range of cells, go to the Data tab on your ribbon, click 'Text to Columns', and then click 'Finish' immediately in the prompt window. This forces the spreadsheet to evaluate all selected cells as numbers simultaneously.




