how to sumif year/month

go14344

New Member
Joined
Jun 17, 2014
Messages
30
how to sumif like this... thanks
 

Attachments

  • Untitled.png
    Untitled.png
    61.5 KB · Views: 23

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Are the dates real dates or they strings?
Which version of Excel are you using?

Easiest way is to use Pivot Table.
 
Upvote 0
On the assumption that you are using tables give this a try:
Left Table is Table1.
Note: You will get a better response and save us a lot of time if you use XL2BB to provide some sample data.
If you need to use an image please include the Row and Column references and also the Table Names if using Tables. This will save you time reworking any formulas we give you.

20250124 SumIfs Dates go14344.xlsx
ABCDEFGHI
1Date Amount Due Month / Year2022202320242025
2Sunday, 19 January 2025227,394.08January---250,311.77
3Sunday, 19 January 20253,339.63February----
4Sunday, 19 January 202519,578.06March----
5Sunday, 19 January 2025-April----
6Wednesday, 25 December 20247,478.75May----
7Thursday, 19 December 2024373,274.41June----
8Thursday, 19 December 20243,126.00July----
9Thursday, 19 December 20243,600.28August----
10Thursday, 19 December 2024-September----
11Monday, 25 November 202466,262.36October----
12Tuesday, 19 November 202478,297.46November--408,235.04-
13Tuesday, 19 November 2024424.11December--387,479.44-
14Tuesday, 19 November 2024260,293.29Total--795,714.48250,311.77
15Tuesday, 19 November 20242,957.82
16
Data
Cell Formulas
RangeFormula
F2:I13F2=SUMIFS(Table1[Amount Due], Table1[Date],">=" & "1-" & [@[Month / Year]] & "-" & F$1, Table1[Date],"<=" & EOMONTH("1-" & [@[Month / Year]] & "-" & F$1,0))
F14F14=SUBTOTAL(109,[2022])
G14G14=SUBTOTAL(109,[2023])
H14H14=SUBTOTAL(109,[2024])
I14I14=SUBTOTAL(109,[2025])
 
Upvote 0
excel 2013.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,226,067
Messages
6,188,701
Members
453,493
Latest member
BRACE

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