Claims Closed per Month - Sumproduct

SarAExcel

New Member
Joined
Mar 23, 2014
Messages
42
Hi all,

I’m doing a monthly claims summary.

  • Column A: Month (in order from July through to June)
  • Column B: Number of claims closed

-The data for this financial year is on worksheet: “13-14”
-Column “R” contains the date the claim was closed (if it has been closed yet)

So to work out the number of claims closed for each month of 2013-2014, I’ve used the following formula:
=SUMPRODUCT(1*(MONTH('13-14'!R$4:R$200)=7))
(The last number changes depending on the month. The above example is for the month of July “7”)

The problem is, some claims from the previous financial years were only closed this year. So I need to include these as well.
The other worksheets/years that I need to include are labelled: “11-12” & “12-13”
I only want to count the claims closed from these years if the claims were closed this financial year (July 2013 – June 2014).
Can anyone suggest how I can do this??
Thanks in advance,
Aimee
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Maybe this, you'll need to change the ranges to suit
Code:
=SUMPRODUCT((MONTH('12-13'!R$1:R$30)=7)+(MONTH('13-14'!R$1:R$30)=7)+(MONTH('11-12'!R$1:R$30)=7))
 
Upvote 0
Hi Michael,

Thanks so much for your fast response!

The problem with that is it will also include the claims that were closed in the previous years. I only want to count the claims that were closed in the last financial year.
So for example, For worksheet 11-12, if the date in column R was “5/2/2012” then I would not want to include it. But if the date in column R was “11/5/2014” then I would want to include it.
I hope that makes sense?!
Thanks in advance,
Aimee
 
Upvote 0
Ok, you'll still have to change the ranges
Code:
=SUMPRODUCT((MONTH('12-13'!$R$1:$R$30)=7)*(YEAR('12-13'!$R$1:$R$30)=2014)+(MONTH('13-14'!$R$1:$R$30)=7)*(YEAR('13-14'!$R$1:$R$30)=2014)+(MONTH('11-12'!$R$1:$R$30)=7)*(YEAR('11-12'!$R$1:$R$30)=2014))

You could make it easier by making the formula reference a range value instead for the month and year...let's say cell A1 & B1

Code:
=SUMPRODUCT((MONTH('12-13'!$R$1:$R$30)=A1)*(YEAR('12-13'!$R$1:$R$30)=B1)+(MONTH('13-14'!$R$1:$R$30)=A1)*(YEAR('13-14'!$R$1:$R$30)=B1)+(MONTH('11-12'!$R$1:$R$30)=A1)*(YEAR('11-12'!$R$1:$R$30)=B1))
 
Upvote 0
Hi Michael,

Thanks again for your reply, I really appreciate it.

This is proving to be a tricky one!
Unfortunately that won’t work either as the last financial year is not just 2014, its July 2013 until June 2014.

Any ideas?
Thanks again,
Aimee
 
Upvote 0
So the months are not relevent for any non current years ??....:confused:
 
Upvote 0
Hi,
Maybe it’s too late in the afternoon for my brain, but I’m not too sure what you mean.
The months that matter are:

  • July through to Dec for 2013 &
  • Jan through to June for 2014

The basic layout will be:

Monthly Claims Summary 2013-2014

Month

Claims Closed
July
August
September
October
November
December
January
February
March
April
May
June

<tbody>
</tbody><colgroup><col><col></colgroup>
 
Upvote 0
What I'm saying is ...there is only one July, for instance, in the list regardless of the year. !
 
Upvote 0
Ok, in that case the formula should be fine.......unless I'm misunderstanding the original request....I'm pretty stupid sometimes...:biggrin:
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

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