How to Sum Monthly Excel Results When VLOOKUP Returns #N/A
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.

- 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.
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.
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.
Click on the cell in your annual summary sheet where you want the total for a specific specialist to appear.
Type the SUMIF formula for January. For example: =SUMIF('Jan. Summary'!$C$8:$C$76, [@SPECIALIST], 'Jan. Summary'!D$8:D$76).
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).
Continue chaining the SUMIF functions with plus signs for all 12 months, then press Enter to calculate the error-free annual total.

Wrap VLOOKUP in IFERROR to Return Zero
Modify your original VLOOKUP formulas to output a 0 instead of an #N/A error, allowing standard SUM formulas to work perfectly.
Combine Sheets with Power Query and PivotTables
For a scalable and robust solution, use Power Query to append all monthly tables and summarize them with a PivotTable.
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. Open your workbook in WPS: Launch WPS Spreadsheet and open the file containing your monthly and annual summary sheets.
- 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. 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.

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.




