Need help with #REF! error

leopardhawk

Well-known Member
Joined
May 31, 2007
Messages
611
Office Version
  1. 2016
Platform
  1. Windows
Hello forum friends, I could sure use some help here. Two separate tabs from my workbook are included in this thread. The formula in question is on the ‘income analysis’! tab and the data is all located on the ‘rrif’! tab.

The OFFSET formula on the ‘income analysis’! tab works as intended which is, that over time, the value returned to D107 will change each year to the corresponding value in the next row of column G on the ‘rrif’! tab. I have tested this by changing the system date on my computer, all the way up to the year 2050.

I need users to be able to enter any year in ‘rrif’!B18.

As long as the value in 'rrif'!B18 is from 2019 up to 2036, there are no issues. If I enter 2037 or higher, then I am getting a #REF! error in D107.
And, I’m not sure if this means anything or not but if I enter 2020 in 'rrif'!B18, the value being returned to D107 is ‘Monthly Withdrawals’ which you can see is just text located in ‘rrif’!G17. I went so far as to put the word ‘Test’ in ‘rrif’!G16 and changed the year in ‘rrif’!B18 to 2021 and now the formula is returning the word ‘Test’ to cell D107. So, the formula seems to be moving(looking?) up the sheet instead of down the sheet. Very strange.

I have been unable to figure this one out. Please help if you might have some ideas. Thank you!


Excel 2016 (Windows) 32 bit
BCD
107RRIF Monthly Withdrawals$ 662.50
income analysis
Cell Formulas
RangeFormula
D107=OFFSET(rrif!$G$18,YEAR(NOW())-rrif!$B$18,0)
Below is from the rrif tab.



Excel 2016 (Windows) 32 bit
BCDEFG
16Estimated value of RRSP at end of YYYY$ 159,000.00
17YearAge *Percentage **AmountRRIF Value ***Monthly Withdrawals
182019700.05$ 7,950.00$ 159,397.50$ 662.50
192020710.0528$ 8,416.19$ 159,349.68$ 701.35
202021720.054$ 8,604.88$ 159,110.66$ 717.07
212022730.0553$ 8,798.82$ 158,665.15$ 733.23
222023740.0567$ 8,996.31$ 157,998.75$ 749.69
232024750.0582$ 9,195.53$ 157,098.16$ 766.29
242025760.0598$ 9,394.47$ 155,951.34$ 782.87
252026770.0617$ 9,622.20$ 154,516.59$ 801.85
262027780.0636$ 9,827.26$ 152,801.46$ 818.94
272028790.0658$ 10,054.34$ 150,769.20$ 837.86
282029800.0682$ 10,282.46$ 148,402.12$ 856.87
292030810.0708$ 10,506.87$ 145,686.36$ 875.57
302031820.0738$ 10,751.65$ 142,583.24$ 895.97
312032830.0771$ 10,993.17$ 139,075.69$ 916.10
322033840.0808$ 11,237.32$ 135,139.85$ 936.44
332034850.0851$ 11,500.40$ 130,734.29$ 958.37
342035860.0899$ 11,753.01$ 125,844.83$ 979.42
352036870.0955$ 12,018.18$ 120,433.50$ 1,001.52
362037880.1021$ 12,296.26$ 114,460.00$ 1,024.69
372038890.1099$ 12,579.15$ 107,890.00$ 1,048.26
382039900.1192$ 12,860.49$ 100,693.73$ 1,071.71
392040910.1306$ 13,150.60$ 92,829.55$ 1,095.88
402041920.1449$ 13,451.00$ 84,252.10$ 1,120.92
412042930.1634$ 13,766.79$ 74,908.54$ 1,147.23
422043940.1879$ 14,075.32$ 64,765.93$ 1,172.94
43204495+0.2$ 12,953.19$ 55,212.95$ 1,079.43
44Total$ 285,035.85
rrif
Cell Formulas
RangeFormula
E18=SUM(F16*D18)
F18=SUM(F16+(F16*0.0525)-E18)
G18=SUM(E18/12)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi

Your formula

=OFFSET(rrif!$G$18,YEAR(NOW())-rrif!$B$18,0)

Let's see for the current date, year 2019, it's

=OFFSET(rrif!$G$18,2019-rrif!$B$18,0)


If you use B18, the value 2019, you get

=OFFSET(rrif!$G$18,2019-2019,0)

=OFFSET(rrif!$G$18,0,0)

which is G18, the value $ 662.50

If you use 2020

=OFFSET(rrif!$G$18,2019-2019,0)

=OFFSET(rrif!$G$18,-1,0)

this the the cell 1 row above G18, G17 "Monthly Withdrawals"

If you use 2037

=OFFSET(rrif!$G$18,2019-2037,0)

=OFFSET(rrif!$G$18,-18,0)

This would be 18 rows above G18, doesn't exist, there is no row 0 or negative, so you'll get the reference error.

Seems OK to me.

Maybe you want to switch the operands of the subtraction?

=OFFSET(rrif!$G$18,rrif!$B$18-YEAR(NOW()),0)
 
Upvote 0
PGC, thank you for your time and effort. I think your suggestion is a step in the right direction but not quite there yet. When I enter 2020 in now in 'rrif'!B18, the amount returned to 'income analysis'!D107 is $701.35 which as you can see in the table is the amount from 'rrif'!G19.

At least it's moving down the table BUT, I need to be able to enter ANY year in 'rrif'!B18 and the amount returned to 'income analysis'!D107 will be whatever is in 'rrif!G18, even if I enter for example the year 2065. The amount in 'rrif'!G18 is dependent on whatever amount the user enters into 'rrif'!F16 and the user will also be entering the year that they turn 70 years old in 'rrif'!B18.

Still need help with this.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,215
Messages
6,123,668
Members
449,114
Latest member
aides

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