On Dec 4, 1:05*am, joeu2004 <joeu2...@hotmail.com> wrote:
> Sorry, my previous posting got mangled due to copy-and-paste errors
> (mine).
> Let's try again....
>
> On Dec 3, 10:56 am, shriil <sanjib.lah...@gmail.com> wrote:
>
> > I would like to analyse the above data and find out (a) Monthly
> > Sumtotal Gain (b) Monthly Sumtotal Loss (c) No of Gains (d) No of
> > Losses in Columns D,,,E
> [...]
> > For (a) and (b) .. I would be using the Sumproduct function as
> > =SUMPRODUCT((MONTH(A$2:$A$3098)=MONTH($D2))*(YEAR($A$2:$A
> > $3098)=YEAR($D2))*($C2:$C3098="G")*($B$2:$B$3098))..
> > for Loss : ...... ($C2:$C3098="L")*.....
> > However I cant figure out how to calculate the No. of Gains /Losses on
> > a monthly basis.
> > Shriil
>
> Simply:
>
> =SUMPRODUCT((MONTH(A$2:$A$3098)=MONTH($D2))
> *(YEAR($A$2:$A$3098)=YEAR($D2))*($C2:$C3098="G")).
Thks a lot. Was quite close.. but u showed the final way..!
shriil
|