PC Review


Reply
Thread Tools Rate Thread

Calculating the Count of Monthly Gains/Losses

 
 
shriil
Guest
Posts: n/a
 
      3rd Dec 2010
I have this excel sheet where I keep track of my daily stock trading
gains or losses. It looks like as given below

A B C
Date Gain/Loss in Points Gain/Loss
04-Jul-10 52 G
07-Jul-10 156 G
15-Jul-10 -34 L
01-Aug-10 25 G
12-Aug-10 46 G
18-Aug-10 21 G
8-Sep-10 -22 L
14-Sep-10 -9 L
..... ...

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..
Where
D
Mth-Yr Total Gain Tot Loss No.of Gains....No. of Losses
Jul-10
Aug-10
Sep-10
Oct-10
.......

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.

Would request help on this issue and for any easier function for
calculating the sum of gains and losses

Thks

Shriil
 
Reply With Quote
 
 
 
 
joeu2004
Guest
Posts: n/a
 
      3rd Dec 2010
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"))

 
Reply With Quote
 
joeu2004
Guest
Posts: n/a
 
      3rd Dec 2010
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")).
 
Reply With Quote
 
shriil
Guest
Posts: n/a
 
      4th Dec 2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I calculate monthly gains/losses in excel ragingriver30 Microsoft Excel New Users 2 23rd May 2010 01:51 PM
making gains or losses appear red or black in formula =?Utf-8?B?QmxhbmU=?= Microsoft Excel Worksheet Functions 1 5th Apr 2006 02:06 AM
gains/losses formulas kgeorge Microsoft Excel Worksheet Functions 3 24th Mar 2006 09:25 PM
Template for IRS form capital gains/losses =?Utf-8?B?UjIwMDVTQw==?= Microsoft Excel Misc 0 17th Jan 2005 06:51 PM
Query to count game wins/losses Carl Rapson Microsoft Access Queries 2 10th Jul 2003 01:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 AM.