How to Sum Invoice Amounts Across Multiple Excel Worksheets
Question details
The user needs to look up client names across multiple monthly worksheet tabs, sum their corresponding invoice amounts, and subtract that total from a starting balance on a summary sheet.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating monthly invoice data from multiple worksheet tabs into a single master tracking sheet.
- Observed behavior
- Attempting to use a 3D SUMIF formula across worksheets results in reference errors (#REF!) or zero values due to sheet name misspellings, trailing spaces, or invalid 3D reference ranges.
Verify that all client names and worksheet tab names match exactly across your workbook, paying special attention to remove any hidden trailing spaces that cause reference errors.
Use Explicit SUMIF References for Each Monthly Sheet
This is the most reliable method when standard 3D references fail or when your workbook structure does not support contiguous multi-sheet arrays.
Explicitly referencing each sheet ensures that the formula processes the criteria for every month individually before combining the results. This prevents array errors that commonly occur in complex cross-sheet calculations.
Click on the cell in your master tab (e.g., column C) where you want the calculated remaining amount to appear.
Type the formula combining the SUMIF for each month. For example: =D3-(SUMIF(January!B:B,A2,January!K:K)+SUMIF(February!B:B,A2,February!K:K)).
Continue adding a SUMIF statement for each required month within the parentheses, then press Enter to calculate the final value.
Apply a 3D SUM/SUMIF Formula
Use this formula if your monthly sheets are contiguous (side-by-side in the tab bar) and perfectly structured.
Consolidate Data Using Power Query
The best approach for recurring monthly imports or large datasets where combining manual formulas becomes difficult to maintain.
Consolidate Multiple Sheets Easily with WPS Spreadsheet
WPS Spreadsheet offers powerful data consolidation tools and full compatibility with complex formulas, making it effortless to sum invoice amounts across multiple worksheets.
- 1. Open your multi-sheet workbook: Launch WPS Spreadsheet and open the file containing your monthly invoice tabs.
- 2. Utilize Data Consolidate: Go to the Data tab and click 'Consolidate' to visually merge data from multiple monthly sheets without typing long formulas.
- 3. Execute cross-sheet formulas: Alternatively, type your SUMIF formulas exactly as you would in Excel; WPS perfectly processes cross-sheet references and complex calculations.

Frequently Asked Questions
Why does my cross-sheet SUMIF formula return a #REF! error?
A #REF! error typically occurs if the sheet names specified in your formula do not perfectly match the actual worksheet tab names. Check for typos, missing characters, or incorrect date formatting (like 'July 2024' instead of 'July').
Why is my SUMIF formula returning 0 instead of the correct invoice sum?
This happens when the criteria you are searching for (e.g., the client's name) has trailing spaces either in the master sheet or in the monthly tabs. Excel reads 'ClientName' and 'ClientName ' as two different values. Use the TRIM function or manually delete the extra spaces to fix the matching.
Can I use the INDIRECT function to sum across multiple sheets?
Yes. You can list all your worksheet tab names in a column (e.g., Z1:Z12) and use a combination of SUMPRODUCT, SUMIF, and INDIRECT to dynamically sum the values without manually updating the formula for every new month.




