Sum of categories/referenced to table

SMASS89

New Member
Joined
May 23, 2019
Messages
2
I need a total SUM of each Category in Column C based off of corresponding amounts in Column D. I also need the SUMS for each Category automatically updated to a separate table.


DATEITEMCATEGORYDEBIT/CREDITTOTALMAY 16 - JUNE 1
5/16NET INCOMENET INCOME607 $850CATEGORYFORECASTEDACTUAL
5/16PR CCCC(120)$730Rent$250
5/16RENTRENT(200)$530Car Insurance/Phone$75
5/16CAR/PHONECAR/PHONE(200)$330Groceries$125
5/16GASGAS(41)$289Gas$150
5/16PHONE MOUNTMISC(15)$274Credit Card$350
5/16CHUSMISC(70)$204SUZUKI LOAN$186
5/17MCDONALDSGROCERIES(5)$199MISC$200
5/17CREDIT UNIONNET INCOME200 $399
5/17GASGAS(55)$344
5/17PHONE MOUNTMISC(10)$334
5/18PUBLIXGROCERIES(10)$324
5/18CHUSMISC(25)$299
5/18BOAT GASMISC(20)$279
5/19PR CCCC(130)$149
5/19VAPE JUICEMISC(30)$119
5/20MCDONALDSGROCERIES(7)$112
<colgroup><col width="49" style="width: 37pt; mso-width-source: userset; mso-width-alt: 1568;"> <col width="115" style="width: 86pt; mso-width-source: userset; mso-width-alt: 3680;"> <col width="100" style="width: 75pt; mso-width-source: userset; mso-width-alt: 3200;"> <col width="132" style="width: 99pt; mso-width-source: userset; mso-width-alt: 4224;"> <col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 1952;"> <col width="72" style="width: 54pt;" span="2"> <col width="148" style="width: 111pt; mso-width-source: userset; mso-width-alt: 4736;"> <col width="111" style="width: 83pt; mso-width-source: userset; mso-width-alt: 3552;"> <col width="90" style="width: 68pt; mso-width-source: userset; mso-width-alt: 2880;"> <tbody> </tbody>
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I would separate the range of May 16 - June 1 into 2 cells (e.g.,, H1 and J1).

Then, this should calculate (adjust the end range accordingly):

Code:
=SUMPRODUCT(($A$2:$A$18>=$H$1)*($A$2:$A$18<=$I$1)*(H3=$C$2:$C$18)*$D$2:$D$18)
 
Upvote 0
Re: Sum of categories/referenced to table - FOR BUDGETS

I ended up finding a formula for this issue. I thought it would be some =IF(.....) formula, it was just a combination "=IF/=SUMIF" formula. I ended up using the following: =IF(C4=C1,"",SUMIF(C:C,C4,D:D))

To set an Actual Category you only have to change the Category Cell referenced in the formula... C3,C4,C5,C6,C7 ETC...

FC1 = CATEGORY (HEADER)
C4 = "INPUT CATEGORY" E.G. "RENT" or "CREDIT CARD"
D:D = AMOUNT/NUMBER AMOUNTS

A B C D E
DATEITEMCATEGORYDEBIT/CREDITTOTAL
5/16NET INCOMENET INCOME607$850CATEGORYFORECASTEDACTUAL
5/16PR CCCC(120)$730Rent-$250-$200
5/16RENTRENT(200)$530Car Insurance/Phone-$75-$200
5/16CAR/PHONECAR/PHONE(200)$330Groceries-$125-$44
5/16GASGAS(41)$289Gas-$150-$116
5/16PHONE MOUNTMISC(15)$274Credit Card-$350-$420
5/16CHUSMISC(70)$204SUZUKI LOAN-$186-$186
5/17MCDONALDSGROCERIES(5)$199MISC-$200-$190
5/17CREDIT UNIONNET INCOME200$399
5/17GASGAS(55)$344
5/17PHONE MOUNTMISC(10)$334
5/18PUBLIXGROCERIES(10)$324
5/18CHUSMISC(25)$299
5/18BOAT GASMISC(20)$279
5/19PR CCCC(130)$149
5/19VAPE JUICEMISC(30)$119
5/20MCDONALDSGROCERIES(7)$112
5/20WENDYSGROCERIES(8)$104
5/21MCDONALDSGROCERIES(7)$97
5/21CHUSMISC(6)$91
5/22MCDONALDSGROCERIES(7)$84
5/23NET INCOMENET INCOME655$739
5/23PR CCCC(125)$614
5/23PR CCCC(25)$589
5/23CR CCCC(20)$569
5/23ACORNS INVESTMENT(7)$562
5/23GASGAS(20)$542
5/23CHUSMISC(14)$528
5/24SUZUKI LOANSUZUKI LOAN(186)$342

<colgroup><col><col><col><col><col><col span="2"><col><col><col></colgroup><tbody>
</tbody>











I would separate the range of May 16 - June 1 into 2 cells (e.g.,, H1 and J1).

Then, this should calculate (adjust the end range accordingly):

Code:
=SUMPRODUCT(($A$2:$A$18>=$H$1)*($A$2:$A$18<=$I$1)*(H3=$C$2:$C$18)*$D$2:$D$18)
 
Upvote 0
Re: Sum of categories/referenced to table - FOR BUDGETS

Can you use this?


Book1
ABCDEFGHI
1DATEITEMCATEGORYDEBIT/CREDITTOTALStart Date01-05-19
216-05-19NET INCOMENET INCOME607$850End Date01-06-19
316-05-19PR CCCC-120$730CATEGORYFORECASTEDACTUAL
416-05-19RENTRENT-200$530Rent$250-200
516-05-19CAR/PHONECAR/PHONE-200$330CAR/PHONE$75-200
616-05-19GASGAS-41$289Groceries$125-22
716-05-19PHONE MOUNTMISC-15$274Gas$150-96
816-05-19CHUSMISC-70$204CC$350-250
917-05-19MCDONALDSGROCERIES-5$199SUZUKI LOAN$1860
1017-05-19CREDIT UNIONNET INCOME200$399MISC$200-170
1117-05-19GASGAS-55$344
1217-05-19PHONE MOUNTMISC-10$334Expenses938
1318-05-19PUBLIXGROCERIES-10$324Net Income807
1418-05-19CHUSMISC-25$299
1518-05-19BOAT GASMISC-20$279
1619-05-19PR CCCC-130$149
1719-05-19VAPE JUICEMISC-30$119
1820-05-19MCDONALDSGROCERIES-7$112
Sheet1
Cell Formulas
RangeFormula
I4=SUMIFS($D$2:$D$18,$A$2:$A$18,">="&$H$1,$A$2:$A$18,"<="&$H$2,$C$2:$C$18,G4)
I12=ABS(SUM(I4:I10))
I13=SUMIFS($D$2:$D$18,$A$2:$A$18,">="&$H$1,$A$2:$A$18,"<="&$H$2,$C$2:$C$18,G13)
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,309
Members
449,095
Latest member
Chestertim

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