Formula Errors

How to Sum Monthly Excel Results When VLOOKUP Returns #N/A

Bushra ParveenBushra Parveen Oct 29, 2026 868 views

Question details

The user needs to calculate annual totals across multiple monthly Excel sheets where missing specialists cause VLOOKUP to return #N/A errors, without manually deleting the errors.

How to Sum Monthly Excel Results When VLOOKUP Returns #N/A
Product
Excel
Device & OS
not provided
Scenario
Consolidating monthly data into an annual total when some lookup values are missing in certain months.
Observed behavior
VLOOKUP returns #N/A for missing specialists, which breaks standard SUM formulas across the sheets.
Before you start

Ensure that all your monthly sheets have a consistent structure and that the specialist names are spelled exactly the same across all sheets to avoid false mismatches.

Solution 1Recommended

Use SUMIF to Add Results and Ignore Errors

SUMIF can match the specialist name and sum the corresponding values, naturally bypassing #N/A errors generated in other rows.

By using SUMIF instead of standard addition or the SUM function, you instruct the spreadsheet to only add values that match specific criteria (like the specialist's name). Since the missing specialists won't meet the criteria on sheets where they have an #N/A error, those errors are ignored during calculation.

1
Select the target cell

Click on the cell in your annual summary sheet where you want the total for a specific specialist to appear.

2
Enter the first month's SUMIF formula

Type the SUMIF formula for January. For example: =SUMIF('Jan. Summary'!$C$8:$C$76, [@SPECIALIST], 'Jan. Summary'!D$8:D$76).

3
Add subsequent months

Type a plus sign (+) and add the SUMIF formula for the next month: +SUMIF('Feb. Summary'!$C$8:$C$76, [@SPECIALIST], 'Feb. Summary'!D$8:D$76).

4
Complete the formula

Continue chaining the SUMIF functions with plus signs for all 12 months, then press Enter to calculate the error-free annual total.

Use SUMIF to Add Results and Ignore Errors
Formula Tip: Using absolute references (like $C$8:$C$76) ensures your ranges do not shift when you drag the formula down to calculate totals for other specialists.

Easily Handle Formula Errors and Consolidate Data in WPS Spreadsheet

WPS Spreadsheet provides powerful formula support, including SUMIF, IFERROR, and advanced PivotTables, making it easy to consolidate monthly reports and handle #N/A errors seamlessly.

  1. 1. Open your workbook in WPS: Launch WPS Spreadsheet and open the file containing your monthly and annual summary sheets.
  2. 2. Apply error-handling formulas: Select the cell containing your VLOOKUP and type =IFERROR(VLOOKUP(...), 0) to instantly convert #N/A errors into calculable zeros.
  3. 3. Consolidate quickly: Alternatively, go to the Data tab and use the PivotTable feature to quickly summarize all monthly data without writing complex, multi-sheet formulas.
Fully compatible with Microsoft Excel formulas, including VLOOKUP, SUMIF, and IFERROR.Advanced PivotTable features for quick and error-free data consolidation.Lightweight and fast, ensuring smooth performance even when processing 12 months of complex data.Free to use with a familiar, user-friendly interface that requires no learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does VLOOKUP return an #N/A error?

VLOOKUP returns an #N/A error when it cannot find an exact match for your lookup value in the first column of the specified table array. In this scenario, it happens because certain specialists did not work or appear in specific months.

Can I use SUM to add cells that contain #N/A errors?

No. If any cell within a SUM range contains an #N/A error, the entire SUM formula will also return an #N/A error. You must either bypass the error using functions like SUMIF or handle the error at the source using IFERROR.

What is the difference between IFERROR and IFNA?

IFERROR catches all formula errors (including #DIV/0!, #VALUE!, and #N/A) and replaces them with a specified value. IFNA specifically only catches the #N/A error, allowing other types of calculation errors to still display, which is helpful for troubleshooting.