LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 313
Default Help!!! End of Month Calculation

I need some help. I am writing a formula to calculate my asset depreciation
schedule. The rule is, the new purchased asset will be depreciated for the
full in current month, no matter what date the asset purchased within the
month, the depreciation will be calculated for full month e.g. purchase on
29-Nov-06 will depreciate for 30 days in Nov.

I use EOMONTH function, it works in purchase month (refer Purchase Month
table 1). However, it doesnt work afterward, because EOMONTH calculated in
days (Refer After Purchase table 1). Then I changed into Month format. It
works in after purchase period (Refer After Purchase table 2) but then it
doesnt work in purchase month (Refer Purchase Month 2). I changed MONTH &
EOMONTH combine, it works in purchase month (Refer Purchase Month table 3)
but it doesnt work in after purchase (Refer After Purchase table 3).


Purchase Month
A1 B1 Formula Result
1 29-Nov-06 30-Nov-06 =EOMONTH(B1,0)-EOMONTH(A1,0) 0
2 29-Nov-06 30-Nov-06 =month((EOMONTH(B1,0)-EOMONTH(A1,0))) 1
3 29-Nov-06 30-Nov-06 =MONTH(EOMONTH(B1,0))-MONTH(EOMONTH(A1,0)) 0

After Purchase
A1 B1 Formula Result
1 29-Nov-06 30-Jun-07 =EOMONTH(B1,0)-EOMONTH(A1,0) 212
2 29-Nov-06 30-Jun-07 =month((EOMONTH(B1,0)-EOMONTH(A1,0))) 7
3 29-Nov-06 30-Jun-07 =MONTH(EOMONTH(B1,0))-MONTH(EOMONTH(A1,0)) -5


 
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
Last Day Of Month Calculation... Jay Excel Worksheet Functions 3 July 11th 06 03:17 PM
Month end calculation Tony Excel Worksheet Functions 12 March 24th 06 12:56 AM
Month end calculation Tony Excel Discussion (Misc queries) 2 March 23rd 06 01:24 AM
additional month calculation BorisS Excel Discussion (Misc queries) 6 December 13th 05 06:24 AM
month-to-month calculation Colin2u Excel Discussion (Misc queries) 0 July 27th 05 01:32 AM


All times are GMT +1. The time now is 04:27 PM.

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"