+ Reply to Thread
Results 1 to 5 of 5

Array Formula - calculating results on a rolling basis

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Array Formula - calculating results on a rolling basis

    Hi,

    I have in A1:A1000 a series of numerical values. In column B, from B3 onwards, there is a formula in each cell that calculates the compounded value of the 3 previous values in column A using the following formula:

    e.g. {=(product(1+A1:A3/100)-1)*100} in B3

    In B4 the formula would be {=(product(1+A2:A4/100)-1)*100} etc

    Finally I calculate the average of the values in column B.

    Instead of using the “helper” column B as described above, is it possible to create a single array formula that calculates from the data in column A each of the compounded values, as in column B, and returns the average of the results?

    Thanks!
    Last edited by andrewc; 06-03-2013 at 08:18 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Array Formula

    Please attach a sample workbook with expected result for giving exact solution


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Re: Array Formula

    Hi,

    Here is what the data looks like. The data in the first column starts at A1 and continues down to A1000, while the data in the adjacent column starts at B3:

    1
    2
    3 6.11 {=(PRODUCT(1+A1:A3/100)-1)*100}
    4 9.26 {=(PRODUCT(1+A2:A4/100)-1)*100}


    Average 7.69 =AVERAGE(B3:B4)


    Thanks!

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Array Formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Never use Merged Cells in Excel

  5. #5
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    839

    Re: Array Formula - calculating results on a rolling basis

    Hi,

    Is this something that someone can please help me with?

    Thanks!

+ 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