LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default formula to count number of months that have passed

I'm trying to build a depreciation schedule for assets, in which depreciation
is calculated on a monthly basis.

I have my table set up so that the column headings are months, i.e,,
10/31/2006, 11/30/2006, etc.

Each row in the table is devoted to a particular asset, which asset has an
asset creation date, and the difference between the asset creation date and
the month in question would be the number of months over which depreciation
has accumulated for the asset in question.

Example: Asset A was created on 9/26/2006. So, for October, 2006,
depreciation would be 1 month of depreciation. The depreciable life of the
asset is 48 months. Now, I've figured out a formula that allows me to
calculate depreciation in this manner through the end of 2006. But when
1/31/2007 comes around I start to get errors. Here's the formula I'm using:

=IF($F7<0,"N/A",(MONTH(N$6)-MONTH($G7))/$B$3*$F7)

F7 is the asset's cost, N6 is the column heading showing the relevant month
(in this case, 10/31/2006), G7 is the asset creation date (9/22/2006), B3 is
the depreciable life of the asset (48 months).

So, here's the problem: when I get to 1/31/2006 (cell Q6), the difference
between that month and the month in 9/22/2006 is -8, which gives me absurd
depreciation results. Can someone figure out a way to tell Excel I'm
interested in counting months? The jerry-rigged way I have it here obviously
doesn't work when the year turns.

Thanks,

Dave
--
Brevity is the soul of wit.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of uniques starting with a given letter? MeatLightning Excel Discussion (Misc queries) 1 April 26th 06 10:32 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Need a formula to calculate the number of months to pay off a loan kv Excel Discussion (Misc queries) 2 August 2nd 05 09:02 PM
Need formula to count number of books sold Watercolor artist Excel Worksheet Functions 4 June 23rd 05 03:14 PM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM


All times are GMT +1. The time now is 12:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"