+ Reply to Thread
Results 1 to 4 of 4

Thread: Automate formula "=(1+A1)*(1+A2)*(1+A3)....-1" to add each row in a range of cells

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Automate formula "=(1+A1)*(1+A2)*(1+A3)....-1" to add each row in a range of cells

    Trying to automate the formula "=(1+A1)*(1+A2)*(1+A3)....-1"
    Want to replace A1, A2, A3 etc with a self find function in excel 2003 without creating a macro.

    Test Data:
    Cell A1 = 1%
    Cell A2 = 3%
    Cell A3 = 5%
    Cell A4 = 7%
    Cell A5 = 9%
    Cell A6 = -2%
    Cell A7 = -4%
    Cell A8 = -6%
    Cell A9 = -8%
    Cell A10= -10%
    Cell A11= 0.5%

    Manual Solution: A1->A10 =(1+A1)*(1+A2)*(1+A3)*(1+A4)*(1+A5)*(1+A6)*(1+A7)*(1+A8)*(1+A9)*(1+A10)-1 = -6.71%
    Manual Solution: A1->A11 =(1+A1)*(1+A2)*(1+A3)*(1+A4)*(1+A5)*(1+A6)*(1+A7)*(1+A8)*(1+A9)*(1+A10)*(1+A11)-1 = -6.25%

    Automated Solution: A1->A10 =???? = -6.71%
    Automated Solution: A1->A11 =???? = -6.25%


    Conditions:
    1. every row must be added like the above formula between a range (for example cell A1 thru cell A10)
    2. When a new row of data is added to the bottom (cell A11) the formula should automatically adjust without having to manually add (1+A11) to the formula. There are chances that 100's of rows will be added at a single time so manually adding (1+A12)*(1+A13) will be too time consuming.

    The (1+x)*(1+x)-1 formula gets me the total % return for multiple periods. AVG does not work nor does a SUM feature.
    Is it possible to adobt a range function?

    Any ideas ? Really appreciate your help.
    I've already done a google search but nothing specific to this formula.

    Thanks!
    Brett

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: Automate formula "=(1+A1)*(1+A2)*(1+A3)....-1" to add each row in a range of cell

    Welcome to the forum.

    =product(1 + a1:a100) - 1

    ... confirmed with Ctrl+Shift+Enter rather than just Enter.

    You can either make the range larger than necessary, or create a dynamic named range (http://www.contextures.com/xlnames01.html)
    Last edited by shg; 01-10-2012 at 11:04 AM.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-10-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Automate formula "=(1+A1)*(1+A2)*(1+A3)....-1" to add each row in a range of cell

    That worked perfectly! Thanks!
    You just saved me hours and hours of work.

    You mind explaining what the Ctrl+Shift+Enter does differently than just hitting Enter? For my knowledge.

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,772

    Re: Automate formula "=(1+A1)*(1+A2)*(1+A3)....-1" to add each row in a range of cell

    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

+ 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.2.0