dynamic formula for asset depreciation expense

Adam1988

New Member
Joined
Oct 1, 2015
Messages
8
Hi all,

I am working on a formula to calculate straight line asset depreciation expense for each year from 2016-2022. Every year the company purchases some amount of new assets. I would like the term that assets depreciate to be based on an input cell (A1), so I need the depreciation expense formula to be dynamic.

I am projecting years 2016-2022.


The table below represents my data (asset purchase price label is in cell A3 and the values are in B3:H3. The Depreciation Expense label is in cell A4 and the depreciation expense formula should be in cells B4:H4.

I have included two versions of the Depreciation Expense outcome to provide examples of two possible Depreciation Term inputs (Cell A1)

2016201720182019202020212022
Asset Purchase Price10203040506070
Depreciation Expense (if term is 2 year in A1)5152535455565
Depreciation Expense (if term is 4 year A1)2.57.51525354555

<tbody>
</tbody>


2 year depreciation term
  • 2016: 5/2
  • 2016: 5/2 + 10/2
  • 2017: 10/2 + 20/2
  • 2018: 20/2 + 30/2
  • 2019: 30/2 + 40/2
  • 2020: 40/2 + 50/2
  • 2021: 50/2 + 60/2
  • 2022: 60/2 + 70/2

4 year depreciation term
  • 2016: 10/4
  • 2017: 10/4 + 20/4
  • 2018: 10/4 + 20/4 + 30/4
  • 2019: 10/4 + 20/4 + 30/4 + 40/4
  • 2020: 20/4 + 30/4 + 40/4 + 50/4
  • 2021: 30/4 + 40/4 + 50/4 + 60/2
  • 2022: 40/4 + 50/4 + 60/2 + 70/2

Any help is greatly appreciated!!

thanks,
Adam1988
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
USA, you could try this formula:

ABCDEFGH
1Depreciation Life, straight-line (yr.)2
2Salvage ($)0
3
42016201720182019202020212022
5Asset Purchases ($)10.0020.0030.0040.0050.0060.0070.00
6Aggregate Depreciation Expense ($)5.0015.0025.0035.0045.0055.0065.00

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet18

Worksheet Formulas
CellFormula
B6=SUMPRODUCT(SLN(OFFSET(B5,0,MAX(1-COLUMNS($B$5:B5),1-$B$1)):B5,$B$2,$B$1))
C6=SUMPRODUCT(SLN(OFFSET(C5,0,MAX(1-COLUMNS($B$5:C5),1-$B$1)):C5,$B$2,$B$1))
D6=SUMPRODUCT(SLN(OFFSET(D5,0,MAX(1-COLUMNS($B$5:D5),1-$B$1)):D5,$B$2,$B$1))
E6=SUMPRODUCT(SLN(OFFSET(E5,0,MAX(1-COLUMNS($B$5:E5),1-$B$1)):E5,$B$2,$B$1))
F6=SUMPRODUCT(SLN(OFFSET(F5,0,MAX(1-COLUMNS($B$5:F5),1-$B$1)):F5,$B$2,$B$1))
G6=SUMPRODUCT(SLN(OFFSET(G5,0,MAX(1-COLUMNS($B$5:G5),1-$B$1)):G5,$B$2,$B$1))
H6=SUMPRODUCT(SLN(OFFSET(H5,0,MAX(1-COLUMNS($B$5:H5),1-$B$1)):H5,$B$2,$B$1))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
First, I suspect that your 2016 2-year example should be 10/2, and the denominators in your 4-year example should all be 4 in years 2021 and 2022.

Given that, you can put this formula in B3:
Code:
=SUM(OFFSET(B3,0,MAX(2-COLUMN(),1-$A$1)):B3)/$A$1
and copy it over to H3.

It gives all the expected answers.
 
Last edited:
Upvote 0
First, I suspect that your 2016 2-year example should be 10/2, and the denominators in your 4-year example should all be 4 in years 2021 and 2022.

Given that, you can put this formula in B3:
Code:
=SUM(OFFSET(B3,0,MAX(2-COLUMN(),1-$A$1)):B3)/$A$1
and copy it over to H3.

It gives all the expected answers.


Hi, yes, apologies for the typos.

I'll try both suggestions.

Thanks for all the help!

Adam1988
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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