Sumifs Formula to SUM If Date & Month has passed

acool

Board Regular
Joined
Feb 10, 2023
Messages
107
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I am trying to create a formula that takes the sum of values which have passed both the current month AND year.

Ex.

1/1/2023 $20
2/20/2023 $20

Current Date=2/21//2023

Because the current date is greater than both of the dates above, I would like to take a sum of these numbers. Any help would be greatly appreciated! Thank You!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
try:
Mr Excel 8.xlsm
ABC
52023-01-0120
62023-02-2020
72021-02-2030
82023-05-3130
9
102023-02-2170
11
Sheet10
Cell Formulas
RangeFormula
B10B10=SUMPRODUCT((--(EOMONTH(A10,0)>=EOMONTH(1*(A5:A8),0)))*(B5:B8))
 
Upvote 0
Solution
try:
Mr Excel 8.xlsm
ABC
52023-01-0120
62023-02-2020
72021-02-2030
82023-05-3130
9
102023-02-2170
11
Sheet10
Cell Formulas
RangeFormula
B10B10=SUMPRODUCT((--(EOMONTH(A10,0)>=EOMONTH(1*(A5:A8),0)))*(B5:B8))
 
Upvote 0
You could also use sumifs for this like
Fluff.xlsm
ABCDE
1
201/01/20232021/02/202350
322/02/20232070
420/02/202130
531/05/202330
Main
Cell Formulas
RangeFormula
E2E2=SUMIFS(B:B,A:A,"<="&D2)
E3E3=SUMIFS(B:B,A:A,"<="&EOMONTH(D2,0))
 
Upvote 0
You could also use sumifs for this like
Fluff.xlsm
ABCDE
1
201/01/20232021/02/202350
322/02/20232070
420/02/202130
531/05/202330
Main
Cell Formulas
RangeFormula
E2E2=SUMIFS(B:B,A:A,"<="&D2)
E3E3=SUMIFS(B:B,A:A,"<="&EOMONTH(D2,0))
Thank You! This works as well.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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