Get a running total of only certain cells within a category

AmandaN1

New Member
Joined
Apr 3, 2023
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
I’ve been using an Excel spreadsheet as a digital checkbook register. I’d like to have a cell auto calculate a running total based on a certain value. See the example I made up below. What I'd like to do is under "Total spent on gas monthly" I want it to automatically add the amounts entered under "withdrawal" that has the "Note" of "Gas". How would I do that? Currently, I will filter the note column to show only "Gas" then use =SUM to add those figures up then manually enter that number in the column I want it to be in and then delete the =SUM formula and revert back to show all on the filter. I want that cell to update automatically without all those extra steps.

NOTEDATETRANSACTIONWITHDRAWALDEPOSITTOTALTotal Spent on Gas MonthlyTotal Spent on Food
Starting Balance1000.00
Gas1/1Gas Station60.00940.00
Groceries1/2Grocery Store100.00840.00
Utilities1/3Water, Electric200.00640.00
Mortgage1/4Bank400.00240.00
Gas1/5Gas Station60.00180.00
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Assuming that you range starts in A1 so the 'Total Spent on Gas Monthly' column is column G then
this formula will calculate a running total for Gas.

=IF($A3="Gas",SUMIF($A$3:$A3,"Gas",$D$3:$D3),"")

Put this in cell G3 and drag it down for all rows.
 
Upvote 0
Book1
ABCDEFGHI
1NOTEDATETRANSACTIONWITHDRAWALDEPOSITTOTALTotal Spent on Gas MonthlyTotal Spent on Food
2Starting Balance1000
3Gas1/1Gas Station6094060 
4Groceries1/2Grocery Store100840 100
5Utilities1/3Water, Electric200640  
6Mortgage1/4Bank400240  
7Gas1/5Gas Station60180120 
Sheet1
Cell Formulas
RangeFormula
H3:H7H3=IF($A3="Gas",SUMIF($A$3:$A3,"Gas",$D$3:$D3),"")
I3:I7I3=IF($A3="Groceries",SUMIF($A$3:$A3,"Groceries",$D$3:$D3),"")
F4:F7F4=F3-D4
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top