SUMIFS against a Month & Year

Steve 1962

Active Member
Joined
Jan 3, 2006
Messages
355
Office Version
  1. 365
Platform
  1. Windows
Hi

I'm looking to perform a SUMIFS to lookup a column of dates (column A) against a month-year value (column D).

I require the SUMIFS formula to reside in cells E2 & E3 and return the answers as provided in the example.

Thanks

SH


Book1
ABCDE
1DateValueMonthAnswer
226/02/2023101/02/202318
327/02/202351/03/202322
428/02/20233
51/03/20236
62/03/20234
73/03/20234
84/03/20238
Sheet2
Cell Formulas
RangeFormula
E2E2=SUM(B2:B4)
E3E3=SUM(B5:B8)
 

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.
Book1
ABCDE
1DateValueMonthAnswer
226/02/2023101/02/202318
327/02/202351/03/202322
428/02/20233
51/03/20236
62/03/20234
73/03/20234
84/03/20238
Sheet1
Cell Formulas
RangeFormula
E2:E3E2=SUMIFS($B$2:$B$8,$A$2:$A$8,">="&D2,$A$2:$A$8,"<="&EOMONTH(D2,0))
 
Upvote 0
Solution
Another way: use "02-2023" (mm-yyyy format) to identify
Code:
=SUMPRODUCT((TEXT($A$2:$A$8,"MM-YYYY")=TEXT(D2,"MM-YYYY"))*$B$2:$B$8)
 
Upvote 0

Forum statistics

Threads
1,216,117
Messages
6,128,935
Members
449,480
Latest member
yesitisasport

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