Hi-
Need some help.
I am trying to design a depreciation register and am having problems with the datedif() formula. Wondering is someone Know of a way to calculate between dates if the day in the purchase date is less than or equal to 15, then start counting from purchase date month. If it is not than start calculating from the month after the purchase date?
Formula is as follows...
06/30/2012 07/01/2011
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]06/30/2012[/TD]
[TD]07/01/2011[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Tag No[/TD]
[TD]Purchase Date[/TD]
[TD]useful life in yrs[/TD]
[TD]est end date[/TD]
[TD]months in use[/TD]
[TD]purch
cost[/TD]
[TD]prior yrs accum[/TD]
[TD]current yrs dep[/TD]
[TD]annual net book[/TD]
[TD]monthly dep[/TD]
[TD]total
deprec[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ps-0572[/TD]
[TD]05/21/2012[/TD]
[TD]4[/TD]
[TD]05/20/2016[/TD]
[TD] 1[/TD]
[TD]2547.88[/TD]
[TD] -[/TD]
[TD]636.97[/TD]
[TD]2494.80[/TD]
[TD]53.80[/TD]
[TD]53.80[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ps-0572[/TD]
[TD]05/21/2012[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]2547.88[/TD]
[TD] $0.00[/TD]
[TD]53.08[/TD]
[TD]2494.80[/TD]
[TD]53.80[/TD]
[TD]53.80[/TD]
[/TR]
</tbody>[/TABLE]
The Third Row is what my calculations are coming up with, 4th Row is what they should be.
Formulas:
Column D:
Thank you in Advance for your assistance in this problem.
Need some help.
I am trying to design a depreciation register and am having problems with the datedif() formula. Wondering is someone Know of a way to calculate between dates if the day in the purchase date is less than or equal to 15, then start counting from purchase date month. If it is not than start calculating from the month after the purchase date?
Formula is as follows...
06/30/2012 07/01/2011
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]06/30/2012[/TD]
[TD]07/01/2011[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Tag No[/TD]
[TD]Purchase Date[/TD]
[TD]useful life in yrs[/TD]
[TD]est end date[/TD]
[TD]months in use[/TD]
[TD]purch
cost[/TD]
[TD]prior yrs accum[/TD]
[TD]current yrs dep[/TD]
[TD]annual net book[/TD]
[TD]monthly dep[/TD]
[TD]total
deprec[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ps-0572[/TD]
[TD]05/21/2012[/TD]
[TD]4[/TD]
[TD]05/20/2016[/TD]
[TD] 1[/TD]
[TD]2547.88[/TD]
[TD] -[/TD]
[TD]636.97[/TD]
[TD]2494.80[/TD]
[TD]53.80[/TD]
[TD]53.80[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ps-0572[/TD]
[TD]05/21/2012[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD]2547.88[/TD]
[TD] $0.00[/TD]
[TD]53.08[/TD]
[TD]2494.80[/TD]
[TD]53.80[/TD]
[TD]53.80[/TD]
[/TR]
</tbody>[/TABLE]
The Third Row is what my calculations are coming up with, 4th Row is what they should be.
Formulas:
Column D:
- =IF(C3<=0," ",B3+(C3*365))
- =IF(D3<=$A$1,"",ROUND(DATEDIF(B3,$A$1,"m"),0))
- Is a Fixed column
- =IF(E3<12,0,IF(AND(D3<$A$1,H3=0),F3,(K3-H3)))
- =IF(AND(B3<$A$1,B3>$B$2),ROUND(DATEDIF(B3,$A$1,"YM")-DATEDID($B$1,B3,"YM"),0)*J3,IF(D3<$A$1,0,F3/C3))
- =F3-K3
- =IFERROR(F3/C3/12," ")
- =IF(D3<$A$1,F3,ROUND(DATEDIF(B3,$A$1,"M"),0)*J3)
Thank you in Advance for your assistance in this problem.
Last edited: