How to Use the RRI Function in Google Sheets

Published on

You can use the RRI function in Google Sheets to calculate the Compound Annual Growth Rate (CAGR) of an investment. Though Google Sheets doesn’t have a dedicated CAGR function, RRI is the built-in alternative for that.

In other words, the RRI function tells you the fixed annual interest rate required for an investment to grow from its starting value (present value) to its ending value (future value) over a given number of periods (typically years).

Calculate CAGR Manually in Google Sheets (Without RRI)

Even without a built-in function, you can calculate CAGR manually using this formula:

CAGR = (future_value / present_value) ^ (1 / number_of_years) - 1

Let’s look at an example:

  • Nper (Number of years): 5
  • Pv (Present Value): 10,000
  • Fv (Future Value): 15,000

Using the manual formula:

=((15000/10000)^(1/5))-1

This returns 8.45% as the compound annual growth rate.

But you can do this even more easily using the RRI function in Google Sheets.

Syntax of the RRI Function in Google Sheets

RRI(number_of_periods, present_value, future_value)

Arguments:

  • number_of_periods (Nper) – Number of periods (typically years)
  • present_value (Pv) – Initial value of the investment
  • future_value (Fv) – Ending value of the investment

Example: RRI Function in Action

Let’s say:

  • C2: Number of periods = 5
  • C3: Present value = 10000
  • C4: Future value = 15000

The formula:

=RRI(C2, C3, C4)

Will return 0.084471771, which is the CAGR in decimal form.

Example of using the RRI function in Google Sheets to calculate CAGR

How to Format RRI Output as a Percentage in Google Sheets

There are two ways to format the output from decimal to percentage:

1. Using the Format Menu:

  • Select the output cell (e.g., C6)
  • Go to Format > Number > Percent
How to format RRI function output as percentage in Google Sheets

2. Using a Function:

Wrap the RRI function inside TO_PERCENT:

=TO_PERCENT(RRI(C2, C3, C4))

This will directly return the CAGR as a percentage (e.g., 8.45%).

RRI Function in Google Sheets – Common Errors and Fixes

#NUM! Error

Occurs when:

  1. Pv or Fv is a negative number (except Nper).
  2. Pv is 0 – you can’t start from zero in compounding.

#DIV/0! Error

  • Happens when Nper is 0 or blank.

#VALUE! Error

  • This usually appears when you provide non-numeric inputs (e.g., text).
  • Note: Numbers stored as text will still work as long as they’re valid numerically.

Conclusion

The RRI function in Google Sheets is a simple but powerful tool for calculating compound annual growth rate, whether for investments, business revenue, or performance metrics.

While the manual CAGR formula works well, RRI makes the job faster and cleaner—especially when working with dynamic or large datasets.

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Top Discussions

More like this

Pivot Table Formatting, Output & Special Behavior in Google Sheets

Pivot Tables in Google Sheets are powerful—but they can get tricky once you move...

Pivot Table Calculations & Advanced Metrics in Google Sheets

When it comes to built-in tools for data analysis and visualization in Google Sheets,...

Google Sheets Pivot Table Tutorial: Basics, Setup, and Date Grouping

The easiest way to summarize, analyze, and report data in Google Sheets is by...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.