IF condition for calculating depreciation

mba_110

Board Regular
Joined
Nov 28, 2012
Messages
72
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

i am struct in tricky part of If condition in excel spreadsheet, actually i am calculating the depreciation for my vehicles and partially succeeded but beginning year calculation is not showing correct results as i want the purchas year's cut of date should be on 31 December of same year, i have put the formula to calculate the days for first year, so it should be based on that days for 1st Year of calculation and the rest will be continue as normal calculation based on method i have selected in criteria of other cell.

I have methods sheet that calculate the depreciation based on selected method on result area, for more clarification i have mentioned the spreadsheet view for your reference.

The problem is in 1st year of calculation that need to be restrict to same year end and from next year it will be full, based on how many years i have selected in calculation for depreciation.

B6
Buy DateF6 PriceG6 YearH6 SalvageI6 Life J6 Method K6 Buying Year/Days200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029

<tbody>
</tbody>


Present formula is
=IF(AND(M$6>=$G7,M$6<=$I7+$G7-1),IF(ISERROR(MATCH($J7,methods,0)),"n/a",IF($J7="SL",SLN($F7,$H7,$I7),IF($J7="SYOD",SYD($F7,$H7,$I7,M$6-$G7+1),VDB($F7,$H7,$I7,M$6-$G7,M$6-$G7+1,INDEX(factors,MATCH($J7,methods,0)),INDEX(noswitch,MATCH($J7,methods,0))))))," - ")

So, i need to add the Buying Year/days to restrict it for current year of purchase and then leave it in serial for remaining years based on calculation method and salvage value i have selected.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,

You need to align the periods used in your depreciation formula. So as an example if the vehicle is purchased in June, you'll have 6 months left in the year.
using the VDB function your formula for the first year will look something like this: =VDB($F7,$H7,$I7*12;0;6) and for other year the 6 will change into 12.
Hope this helps.
 
Upvote 0
Thak you for your help if you could also mention exactly where i have to input this figures because in VDB function i inserted but its giving error.
 
Upvote 0
I mixed some things.
Try it like this: -VDB($F7,$H7,$I7*12,0,6)
 
Upvote 0
My formula is look like this after your amendment and now its less the next year number which is 2014 in cell AB7 and formula is showing wrong result.

=IF(AND(AB$6>=$I7,AB$6<=$K7+$I7-1),IF(ISERROR(MATCH($L7,methods,0)),"n/a",IF($L7="SL",SLN($H7,$J7,$K7),IF($L7="SYOD",SYD($H7,$J7,$K7,AB$6-$I7+1),-VDB($F7,$H7,$I7*12,0,6,INDEX(factors,MATCH($L7,methods,0)),INDEX(noswitch,MATCH($L7,methods,0))))))," - ")

B
H
I
J
K
L
M
O
P
Q
R
S
T
U
V
Buy DatePriceYearSalvageLifeMethodBuying Year/Days200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029
78-Dec-13681,000201347,670101.5DB-SL23 - - - - - - - - - - - - -678,986.0086,827.5073,803.3862,732.8753,322.9450,898.6650,898.6650,898.6650,898.6650,898.66 - - - - - - -

<tbody>
</tbody>


Sheet name Methods
A
B
C
1methodsfactorsnoswitch
2SLn/an/a
3SYODn/an/a
4DDB2TRUE
5DDB-SL2FALSE
61.5DB1.5TRUE
71.5DB-SL1.5FALSE

<tbody>
</tbody>

Appreciate your help in this to reach the target.
 
Upvote 0

Forum statistics

Threads
1,215,450
Messages
6,124,912
Members
449,195
Latest member
Stevenciu

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