#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Date Count

Hi all ...

I would like to know if Excel can count the number of Years and Months for a
duration (E.g from 1 Jan 2005 to 1 Dec 2006). With a formula set, it gives
you the answer as 1 Year 11 months.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Date Count

=DATEDIF(A1,A2,"y") & " years, " & DATEDIF(A1,A2,"ym") & " months, " &
DATEDIF(A1,A2,"md") & " days"

if the dates are in A1 and A2
--
Gary's Student
gsnu200701


"SgMike" wrote:

Hi all ...

I would like to know if Excel can count the number of Years and Months for a
duration (E.g from 1 Jan 2005 to 1 Dec 2006). With a formula set, it gives
you the answer as 1 Year 11 months.

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
count number of occurences on a particular date [email protected] Excel Worksheet Functions 4 December 7th 06 09:11 PM
Count items when specific text and date criteria are met javamom Excel Worksheet Functions 8 April 24th 06 09:28 PM
How do I count the number of days from 1 date to another? Steve R Excel Discussion (Misc queries) 3 February 2nd 06 08:58 PM
count the number of cells within a column with a date <= today's d Cachod1 New Users to Excel 2 January 27th 06 11:24 PM
count the number of cells with a date <= today's date Cachod1 New Users to Excel 3 January 27th 06 09:14 PM


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