Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
How can I get the number of COMPLETED months returned between 2 dates? At times it may be grater than 12 months - but never greater than 24 months. I've been fiddling with =Floor and =Ceiling but when the dates are in a different year it has me stumped. For example ... A1 = 15-Jun-07 A2 = 23-Oct-08 Need a formula to return "15" months Tks, Kaye |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=DATEDIF(A1,A2,"M")
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Rick" wrote in message ... Hi, How can I get the number of COMPLETED months returned between 2 dates? At times it may be grater than 12 months - but never greater than 24 months. I've been fiddling with =Floor and =Ceiling but when the dates are in a different year it has me stumped. For example ... A1 = 15-Jun-07 A2 = 23-Oct-08 Need a formula to return "15" months Tks, Kaye |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
Try this - it can probably be simplified further: =DATEDIF(A1,A2,"m")-(DAY(A1)<DAY(A2))+(DAY(A1)=1)+ (DATE(YEAR(A2),MONTH(A2)+1,0)=A2) Richard On Dec 27, 11:51 am, Rick wrote: Hi, How can I get the number of COMPLETED months returned between 2 dates? At times it may be grater than 12 months - but never greater than 24 months. I've been fiddling with =Floor and =Ceiling but when the dates are in a different year it has me stumped. For example ... A1 = 15-Jun-07 A2 = 23-Oct-08 Need a formula to return "15" months Tks, Kaye |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Bob and Richard for the rapid reply!
Cheers, Kaye (via Rick's account) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Month name to number of months YTD | Excel Worksheet Functions | |||
Number of tasks completed in a specific time frame | Excel Discussion (Misc queries) | |||
how do I convert a number to number of years, months and days | Excel Worksheet Functions | |||
Number of months between 2 dates | New Users to Excel | |||
Want a number of cells to be auto completed based on entry in one. | Excel Worksheet Functions |