+ Reply to Thread
Results 1 to 12 of 12

Need help portfolio simulation

Hybrid View

pulkownik Need help portfolio simulation 06-09-2013, 08:23 AM
Alf Re: Need help portfolio... 06-09-2013, 10:39 AM
pulkownik Re: Need help portfolio... 06-09-2013, 10:54 AM
Alf Re: Need help portfolio... 06-10-2013, 08:29 AM
pulkownik Re: Need help portfolio... 06-10-2013, 09:33 AM
Alf Re: Need help portfolio... 06-10-2013, 10:25 AM
pulkownik Re: Need help portfolio... 06-10-2013, 10:31 AM
Alf Re: Need help portfolio... 06-10-2013, 01:18 PM
pulkownik Re: Need help portfolio... 06-14-2013, 02:57 AM
Alf Re: Need help portfolio... 06-14-2013, 11:11 AM
pulkownik Re: Need help portfolio... 06-14-2013, 02:31 PM
Alf Re: Need help portfolio... 06-15-2013, 07:52 AM
  1. #1
    Registered User
    Join Date
    06-09-2013
    Location
    poland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Need help portfolio simulation

    Great macro works

    So i am not sure that i understand your question in 100%. Yes i want use solver for every single day. Maybe i give example how macro should look like.

    In cells B38:B59 i have date and i want simulation for every single day. For example excel take cell B49 (May 22, 2013) and make simulation:
    1) AVERAGE for XLU from May21 to Apr24 and same for single stock.
    2) C7:AG7 take Adj Close* from sheets for date May21 and make formula
    3) C8:AG8 take open price from sheets for May 22 << same for cell H26
    4) C9:AG9 take close price from sheets for May 22 << same for cell H27
    5) next step is using solver and copy result from J30 to B49 (May 22, 2013)

    So i think the best way to do that is to use loop, and excel will stop using loop when meet empty cell in my example B60, but i dont know how to make it.

    Edit:

    I added something to your code

    Do While ActiveCell.Value <> ""
    (...)
    ActiveCell.Offset(1, 0).Range("B3").Select
    Loop

    But it does not help, it works only one time and stoped.
    Last edited by pulkownik; 06-09-2013 at 03:24 PM.

+ 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