CPI Frequency Flag - Formula Simplication

Superhick

New Member
Joined
Sep 14, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hi there,

I want to simplify an excessively long nested IF(OR formula; can anyone help?

Here is the formula:
=IF(OR(I$6=$F15+$H15,I$6=$F15+$H15*2,I$6=$F15+$H15*3,I$6=$F15+$H15*4,I$6=$F15+$H15*5,I$6=$F15+$H15*6,I$6=$F15+$H15*7,I$6=$F15+$H15*8,I$6=$F15+$H15*9,I$6=$F15+$H15*10),1,0)

I have attached a screenshot of what I'm trying to do. I am building a rent forecast model, and want to apply inflation. However, inflation could be every 2 years, or every 3 years etc. as specified. My formula only applies CPI after the start year, and then applies CPI at the frequency specified. However, I would need 20 or more OR formulas for my formula to forecast out 20+ years, but I'm sure there is a more graceful and compact formula to do the job. I'm just not sure how to do it.

Appreciative of anyone's help. Thanks very much

Screenshot of Workbook.png
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to the Forum!

Perhaps something like this:

ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1
2
3
4
5
620152016201720182019202020212022202320242025202620272028202920302031203220332034
7
8
9
10CPI2.0%
11
12
13
14Start YearAmountFrequency
1520181,000.001   1,000.001,020.001,040.401,061.211,082.431,104.081,126.161,148.691,171.661,195.091,218.991,243.371,268.241,293.611,319.481,345.871,372.79
1620172,000.001  2,000.002,040.002,080.802,122.422,164.862,208.162,252.322,297.372,343.322,390.192,437.992,486.752,536.482,587.212,638.962,691.742,745.572,800.48
1720171,000.001  1,000.001,020.001,040.401,061.211,082.431,104.081,126.161,148.691,171.661,195.091,218.991,243.371,268.241,293.611,319.481,345.871,372.791,400.24
1820162,000.002 2,000.002,000.002,040.002,040.002,080.802,080.802,122.422,122.422,164.862,164.862,208.162,208.162,252.322,252.322,297.372,297.372,343.322,343.322,390.19
1920161,000.002 1,000.001,000.001,020.001,020.001,040.401,040.401,061.211,061.211,082.431,082.431,104.081,104.081,126.161,126.161,148.691,148.691,171.661,171.661,195.09
2020252,000.003          2,000.002,000.002,000.002,040.002,040.002,040.002,080.802,080.802,080.802,122.42
2120181,000.005   1,000.001,000.001,000.001,000.001,000.001,020.001,020.001,020.001,020.001,020.001,040.401,040.401,040.401,040.401,040.401,061.211,061.21
2220212,000.005      2,000.002,000.002,000.002,000.002,000.002,040.002,040.002,040.002,040.002,040.002,080.802,080.802,080.802,080.80
2320171,000.007  1,000.001,000.001,000.001,000.001,000.001,000.001,000.001,020.001,020.001,020.001,020.001,020.001,020.001,020.001,040.401,040.401,040.401,040.40
2420172,000.008  2,000.002,000.002,000.002,000.002,000.002,000.002,000.002,000.002,040.002,040.002,040.002,040.002,040.002,040.002,040.002,040.002,080.802,080.80
Sheet1
Cell Formulas
RangeFormula
I15:AB24I15=IF(I$6>=$F15,$G15*(1+CPI)^INT((I$6-$F15)/$H15),"")
Named Ranges
NameRefers ToCells
CPI=Sheet1!$G$10I15:AB24


Or for your original question:
I15: =IF(AND(I$6>$F15,MOD(I$6-$F15,$H15)=0),1,"")
 
Upvote 0
That is perfectly elegant and what I was hoping for, thank you very much Stephen!
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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