SUMIFS using date ranges and other criteria

ivorykeys87

New Member
Joined
Mar 25, 2016
Messages
10
Gonna try and keep this real simple to understand. I'm trying to calculate residual income from insurance policies sold a year ago. The data is as follows:

A:A = Date policies went effective
B:B= Status of policy (it must be active to pay a residual)
C:C= Residual amount to be paid.

The residual only pays once the policy has been effective for one year, and stops paying once it has been effective for 6 years. I have what I thought to be the correct formula in I6. It reads as follows

=SUMIFS(C2:C51,A2:A51,TODAY()>=DATE(YEAR(A2:A51)+1,MONTH(A2:A51),DAY(A2:A51)),A2:A51,TODAY()<=DATE(YEAR(A2:A51)+6,MONTH(A2:A51),DAY(A2:A51)),B2:B51,"Active")

This returns a "0". Any help would be greatly appreciated.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Is this what you mean?

=SUMIFS(C2:C51,A2:A51,">="&EDATE(TODAY(),-6*12),A2:A51,"<="&TODAY(),B2:B51,"Active")


Close. This returned the value of all active policies. Seeing as how today is 9/2/2017, I need it to only return the value of policies that have been active for 1 full year or longer up to today, but not active more than 6 years. So I shouldn't have Oct, Nov and Dec active policies in the SUM since they haven't been active for a year, yet.
 
Last edited:
Upvote 0
Here it is!

=SUMIFS(C2:C51,A2:A51,"<="&EDATE(TODAY(),-12),A2:A51,">="&EDATE(TODAY(),-12*6),B2:B51,"Active")


Wouldn't have figured it out with that initial response. Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,223,157
Messages
6,170,420
Members
452,325
Latest member
BlahQz

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