Function Problems

How to Automatically Calculate Project Budget Totals by Category in WPS Spreadsheets

Algirdas JasaitisAlgirdas Jasaitis Nov 13, 2026 869 views

Question details

The user needs a formula-based method to automatically sum project expenditures by category as new rows are added to an Excel/WPS Spreadsheets budget worksheet.

How to Automatically Calculate Project Budget Totals by Category in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
Managing a project budget with expense amounts and category labels such as Planned Miscellaneous and Unplanned Miscellaneous.
Observed behavior
Category totals should update automatically when new expenditures are entered, without manually editing each total.
Before you start

Open your budget workbook in WPS Spreadsheets and confirm that expense amounts are in one column and category labels are in an adjacent column, with the same category spelling used consistently. Also identify the summary range where the category list is located.

Solution 1Recommended

Use SUMIF to Total Project Budget Amounts by Category

Best when you have a simple range and want a quick formula that updates automatically as new amounts are added within the referenced range.

The SUMIF function sums the Amount column only when the Category column matches the category label in the summary row. The absolute references keep the data range locked while the category cell moves down.

1
Select the summary total cell

Open the workbook in WPS Spreadsheets and click cell B2, or the first empty cell next to your category list, where the first category total should appear.

2
Enter the SUMIF formula

Type =SUMIF($E$20:$E$10000,A2,$D$20:$D$10000) and press Enter. Replace D20:D10000 with the actual Amount range and E20:E10000 with the actual Category range.

3
Fill the formula down

Drag the fill handle from B2 down through the remaining category rows so each summary row calculates its own total.

4
Verify automatic updates

Add a test expenditure row within the referenced range and confirm the matching category total increases automatically.

Use SUMIF to Total Project Budget Amounts by Category
Formulas update automatically: As long as new expenditures are entered inside D20:D10000 and E20:E10000, the totals recalculate immediately.
WPS Spreadsheets Solution

Create Automatic Project Budget Category Totals with WPS Spreadsheets

Use WPS Spreadsheets to apply a SUMIF formula or Excel Table structured reference so project budget totals for categories such as Planned Miscellaneous and Unplanned Miscellaneous update automatically whenever new expenditures are added.

  1. 1. Open your budget workbook: Launch WPS Spreadsheets and open the project budget workbook that contains the expenditure Amount and Category columns.
  2. 2. Prepare the category summary list: List unique categories such as Planned Miscellaneous and Unplanned Miscellaneous in a summary area, starting at A2.
  3. 3. Enter a SUMIF formula: Click the first total cell and enter =SUMIF($E$20:$E$10000,A2,$D$20:$D$10000), replacing the ranges with your data.
  4. 4. Fill down and test: Drag the fill handle down the summary list, then add a new expenditure row to verify the category total updates.
Automatically recalculates category totals as new rows are addedWorks with Excel .xlsx and .xls files for seamless compatibilityFree, lightweight spreadsheet editor with a familiar ribbon interfaceSupports SUMIF, structured references, and other Excel formulas
microsoft office alternative - wps office

Frequently Asked Questions

Why is my SUMIF category total showing 0?

Check that the category label in the SUMIF criteria cell exactly matches the entries in the Category column, including extra spaces, spelling, and capitalization. SUMIF is not case-sensitive, but any accidental spaces will prevent a match.

How do the category totals update when I add new expenses?

As long as the new expenditure row is inside the referenced SUMIF range, WPS Spreadsheets recalculates the formula automatically. If you will add rows beyond that range, convert the data to an Excel Table so the structured reference expands automatically.

Can I use this SUMIF method in WPS Spreadsheets with an existing Excel file?

Yes. WPS Spreadsheets opens and saves Excel .xlsx files and supports SUMIF, Excel Tables, and structured references, so you can use the same workbook without losing compatibility.

How do I convert my budget data to an Excel Table in WPS Spreadsheets?

Click anywhere in the data range, go to Insert > Table in the ribbon, confirm the range and header checkbox, then click OK. You can then use table column names in the SUMIF formula.