Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
noles fan
 
Posts: n/a
Default HOW TO SUBTRACT A YEAR+MONTH AND SHOW DIF IN MONTHS?

I really need fast help on this one. Pretty good with formulas but this is
kicking my butt. i will show an example of what i need. Thank you all ahead
of time for the help.

2005 09
- 2004 10

answer i need to show is 11.
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi

Provided you are using true dates, then with 01/09/2005 in A1 and
01/10/2004 in A2
=DATEDIF(A2,A1,"ym")

If you want to disply 2005 09 then even with date entered in A1 as
01/09/2005 you can use
FormatCellsNumberCustom and set the format as yyyy mm

Regards

Roger Govier



noles fan wrote:

I really need fast help on this one. Pretty good with formulas but this is
kicking my butt. i will show an example of what i need. Thank you all ahead
of time for the help.

2005 09
- 2004 10

answer i need to show is 11.


Reply
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
Showing data per month & year for comparison gman Excel Discussion (Misc queries) 3 September 7th 05 01:23 AM
show month number as month name in Excel? Phil Hart Excel Discussion (Misc queries) 3 June 20th 05 06:12 PM
Show month in different color? OneGoose Excel Discussion (Misc queries) 1 June 1st 05 06:08 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
Pivot Table - Group by Month - Show Items with no data Dan Reynolds Excel Discussion (Misc queries) 0 November 28th 04 01:01 AM


All times are GMT +1. The time now is 12:27 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"