Add Expense Amounts and Display a Running Total in Excel
Question details
Add individual expense amounts and display an automatically updated total in Excel.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Track gasoline purchases entered in separate cells and show their total in D5.
- Observed behavior
- Each purchase is stored separately, while a formula displays the combined amount in D5.
Choose the cells where you will enter each purchase and keep D5 available for the total. Make sure the cells in the SUM range do not include D5.
Calculate an updated expense total in D5
Use a SUM formula to keep one total updated as you enter purchases in a designated range.
Enter each gasoline purchase in a separate cell, such as B5 through B10. Leave unused cells in that range blank until you need them.
Select D5, type =SUM(B5:B10), and press Enter. If your amounts are in B5 and C5 instead, use =SUM(B5:C5).
Select D5, then go to Home and choose Currency from the Number Format menu to display the total as dollars.
Enter new amounts in the remaining cells from B5 through B10. If you add purchases outside that range, select D5 and update the formula to include them.

Show a running total beside each purchase
Use a cumulative formula when you want to see the total after each individual purchase.
Calculate expense totals in WPS Spreadsheets
Enter purchases in WPS Spreadsheets, use SUM to display an updated total, and apply currency formatting.
- 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing Excel file.
- 2. Enter expenses: Type each purchase amount in a separate cell in B5 through B10.
- 3. Calculate the total: Select D5, enter =SUM(B5:B10), and press Enter.
- 4. Format as currency: Select D5 and use the Number Format menu on the Home tab to choose Currency.

Frequently Asked Questions
Can I enter a purchase and a formula in the same Excel cell?
No. Enter the purchase in a separate cell, such as B5, and place the SUM formula in another cell, such as D5.
How do I add purchases that are in B5 and C5?
Select D5, enter =SUM(B5:C5), and press Enter. The result updates when either purchase amount changes.
Why isn't my new purchase included in the total?
Check the formula in D5. If the new amount is outside its SUM range, edit the range to include that cell without including D5 itself.
How can I see the total after every purchase?
With purchases starting in B5, enter =SUM($B$5:B5) in C5 and drag the fill handle down alongside the entries.
How do I display the total as dollars?
Select the total cell, then choose Currency from the Number Format menu on Excel's Home tab.




