Error in Formula

anillinda

New Member
Joined
Apr 20, 2012
Messages
48
[TABLE="width: 500"]
<tbody>[TR]
[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]
[/TR]
[TR]
[TD]No[/TD]
[TD]Description[/TD]
[TD]Date Purchased[/TD]
[TD]Cost[/TD]
[TD]Prior Depreciation[/TD]
[TD]Life[/TD]
[TD]Current Depreciation[/TD]
[TD]Type[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Truck[/TD]
[TD]09/3/2014[/TD]
[TD]28182[/TD]
[TD]16438[/TD]
[TD]5[/TD]
[TD]?[/TD]
[TD]Auto[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

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