• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Daily return vba code

malek

New Member
hello everyone,

I want to compute daily returns of a stock with VBA code in column C.

daily return formula is (Price day 2/Price day 1)-1. It's easy to do it manually with excel by doing (B2/B1)-1 and then stretch it down but I want to do it on VBA.

thank you for your help.

you can find the excel file with daily prices below.
 

Attachments

  • excelfile.xlsx
    116.8 KB · Views: 11
Back
Top