SUMIF or SUMIFS with mmultiple criteria

Inacio11

New Member
Joined
Jul 3, 2018
Messages
36
Hello,

To make a long story short I've upload a excel sheet as example of my requesting. I'm looking for a way to get the sum of expenses based on multiple criterias.
https://www.sendspace.com/file/2ibp7m

** the original file has a large amount of rows and with more arguments, so the attached file is just a example **
Thanks in advance !
Jeferson


[TABLE="class: result_table, width: 779"]
<tbody class="examples">[TR="class: row_first"]
[TD="class: sentence left"]

[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: result_table, width: 779"]
<tbody class="examples">[TR="class: row_first"]
[TD="class: sentence left"]

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Inacio,

Most Excel posters get nervous clicking on links, if you could post some sample data so we can help you.
 
Upvote 0
OK, I understand your point of view, although is not easy to explain it writing instead of post the excel file. I am trying a formula to sum values based on multiple criterias.

[TABLE="width: 547"]
<tbody>[TR]
[TD]Database (on columns)
[/TD]
[TD]Criteria (on rows acc. to database)
[/TD]
[/TR]
[TR]
[TD]Account: Q:Q
[/TD]
[TD]B20
[/TD]
[/TR]
[TR]
[TD]Type: R:R
[/TD]
[TD]$B$4:$B$20 (it’s a range)
[/TD]
[/TR]
[TR]
[TD]Date: C:C (on format: dd/mm/yy)
[/TD]
[TD]D20 (just the year) – for example 2019
[/TD]
[/TR]
[TR]
[TD]Value: K:K
[/TD]
[TD]Sum (result required based on criteria above)
[/TD]
[/TR]
</tbody>[/TABLE]

Thanks in advance !
Jeferson
 
Upvote 0
Ok and what criterias did you have sum vs month and account?
 
Upvote 0
Can you use this? The Year formula will always show current year (actual date 01-01-19) formatted as "yyy"

Just adjust your column ranges that suit your data as I couldn't work them out from the picture.

If you have your types across you could use this layout or you could create a drop down for your types if you only want those values on selection;

Can you use this? The Year formula will always show current year (actual date 01-01-19) formatted as "yyy"

If you have your types across you could use this layout or you could create a drop down for your types if you only want those values on selection;


Book1
BCDEFGHIJKL
3TypeKTE
4KTW
5KTI
6Year2019
7
8DateAccountValueTypeAccountKTAKTEKTIKTOKTW
929-12-18Supermarket-33.50KTOSupermarket -428.86
1029-12-18Home-45.00KTWHome
1129-12-18Resturant-28.36KTEResturant
1230-12-18Entertainment-10.00KTOEntertainment-734
1331-12-18Bakery-100.64KTEBakery
1431-12-18Investment-497.98KTAInvestment
1501-01-19Entertainment-734.00KTOClothes-68.88
1601-01-19Supermarket-428.86KTE
1702-01-19Clothes-68.88KTI
Sheet1
Cell Formulas
RangeFormula
H6=DATE(YEAR(TODAY()),1,1)
H9=SUMIFS($D$9:$D$17,$B$9:$B$17,">="&$H$6,$B$9:$B$17,"<="&EOMONTH($H$6,11),$C$9:$C$17,$G9,$E$9:$E$17,H$8)
 
Upvote 0
Hi again
Thanks for your early repply.
Unfortunately I can't split the type criteria (KTE, KTW...) on rows as proposed. I really need the result consolidated on just one column due to other requirements.
Anyway thanks for the support.
Jeferson
 
Upvote 0
Thats ok, if you create a drop down for one criteria you can change $E$9:$E$17,H$8) this in the formula to the cell that is your type criteria but make sure to lock the reference eg $B$4 with double $$.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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