Apply A Formula to Increments of a Value

anborroms

New Member
Joined
Jun 26, 2024
Messages
4
Office Version
  1. Prefer Not To Say
Platform
  1. Windows
Hello

In my spreadsheet below, I am trying to calculate the Depreciation to Date of the items in column A. Each item has a number of completed months (ie. the number of moths the item has been used) and the expected yearly depreciation amount. So for example, item A has 15 months of completed months (ie. it has been used for 15 months already) and its life is 11 years with expected depreciation of 264.81 in Year 1, 249.68 of depreciation in Year 2, etc.

Is it possible to create a formula so that the total depreciation is calculated based on the number of completed months and the corresponding yearly depreciation?

So for example, for Item A, for the first 12 mths, its depreciation is 264.81; and for the remaining 3 months its depreciation is 249.68/12 * 3 = 64.42 . Therefore its total depreciation for 15 mths is 264.81 + 64.42 = 327.23 .

Any help would be much appreciated.

1719435030385.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try this for 365. (I'm not sure why "Prefer not to say" is an option for XL version).
Book1
ABCDEFGHIJKLMNOPQ
2Item# Completed MonthsDepreciation to DateYear 1Year 2Year 3Year 4Year 5Year 6Year 7Year 8Year 9Year 10Year 11
3A15327.23264.81249.68199.74159.79127.87102.2999.1199.1199.2799.1112.41
4
Sheet1
Cell Formulas
RangeFormula
C3C3=LET(q,QUOTIENT(B3,12),SUM(TAKE(G3:Q3,,q),MOD(B3,12)*INDEX(G3:Q3,,q+1)/12))
 
Upvote 0
Try this for 365. (I'm not sure why "Prefer not to say" is an option for XL version).
Book1
ABCDEFGHIJKLMNOPQ
2Item# Completed MonthsDepreciation to DateYear 1Year 2Year 3Year 4Year 5Year 6Year 7Year 8Year 9Year 10Year 11
3A15327.23264.81249.68199.74159.79127.87102.2999.1199.1199.2799.1112.41
4
Sheet1
Cell Formulas
RangeFormula
C3C3=LET(q,QUOTIENT(B3,12),SUM(TAKE(G3:Q3,,q),MOD(B3,12)*INDEX(G3:Q3,,q+1)/12))
Thank you Cubist. When I copied down the formula I am getting a #CALC! error, I believe due to an empty array. I am not really sure how to resolve.
 
Upvote 0
Can you show what is on your sheet?
 
Upvote 0
Try this for 365. (I'm not sure why "Prefer not to say" is an option for XL version).
Book1
ABCDEFGHIJKLMNOPQ
2Item# Completed MonthsDepreciation to DateYear 1Year 2Year 3Year 4Year 5Year 6Year 7Year 8Year 9Year 10Year 11
3A15327.23264.81249.68199.74159.79127.87102.2999.1199.1199.2799.1112.41
4
Sheet1
Cell Formulas
RangeFormula
C3C3=LET(q,QUOTIENT(B3,12),SUM(TAKE(G3:Q3,,q),MOD(B3,12)*INDEX(G3:Q3,,q+1)/12))
This is what I see:

1719492534431.png
 
Upvote 0
Try this.
Excel Formula:
=LET(q,QUOTIENT(B3,12),SUM(IFERROR(TAKE(G3:Q3,,q),0),MOD(B3,12)*INDEX(G3:Q3,,q+1)/12))
 
Upvote 0
Solution
You're welcome. Note that C3:Q3 needs to be the largest column range for all of your items when filling down, otherwise, you'll miss out some years. Blank cells are OK.
 
Upvote 1

Forum statistics

Threads
1,224,818
Messages
6,181,152
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