Years visible only if there's a value in cell

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
209
Office Version
  1. 365
Platform
  1. Windows
After a formula that only displays a yearly value when there's a negative value in column F, in rows 14, 15 etc the years should not be displayed. Columns D to F are a table, I've tried to write a formula using ISBLANK but I keep getting a circular reference.

Book7
ABCDEF
1YearPeriodsFV
2112-$229,500.00
3Assumed growth5.00%224-$209,000.00
4Rate per period0.00%336-$188,500.00
5448-$168,000.00
6Monthly Payment$ 1,708.33560-$147,500.00
7Annual draw down plus fees$ 20,500672-$127,000.00
8Annual draw down$ 20,000784-$106,500.00
9Present Value$ 250,000896-$86,000.00
109108-$65,500.00
1110120-$45,000.00
1211132-$24,500.00
1312144-$4,000.00
1413156 
1514168 
1615180 
1716192 
1817204 
1918216 
2019228 
2120240 
22
23
24
25
26
27
28
Sheet1
Cell Formulas
RangeFormula
E2:E21E2=D2*12
F2:F21F2=IF(FV($B$4,E2,-$B$6,$B$9)<0,FV($B$4,E2,-$B$6,$B$9),"")
B4B4=B2/12
B6B6=B7/12
B7B7=B8+500
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
With conditional formatting.
You fill the cell with white color and the letter also white:

Dante Amor
ABCDEF
1YearPeriodsFV
2112-$229,500.00
3Assumed growth5.00%224-$209,000.00
4Rate per period0336-$188,500.00
5448-$168,000.00
6Monthly Payment1708.333333560-$147,500.00
7Annual draw down plus fees20500672-$127,000.00
8Annual draw down$20,000784-$106,500.00
9Present Value$250,000896-$86,000.00
109108-$65,500.00
1110120-$45,000.00
1211132-$24,500.00
1312144-$4,000.00
1413156$16,500.00
1514168$37,000.00
1615180$57,500.00
1716192$78,000.00
1817204$98,500.00
1918216$119,000.00
2019228$139,500.00
2120240$160,000.00
22
Hoja3
Cell Formulas
RangeFormula
E2:E21E2=D2*12
F2:F21F2=FV($B$4,E2,-$B$6,$B$9)
B4B4=B2/12
B6B6=B7/12
B7B7=B8+500
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:F21Expression=$F2>=0textNO

Even the IF function in formula F is no longer needed.
 
Upvote 0
Or try this:

Book1
ABCDEF
1YearPeriodsFV
2112-229500
3Assumed growth5.00%224-209000
4Rate per period0336-188500
5448-168000
6Monthly Payment1708.333333560-147500
7Annual draw down plus fees20500672-127000
8Annual draw down$20,000784-106500
9Present Value$250,000896-86000
109108-65500
1110120-45000
1211132-24500
1312144-4000
14
15
Sheet1
Cell Formulas
RangeFormula
D2:D101D2=LET(s,SEQUENCE(100),f,FV(B4,s*12,-B6,B9),IF(f<0,s,""))
E2:E101E2=IF(D2:D101="","",D2:D101*12)
F2:F101F2=IF(D2:D101="","",FV(B4,E2:E101,-B6,B9))
B4B4=B2/12
B6B6=B7/12
B7B7=B8+500
Dynamic array formulas.
 
Upvote 0
Thanks Dante and Phuoc. I like the conditional formatting approach but it does leave empty table rows with the borders, I'd like to be able to get just clean cells after the calculation ends. Phuoc, when I try your formula and convert cells D to F into a table I get a Spill error message within the table.
 
Upvote 0
I like the conditional formatting approach but it does leave empty table rows with the borders, I'd like to be able to get just clean cells after the calculation ends.
Check this.
Delete the previous format and use the following:

Dante Amor
ABCDEFG
1YearPeriodsFV
2112-$229,500.00
3Assumed growth5.00%224-$209,000.00
4Rate per period0336-$188,500.00
5448-$168,000.00
6Monthly Payment1708.333333560-$147,500.00
7Annual draw down plus fees20500672-$127,000.00
8Annual draw down$20,000784-$106,500.00
9Present Value$250,000896-$86,000.00
109108-$65,500.00
1110120-$45,000.00
1211132-$24,500.00
1312144-$4,000.00
14  
15  
16  
17  
18  
19  
20  
21  
22
Hoja3
Cell Formulas
RangeFormula
E2:E21E2=D2*12
F2:F21F2=FV($B$4,E2,-$B$6,$B$9)
B4B4=B2/12
B6B6=B7/12
B7B7=B8+500
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:F21Expression=$F2>=0textNO


Format:
Number / Custom:
;;;

1728485216236.png

Border / Style:
None
And delete each of the lines in the Border box

1728485572349.png


You will only notice the bottom right corner of the table, I hope that is not a problem.

1728485738332.png

😇
 
Upvote 0
Solution
Check this.
Delete the previous format and use the following:

Dante Amor
ABCDEFG
1YearPeriodsFV
2112-$229,500.00
3Assumed growth5.00%224-$209,000.00
4Rate per period0336-$188,500.00
5448-$168,000.00
6Monthly Payment1708.333333560-$147,500.00
7Annual draw down plus fees20500672-$127,000.00
8Annual draw down$20,000784-$106,500.00
9Present Value$250,000896-$86,000.00
109108-$65,500.00
1110120-$45,000.00
1211132-$24,500.00
1312144-$4,000.00
14  
15  
16  
17  
18  
19  
20  
21  
22
Hoja3
Cell Formulas
RangeFormula
E2:E21E2=D2*12
F2:F21F2=FV($B$4,E2,-$B$6,$B$9)
B4B4=B2/12
B6B6=B7/12
B7B7=B8+500
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:F21Expression=$F2>=0textNO


Format:
Number / Custom:
;;;


Border / Style:
None
And delete each of the lines in the Border box



You will only notice the bottom right corner of the table, I hope that is not a problem.


😇
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,128
Members
453,021
Latest member
Justyna P

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