LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Anyone up for what I see could be a challenge?


Why not invest a little bit on an off-the-shelf personal investment
application?


"Jeff-B" wrote:

I trade futures and by year end I have many buys/sells and short/covers to
match up. Depending on the day I may have several buys before selling 1
contract. here is an example of the data I have in excel:

Date Buy Sell Desc Price

8/13/2007 1 SEP07 CBOT 5 DOW 132.95
8/13/2007 2 SEP07 CBOT 5 DOW 133.00
8/13/2007 1 SEP07 CBOT 5 DOW 133.04
8/13/2007 1 SEP07 CBOT 5 DOW 133.06
8/13/2007 1 SEP07 CBOT 5 DOW 133.07
8/13/2007 1 SEP07 CBOT 5 DOW 133.18
8/13/2007 1 SEP07 CBOT 5 DOW 133.28
8/13/2007 1 SEP07 CBOT 5 DOW 133.30
8/13/2007 1 SEP07 CBOT 5 DOW 133.34
8/13/2007 1 SEP07 CBOT 5 DOW 133.39
8/13/2007 1 SEP07 CBOT 5 DOW 133.40
8/13/2007 1 SEP07 CBOT 5 DOW 133.44
8/13/2007 1 SEP07 CBOT 5 DOW 133.49
8/13/2007 1 SEP07 CBOT 5 DOW 133.49
8/13/2007 1 SEP07 CBOT 5 DOW 133.50
8/13/2007 1 SEP07 CBOT 5 DOW 133.65
8/13/2007 1 SEP07 CBOT 5 DOW 133.65
8/13/2007 1 SEP07 CBOT 5 DOW 133.67
8/13/2007 1 SEP07 CBOT 5 DOW 133.70

The idea is to do a first in first out match up. To explain the first trade
I bought 1 contract then sold 2 contracts thus being short 1 contract ect.
Can someone please help me figure out how I might be able automate this
matching. It takes me so much time doing this line by line manually . The
ultimate would be for it to calculate the profit or loss for each trade. If
this question is beyond the scoop of this forum I apologize. I am at a loss
after several attempts to figure this out on my own.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Look Up challenge Guntars Excel Worksheet Functions 3 May 25th 09 04:12 AM
Here's a challenge... thorshammer Excel Worksheet Functions 4 August 12th 08 06:15 PM
A challenge wildauk Excel Programming 2 November 8th 06 12:22 AM
Challenge DB100[_2_] Excel Programming 1 May 6th 04 05:38 PM
A Challenge To All!!!! hybridthinker Excel Programming 3 October 17th 03 05:35 PM


All times are GMT +1. The time now is 08:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"