Copy & Paste CAGR formula to another cell

lkw9918

New Member
Joined
Oct 19, 2016
Messages
10
Hi Bro/Sis

I created a VBA module to calculate the CAGR value, below is the formula

Function CAGR(EndValue, BeginValue, Years)
CAGR = (EndValue / BeginValue) ^ (1 / Years) - 1
End Function

On my excel sheet, I have the following range Year 1, Year 2 & Year 3. I use the copy and paste function to copy for Year 2 & Year3. By right on Year 2 should have the value =CAGR(N11,$O11,2) and Year 3 should have =CAGR(M11,$O11,3)

Year 1 =CAGR(O11,$O11,1)
Year 2 =CAGR(N11,$O11,1)
Year 3 =CAGR(M11,$O11,1)

May I know is there any function that I can use so that the year can increase when I use copy and paste? Now, i can only get value of 1 on both Year 2 & 3.

Thank you.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,629
Messages
6,173,434
Members
452,514
Latest member
cjkelly15

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top