How to Expand an Excel Running Balance Formula for More Income Types in WPS Office
Question details
The user wants to extend a running balance formula in WPS Office Excel so benefits, pensions, and other credit categories are recognized dynamically instead of hard-coding every income type.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- The user maintains an income and expense register and needs a flexible running balance for multiple credit and debit transaction types.
- Observed behavior
- The current running balance formula requires hard-coded income types or does not flexibly apply positive and negative signs to new categories.
Before editing formulas, confirm the register has a previous balance cell and an amount column, and decide where to place a separate transaction type and multiplier lookup table.
Create a transaction multiplier lookup table and use a flexible VLOOKUP running balance formula
Use this when you want benefits, pensions, and other credit categories to update the running balance automatically from one table.
A lookup table separates transaction types from the formula. Each row contains the transaction type and its multiplier: credit or income types can use 1, while expense or debit types can use -1. New future types are added only to the table.
Select two empty columns and enter Type and Multiplier as headers. Under Type enter Income, Benefit, Pension, Interest, Expense, Transfer, and similar items. Under Multiplier enter 1 for credits or income and -1 for debits or expenses.
Select the header and data rows, go to the Insert tab > Table, check My table has headers, and click OK. Rename the table Table1 in the Table Design tab if it is not already named Table1.
Select the Type cells in your register, click Data tab > Data Validation > List, and set Source to =Table1[Type] so new transaction types appear automatically.
In the running balance cell for the first data row, enter =IFERROR(F2+(D3*VLOOKUP(B3,Table1,2,0)),""). D3 is the amount, B3 is the transaction type, and F2 is the previous balance.
Use the fill handle to copy the formula to the remaining balance cells. Add any new income type only to Table1 and it will be recognized by the formula.

Use a helper credit/debit sign column with IF/OR for a small fixed list
Use this only when you cannot create a table and have a small, fixed list of credit types.
Build a self-updating running balance in WPS Office Spreadsheets
WPS Spreadsheets can directly fix the running balance formula: create a lookup table, apply Data Validation, and use VLOOKUP so benefits, pensions, and other credit types are recognized automatically without hard-coding.
- 1. Open the workbook in WPS Office Spreadsheets: Launch WPS Office, click Spreadsheets, and open the Excel .xlsx workbook that contains the running balance register.
- 2. Create the lookup table: Select a blank area, enter Type and Multiplier headers, list benefit, pension, interest, and income as 1 and expenses or withdrawals as -1, then click Insert > Table.
- 3. Apply the VLOOKUP balance formula: In the running balance column, enter =IFERROR(F2+(D3*VLOOKUP(B3,Table1,2,0)),"") and fill it down.
- 4. Add new income types safely: Type the new category in Table1 and set its multiplier to 1. The existing drop-down list and balance formula include it immediately.

Frequently Asked Questions
Where should I put the lookup table in WPS Spreadsheets?
Place it on a separate sheet or in an unused area of the register. Give it Type and Multiplier headers, then select the range and click Insert > Table so =Table1[Type] works in Data Validation.
Can I add a new income type such as Interest without changing the formula?
Yes. Add Interest under the Type column in Table1 with a multiplier of 1. Because the formula uses VLOOKUP and the drop-down list uses =Table1[Type], it is recognized immediately.
Why does my formula show blank when a transaction type is not found?
The IFERROR wrapper returns an empty string. Check the transaction type spelling against Table1, or expand the Data Validation source to =Table1[Type] so only valid types are used.
What does the multiplier mean in the running balance formula?
A multiplier of 1 adds the transaction amount and a multiplier of -1 subtracts it. Use 1 for Benefits, Pensions, Income, Interest, or credits, and -1 for Expenses, Withdrawals, or debits.




