Not in the same year in my case.
"KL" ¼¶¼g©ó¶l¥ó·s»D
...
Hi Turk,
If all data belong to the same year you could try the following formula to
get the sum for January:
=SUMPRODUCT(--(MONTH($A$1:$A$6)=1),$B$1:$B$6)
otherwise:
=SUMPRODUCT(--(MONTH($A$1:$A$6)=1),--(YEAR($A$1:$A$6)=2005),$B$1:$B$6)
or
=SUMPRODUCT(--(TEXT($A$1:$A$6,"mmyy")="0105"),$B$1:$B$6)
etc.
You can also replace =1 with a reference to the cell that contains the
number of the month, e.g.
=SUMPRODUCT(--(MONTH($A$1:$A$6)=D1),$B$1:$B$6)
Regards,
KL
"Turk" wrote in message
...
Dear all,
I have a worksheet as below
5/1/2005 50
23/1/2005 100
18/1/2005 120
2/2/2005 12
12/2/2005 24
4/3/2005 15
I want to sum up the total of each month to get
Jan 2005 270
Feb 2005 36
Mar 2005 15
What should be the formula?
thanks....
ims
|