logo
search
Formula Errors

Calculate Completion Percentage When Cells Contain N/A in Excel

Chanuka GeekiyanageChanuka Geekiyanage Sep 28, 2026 869 views

Question details

The user needs to calculate an average percentage across multiple columns where text values of "n/a" are explicitly treated as 100%, and avoid divide-by-zero errors for rows containing only "n/a".

How to Calculate Completion Percentage When Cells Contain N/A
Product
Spreadsheet
Device & OS
not provided
Scenario
Calculating row-wise completion rates where missing data or exceptions are marked as "n/a" and should be considered fully complete.
Observed behavior
Standard AVERAGE or SUM/COUNT formulas ignore text cells, which skews the percentage or results in a #DIV/0! error when the entire row consists of "n/a" values.
Before you start

Ensure your percentage columns are clearly defined and verify the exact text string (like "n/a", "N/A", or "Not Applicable") used in your dataset.

Solution 1Recommended

Use an Array Formula with IFERROR and AVERAGE

This method converts "n/a" values to 1 (100%) during the average calculation and catches divide-by-zero errors to correctly output 100%.

By combining IFERROR, AVERAGE, and IF, you can force the spreadsheet to evaluate text strings as numeric values for the calculation. This prevents the formula from ignoring text cells and handles instances where the entire dataset is text.

1
Select the target cell

Click on the cell where you want the final completion percentage to appear.

2
Enter the formula

Type the formula =IFERROR(AVERAGE(IF(F6:L6="n/a",1,F6:L6)),1). Replace 'F6:L6' with your actual cell range.

3
Confirm as an array formula

If you are using an older version of Excel or Spreadsheet, press Ctrl + Shift + Enter to evaluate it as an array formula. Curly brackets {} will appear around the formula.

4
Format as percentage

Right-click the result cell, select 'Format Cells', choose the 'Percentage' category, and click OK to display the result properly.

Use an Array Formula with IFERROR and AVERAGE
Formula Breakdown: The IF function treats 'n/a' as 1 (100%), AVERAGE calculates the mean of these adjusted values, and IFERROR ensures rows with entirely 'n/a' return 100% instead of a #DIV/0! error.

Calculate Complex Percentages Seamlessly with WPS Spreadsheet

WPS Spreadsheet supports advanced array formulas, IFERROR, and AVERAGE functions natively, making it easy to process completion tracking and data analysis without hassle.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your percentage data.
  2. 2. Enter the formula: Click on the target cell and type =IFERROR(AVERAGE(IF(F6:L6="n/a",1,F6:L6)),1).
  3. 3. Evaluate the array: Press Ctrl + Shift + Enter to confirm the array formula.
  4. 4. Apply Percentage Formatting: Click the '%' icon on the Home tab to instantly format the cell as a percentage.
Fully compatible with Microsoft Excel formulas and functions.Supports dynamic arrays and complex nested functions like IFERROR effortlessly.Free and lightweight alternative for daily data processing tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get a #DIV/0! error when averaging cells with N/A?

The standard AVERAGE function ignores text values. If a row contains only text strings like "n/a", the function has a divisor of zero, resulting in a #DIV/0! divide-by-zero error. Wrapping the formula in IFERROR handles this exception gracefully.

Does the text case matter when using the IF function for 'n/a'?

No, the basic IF function is not case-sensitive. Both "n/a" and "N/A" will be evaluated as equal when performing logical tests in the spreadsheet.

How do I format the formula result as a whole number instead of a decimal?

You can either change the cell format to "Percentage" with zero decimal places, or multiply your entire formula by 100. For example: =IFERROR(AVERAGE(IF(F6:L6="n/a",1,F6:L6)),1)*100.