Function Problems

Add Expense Amounts and Display a Running Total in Excel

Nimra MalikNimra Malik Nov 14, 2026 870 views

Question details

Add individual expense amounts and display an automatically updated total in Excel.

How to Add Expense Amounts and Display a Running 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.
Before you start

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.

Solution 1Recommended

Calculate an updated expense total in D5

Use a SUM formula to keep one total updated as you enter purchases in a designated range.

1
Enter purchase amounts

Enter each gasoline purchase in a separate cell, such as B5 through B10. Leave unused cells in that range blank until you need them.

2
Add the SUM formula

Select D5, type =SUM(B5:B10), and press Enter. If your amounts are in B5 and C5 instead, use =SUM(B5:C5).

3
Format the total

Select D5, then go to Home and choose Currency from the Number Format menu to display the total as dollars.

4
Add future purchases

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.

Calculate an updated expense total in D5
Keep inputs and formulas separate: A cell cannot hold both a manually entered purchase and a formula. Enter purchases in their own cells rather than typing them into D5.
Track expenses in WPS

Calculate expense totals in WPS Spreadsheets

Enter purchases in WPS Spreadsheets, use SUM to display an updated total, and apply currency formatting.

  1. 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing Excel file.
  2. 2. Enter expenses: Type each purchase amount in a separate cell in B5 through B10.
  3. 3. Calculate the total: Select D5, enter =SUM(B5:B10), and press Enter.
  4. 4. Format as currency: Select D5 and use the Number Format menu on the Home tab to choose Currency.
Track purchase amounts with an automatically updated SUM formulaOpen and edit Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interfaceGet started with WPS Office for free
microsoft office alternative - wps office

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.