+ Reply to Thread
Results 1 to 10 of 10

Replication of formula

Hybrid View

  1. #1
    Registered User
    Join Date
    02-20-2005
    Posts
    10

    Replication of formula

    I am using this formula to calculate daily,weekly, and monthly returns. Since I have to insert a new column each day to reflect the most current day's price, I use the following formula so that the absolute cell/column is referenced in my calculation does not change:

    =((INDIRECT("M4")-INDIRECT("N4"))/INDIRECT("N4"))

    The problem is when I copy this cell down to the remaining rolls (each roll reflects an individual stock), the formula does not increment the roll number. Is there a way to copy down this formula and have the roll referenced to increment to reflect the current roll number?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    something like this

    =((INDIRECT("M"&ROW(A4))-INDIRECT("N"&ROW(A4)))/INDIRECT("N"&ROW(A4)))
    not a professional, just trying to assist.....

  3. #3
    Registered User
    Join Date
    02-20-2005
    Posts
    10
    Thanks duane. I copied and pasted your formula, but it is not working. What is the (A4) stand for or reference?

  4. #4
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    row(a4) just yields the result of 4 - you could use any cell in row 4. when this formula is copied down it yields 5, 6, etc. my test worked just fine.

    I assume you pasted it in the correct row???

  5. #5
    Registered User
    Join Date
    02-20-2005
    Posts
    10
    duane, I pasted this formula to cell L4 which is the first roll of my calculations. In other words, Today's price is in M4 and yesterday's price is in N4. The formula is apparently not being recognized as a forumula as there is not resulting answer, just the formula itself. If I repaste the original formual to L4 :

    =((INDIRECT("M4")-INDIRECT("N4"))/INDIRECT("N4") then is works fine, which is a one day return for this stock. It seems excel is not recognizing the format &row(a4) within the INDIRECT verb? Your formula DOES work in the sense it increments the referenced row number.. I am sure is something that I am leaving out of the?

    Thanks again

  6. #6
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    if I undertand you it sounds like my formula is being pasted as text as opposed to a formula - have you checked this (make sure it starts with = and not ')?

+ 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