Half YR Depr. Forecast Nested IF Statement

creepinjorge

New Member
Joined
Dec 17, 2014
Messages
8
Excel 2010

Hello,

I would like to create a formula or VBA code that enters the appropriate depreciation amount for each month. The goal is that an engineer can enter their project closing month and depreciation years and the formula will return the current year depreciation.


Background:Half yr. Convention. Calendar year Jan=1 Dec=12; A project closes in March(3) we catch up Jan-Feb then depreciate the remaining months so an entire half-yr is taken.
1

<tbody>
</tbody>
23456789 (AA3)101112
Month Closing

<tbody>
</tbody>
Years

<tbody>
</tbody>
Half-Year
Depreciation

<tbody>
</tbody>
31

<tbody>
</tbody>
30

<tbody>
</tbody>
31

<tbody>
</tbody>
312831303130313130365
9 (P5)10
186,705.00

<tbody>
</tbody>
=IF($P5=AA$3,$R5-$AD5-$AC5-$AB5,($R5/$AF$4)*AA$4)samesamesame
110
7,490.00

<tbody>
</tbody>
=IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6-$Z6-$Y6-$X6-$W6-$V6-$U6-$T6,IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6-$Z6-$Y6-$X6-$W6-$V6-$U6,IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6-$Z6-$Y6-$X6-$W6-$V6,IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6-$Z6-$Y6-$X6-$W6,IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6-$Z6-$Y6-$X6,IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6-$Z6-$Y6,IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6-$Z6,IF($P6=S$3,$R6-$AD6-$AC6-$AB6-$AA6,($R6/$AF$4)*S$4))))))))samesamesamesamesamesamesamesamesamesamesame
410
328.70

<tbody>
</tbody>
=IF($P7=V$3,$R7-$AD7-$AC7-$AB7-$AA7-$Z7-$Y7-$X7-$W7,($R7/$AF$4)*V$4)
210
30,074.35

<tbody>
</tbody>
5,026.12

<tbody>
</tbody>
2,554.26

<tbody>
</tbody>
2,554.26

<tbody>
</tbody>
2,307.07

<tbody>
</tbody>
2,554.26

<tbody>
</tbody>
2,471.86

<tbody>
</tbody>
2,554.26

<tbody>
</tbody>
2,471.86

<tbody>
</tbody>
2,554.26

<tbody>
</tbody>
2,554.26

<tbody>
</tbody>
2,471.86

<tbody>
</tbody>
30,074.35

<tbody>
</tbody>

<tbody>
</tbody>

If the Month closing = current month then subtract everything to right. if no match, take the depreciation that month by days in month. The long nested IF doesn't work because It stops at 8 statements.

I'm not a wiz at VBA so IF Statements that move across months aren't the first thing I think about.

Thank you for your time!

Dennis
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Using your last row of data which I think would begin in P8, enter this formula in S8 and copy across:
Code:
=IF($P8>S$3,0,IF($P8=S$3,$R8/12*$P8,$R8/12))
 
Upvote 0
That is fantastic! and extreamly useful considering how often I forecast depreciation and how many projects are opened/closed! You made this process painless. Stay classy.
:)
 
Upvote 0
=IFERROR(IF($P5>S$3,0,IF($P5=S$3,($R5/365)*SUM($S$4:S$4),$R5/365*S$4)),0)

I updated the formula to use days (our depreciation drills down to days in month not just /12) and move across the sheet also. Again, thanks so much for your time and everything.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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