+ Reply to Thread
Results 1 to 3 of 3

how to summarize net number of stocks traded (buy and sell)

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    quincy
    MS-Off Ver
    Excel 2003
    Posts
    21

    Question how to summarize net number of stocks traded (buy and sell)

    I want to summarize net number of stocks traded by each trader. How to use VBA to do so? How to deal with buy and sell to get the net number? A sample is attached.

    Thanks
    Attached Files Attached Files
    Last edited by poppypoppy; 06-14-2010 at 11:40 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: how to summarize net number of stocks traded (buy and sell)

    Try a SUMPRODUCT formula to calculate the difference between the sum of sold and sum of bought.

    In cell H27 of your sample workbook:

    =SUMPRODUCT(--($F$1:$F$15="S"),--($H$1:$H$15=$G27),($G$1:$G$15))-SUMPRODUCT(--($F$1:$F$15="B"),--($H$1:$H$15=$G27),($G$1:$G$15))
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    05-03-2010
    Location
    quincy
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: how to summarize net number of stocks traded (buy and sell)

    Thanks Palmetto.
    Last edited by poppypoppy; 06-14-2010 at 11:40 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1