Error in Formula

anillinda

New Member
Joined
Apr 20, 2012
Messages
48
ABCDEFGHI
NoDescriptionDate PurchasedCostPrior DepreciationLifeCurrent DepreciationType
1Truck09/3/201428182164385?Auto

<tbody>
</tbody>


I am using the following formula, which is giving me error. Can someone trace the mistake? Cell I2 has date 07/31/2018

IF((EDATE(I2,-12))< c4,(sln(d4,0,f4),0,if(and(c4 >=EDATE(I2,-12)+1,C4<=I2,SLN(D4,0,ROUNDUP(YEARFRAC(C4,DATE(IF(MONTH(C4) >7,YEAR(C4)+1,YEAR(C4)),7,31))*12,0)/12),0)))<c4,(sln(d4,0,f4),0,if(and(c4></c4,(sln(d4,0,f4),0,if(and(c4>
 
Last edited by a moderator:

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
something inconsistent in red

IF((EDATE(I2,-12))< c4,(sln(d4,0,f4),0,if(and(c4 >=EDATE(I2,-12)+1,C4<=I2,SLN(D4,0,ROUNDUP(YEARFRAC(C4,DATE(IF(MONTH(C4) >7,YEAR(C4)+1,YEAR(C4)),7,31))*12,0)/12),0)))
 
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

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