Buffettology
New Member
- Joined
- Feb 25, 2015
- Messages
- 13
Hey guys,
Its been a long time since I created a formula in VBA. I was wondering how you would go about creating a formula that averages the growth rates of a sequence of whole numbers. I would like to simply highlight 10 years of sales data (40 quarters or 40 columns) and have the formula spit back the a specific quarters average (say 4th quarter or 10 columns of data). So let me provide an example for color:
Quarter: 1Q, 2Q, 3Q, 4Q, 1Q, 2Q, 3Q, 4Q
Sales: 10, 20, 30, 40, 50, 60, 70, 80, etc..
I would like to take every 4Q sales number and divide by 3Q and subtract 1 for growth rate (e.g. 40/30-1, 80/70-1, etc.)
In other words I essentially want: =average(40/30-1, 80/70-1, etc.) by just selecting all numbers.
Is this even possible? If so, how would I go about doing it?
This one is probably a tough one Im sure, so thanks in advance!
Its been a long time since I created a formula in VBA. I was wondering how you would go about creating a formula that averages the growth rates of a sequence of whole numbers. I would like to simply highlight 10 years of sales data (40 quarters or 40 columns) and have the formula spit back the a specific quarters average (say 4th quarter or 10 columns of data). So let me provide an example for color:
Quarter: 1Q, 2Q, 3Q, 4Q, 1Q, 2Q, 3Q, 4Q
Sales: 10, 20, 30, 40, 50, 60, 70, 80, etc..
I would like to take every 4Q sales number and divide by 3Q and subtract 1 for growth rate (e.g. 40/30-1, 80/70-1, etc.)
In other words I essentially want: =average(40/30-1, 80/70-1, etc.) by just selecting all numbers.
Is this even possible? If so, how would I go about doing it?
This one is probably a tough one Im sure, so thanks in advance!