+ Reply to Thread
Results 1 to 4 of 4

Depreciation calculation based on date and if functions

  1. #1
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    Depreciation calculation based on date and if functions

    Hi,

    In my formula for Col AD to AO, i calculate my amount based on date. It works for some and not for others. For example, for AD8 and AD9, if my date in AD5 change to 1/1/2013. the formula will become 0.01. but if it is 31/1/2013, it will show the correct answer. however, for 8 Jan 2013 is greater than 1 Jan 2013, shouldnt it represent the same answer?

    Also, when AD5 is 31/1/2013, cell AQ8 and AQ9, will show the wrong answers.


    I am tired and confused now. Can someone help please? I may not be explain clearly as i am a bit disoriented. I will clarify if got any query.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Depreciation calculation based on date and if functions

    Your formula compares the date in D8 to AD5, not just the month.

    =IF(AD$4="Actual",IFERROR(ROUND(IF(AND(RawData!$C8="disposal",MONTH(AE$5)=MONTH($D8),YEAR(AE$5)=YEAR($D8)),-#REF!-#REF!,IF(AD$5<=RawData!$D8,0,IF(AND(AD$5>=$T8,$T8<>0),0,IF($AQ8>(($Q8-$S8)/($R8*12)),(($Q8-$S8)/($R8*12)),IF($AQ8=1,0,IF($AQ8<0,(($Q8-$S8)/($R8*12)),$AQ8-$S8)))))),2),0),0)+0.01


    If you make AD5 > D8, the formula changes.

  3. #3
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    Re: Depreciation calculation based on date and if functions

    if i made as you suggested, it will affect other cells' answers. ie, other answers will be incorrect.

    I need to compare the date. but the answer is wrong. 8 Jan 2013 is greater than 1 Jan 2013. but how come the result is nil instead of the correct figures?
    Last edited by mingali; 08-15-2013 at 08:03 PM.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Depreciation calculation based on date and if functions

    I wasn't suggesting you make a change. I'm pointing out that your formula compares the dates, not the months.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Depreciation Calculation using if function
    By mingali in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2013, 05:21 PM
  2. Rolling Depreciation Calculation
    By BW78 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2013, 04:47 PM
  3. Depreciation Straight line Calculation based on start and end date
    By anjoseph9626 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2013, 04:44 PM
  4. Replies: 8
    Last Post: 02-10-2013, 01:15 PM
  5. Accumulated Depreciation Calculation
    By Harrold in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2013, 02:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1