ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sum by month and year (https://www.excelbanter.com/excel-discussion-misc-queries/25482-sum-month-year.html)

Steven Robilard

Sum by month and year
 
I am trying to get daily totals sumed and put into a monthly
worksheet. I have been using SUMIF comparing the month and year of
each payment.

Here is the formula.

=SUMIF(MONTH(Payments!b7:b3000)&YEAR(Payments!b7:b 3000),
MONTH(B39)&YEAR(B39),Payments!F7:F3000)

Excel is saying there is an error but when I look art the edit formula
area is seems to calculating correctly.

Can you help me?

Steve

Don Guillett

You can use sumproduct without the CSE
=sumproduct((month(dr)=month(b39))*year(dr)=year(b 39))*sumrng)

--
Don Guillett
SalesAid Software

"Steven Robilard" wrote in message
...
I am trying to get daily totals sumed and put into a monthly
worksheet. I have been using SUMIF comparing the month and year of
each payment.

Here is the formula.

=SUMIF(MONTH(Payments!b7:b3000)&YEAR(Payments!b7:b 3000),
MONTH(B39)&YEAR(B39),Payments!F7:F3000)

Excel is saying there is an error but when I look art the edit formula
area is seems to calculating correctly.

Can you help me?

Steve




RagDyeR

Try this:

=SUMPRODUCT((TEXT(Payments!B7:B3000,"mm/yy")=TEXT(B39,"mm/yy"))*Payments!F7:
F3000)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Steven Robilard" wrote in message
...
I am trying to get daily totals sumed and put into a monthly
worksheet. I have been using SUMIF comparing the month and year of
each payment.

Here is the formula.

=SUMIF(MONTH(Payments!b7:b3000)&YEAR(Payments!b7:b 3000),
MONTH(B39)&YEAR(B39),Payments!F7:F3000)

Excel is saying there is an error but when I look art the edit formula
area is seems to calculating correctly.

Can you help me?

Steve




All times are GMT +1. The time now is 02:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com