+ Reply to Thread
Results 1 to 3 of 3

Calculating compound growth rate using VBA

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

    Calculating compound growth rate using VBA

    Hi,

    I have data arranged as shown in columns A and B of the attached file.

    I’ve tried without success to write code that will work through columns A and B, and then put a single instance of each name in column D (from D2 onwards) and in column E the compounded rate of growth (as calculated, for example, in E2) for each name.

    Can someone please suggest code that will accomplish this.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Calculating compound growth rate using VBA

    A
    B
    C
    D
    E
    F
    1
    Name Growth Rate Name Total Growth
    2
    AAA
    5%
    AAA
    22.5%
    E2: {=PRODUCT(1 + ($A$2:$A$11=$D2)*$B$2:$B$11) - 1}
    3
    BBB
    6%
    BBB
    25.9%
    4
    AAA
    7%
    CCC
    3.0%
    5
    BBB
    8%
    DDD
    7.1%
    6
    AAA
    9%
    7
    BBB
    10%
    8
    CCC
    1%
    9
    CCC
    2%
    10
    DDD
    3%
    11
    DDD
    4%


    The curly braces indicate that the formula must be confirmed with Ctrl+Shift+Enter instead of just Enter; you can't insert the braces manually.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Calculating compound growth rate using VBA

    Thanks very much.

    Can someone please suggest how to achieve the results in columns D and E of my attachment using VBA

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2007 : compound & monthly growth rate%
    By tkaz in forum Excel General
    Replies: 1
    Last Post: 04-14-2011, 01:33 PM
  2. [SOLVED] Compound Annual Growth Rate
    By Stash in forum Excel General
    Replies: 2
    Last Post: 03-30-2005, 03:06 PM
  3. [SOLVED] What formula do I use to calculate compound annual growth rate (C.
    By pjbrien in forum Excel General
    Replies: 0
    Last Post: 03-23-2005, 05:06 PM
  4. Compound annual growth rate [CAGR]
    By Paul in forum Excel General
    Replies: 2
    Last Post: 03-17-2005, 08:06 PM
  5. Compound Growth Rate and ^
    By 1richrich1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-13-2005, 02:32 PM

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