# SUMPRODUCT and Accounting Period Dates?

#### minsk2000

##### Board Regular
Hi everyone,

Could you help me guys please to incorporate accounting period into SUMPRODUCT formula.

Right now I can sum amounts according to calendar month using =SUMPRODUCT (--(MONTH (\$D\$65:\$D\$109)=1),--(YEAR(\$D\$65:\$D\$109)=2006) but I don’t know how to modify this formula to sum amounts according to accounting period.

Month end is January 25, 2006 February 22, 2006 March 22, 2006 April 26 2006, May 24 2006.

Close is last Wednesday of every month except for March, June, and September when it is the second last Wednesday of the month. December is usually the last Wednesday.
It is probably very hard to incorporate this condition into the formula so is there any way to put just dates to sum amounts between those close dates?

This is an example of an accounting period.

03/29/06 04/05/06 04/12/06 04/19/06 04/26/06

\$ 1,790 \$ 1,950 \$ 1,300 \$ 2,600 \$ 2,175

Thanks a lot

Minsk

### Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Thanks

Thanks

A generic approach with dates,

=SUMPRODUCT(--(Range > "1/2/2006"+0),--(Range<="3/1/2006"+0),RangeToSum)

Thanks Brian. What's the role of +0 in the formula?

Thanks Brian. What's the role of +0 in the formula?

Coercing text dates to true date values.

Replies
4
Views
168
Replies
10
Views
535
Replies
2
Views
87
Replies
2
Views
408
Replies
2
Views
650

1,217,500
Messages
6,137,009
Members
450,038
Latest member

### 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.

### Which adblocker are you using?

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

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