help with this SUMIF formula (for a budget spreadsheet)

boxhamster

New Member
Joined
Jan 12, 2016
Messages
14
Hi,

I can't seem to figure out what the mistake is.
I want to sum up the amounts depending on the type of expense and the month.

[TABLE="class: grid, width: 395"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Date[/TD]
[TD]Item[/TD]
[TD]Category[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]28.02.2018[/TD]
[TD]Food[/TD]
[TD]Food Shopping[/TD]
[TD] 10,00 €[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Month[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Food Shopping[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Using this formula:
[TABLE="width: 114"]
<tbody>[TR]
[TD]= SUMIFS(D1:D3;MONTH(C1:C3);B4;C1:C3;B5)[/TD]
[/TR]
</tbody>[/TABLE]

Any idea what's going on?

Thanks :)
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
SUMIFS requires ranges so you cant do MONTH(C1:C3). Try this:

=SUMIFS(D1:D3,C1:C3,A5,A1:A3,">="&DATE(YEAR(TODAY()),B4,1),A1:A3,"<"&DATE(YEAR(TODAY()),B4+1,1))
 
Upvote 0
For sure not MONTH(C1:C3)
but (if at all then):
MONTH(A1:A3)

Moreover the formula shall be probaly commited as array formula (with Ctrl+Shift+Enter , not just Enter)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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