Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 271
Default subtracting 2 dates and put the result in difference in months ?

I have dates in the format of 29-Jan-04 and need to work out the difference
from this date to another IN MONTHS

e.g.
25-Sep-95 to 29-Jan-04 = how many months?
Answer = 100 but need formula so i dont have to do it one by one - i have
thousands to do - please help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default subtracting 2 dates and put the result in difference in months ?

Hi,

With the earlier date in a1 try

=DATEDIF(A1,B1,"m")

datedif isn't documented in Excel so have a look here

http://www.cpearson.com/excel/datedif.htm

Mike


"Susan" wrote:

I have dates in the format of 29-Jan-04 and need to work out the difference
from this date to another IN MONTHS

e.g.
25-Sep-95 to 29-Jan-04 = how many months?
Answer = 100 but need formula so i dont have to do it one by one - i have
thousands to do - please help?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default subtracting 2 dates and put the result in difference in months ?

If you want to see partial months (as a decimal value), you could use

=DAYS360(A1,B1)/30

To return whole months (rounding up), you could use

=ROUND(DAYS360(A1,B1)/30,0)

To return whole months (rounding down), you could use

=TRUNC(DAYS360(A1,B1)/30)

This last version gives the same results as DATEDIF, I believe.

Hope this helps,

Hutch

"Susan" wrote:

I have dates in the format of 29-Jan-04 and need to work out the difference
from this date to another IN MONTHS

e.g.
25-Sep-95 to 29-Jan-04 = how many months?
Answer = 100 but need formula so i dont have to do it one by one - i have
thousands to do - please help?

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
Subtracting Dates to Find the Difference in Hours Workbook Excel Worksheet Functions 6 January 31st 09 12:16 AM
Rounding UP Months' Difference between 2 dates FARAZ QURESHI Excel Discussion (Misc queries) 1 August 19th 07 10:29 AM
Difference between two dates in months with decimals effem Excel Worksheet Functions 1 November 8th 04 02:16 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 3 November 5th 04 05:23 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 0 November 5th 04 02:14 PM


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