Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Calculating Days Elasped

Hi

Hopefull this will be a simple task for somebody to help this simple Excel
user out :-)

In Cell A1 I have a set date (12 Apr 09).

In Cell B1 I would like to be displayed the time elasped in **y **m **d
(double digit years, months, days) since the date in A1 and today's date.

Any help would be greatly appreciated.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Calculating Days Elasped

On Sun, 10 May 2009 08:11:01 -0700, Popey
wrote:

Hi

Hopefull this will be a simple task for somebody to help this simple Excel
user out :-)

In Cell A1 I have a set date (12 Apr 09).

In Cell B1 I would like to be displayed the time elasped in **y **m **d
(double digit years, months, days) since the date in A1 and today's date.

Any help would be greatly appreciated.

Thank you.


Since neither Years nor Months have a precisely defined number of days, you may
get unexpected answers.

However, this is one way that will work most of the time:

=DATEDIF(A1,TODAY(),"y") & " yrs " &
DATEDIF(A1,TODAY(),"ym") & " months " &
DATEDIF(A1,TODAY(),"md") & " days"

See http://www.cpearson.com/excel/datedif.aspx for documentation for the
DATEDIF function, which is only in Excel 2000 HELP, but is in most versions of
Excel since 97.
--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculating Days Elasped

try

=DATEDIF(A1,TODAY(),"y")&" Y "&DATEDIF(A1,TODAY(),"ym")& " M
"&DATEDIF(A1,TODAY(),"md")&" d"

However you need to be aware that this can throw up odd results. Try this
day combination for example

31 Jan 1951
01 Mar 2008
which gives
57 years, 1 months, -1 days


Mike

"Popey" wrote:

Hi

Hopefull this will be a simple task for somebody to help this simple Excel
user out :-)

In Cell A1 I have a set date (12 Apr 09).

In Cell B1 I would like to be displayed the time elasped in **y **m **d
(double digit years, months, days) since the date in A1 and today's date.

Any help would be greatly appreciated.

Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Calculating Days Elasped

On Sun, 10 May 2009 11:34:11 -0400, Ron Rosenfeld
wrote:

=DATEDIF(A1,TODAY(),"y") & " yrs " &
DATEDIF(A1,TODAY(),"ym") & " months " &
DATEDIF(A1,TODAY(),"md") & " days"


or, to more precisely comply with your request:

=DATEDIF(A1,TODAY(),"y") & " y " &
DATEDIF(A1,TODAY(),"ym") & " m " &
DATEDIF(A1,TODAY(),"md") & " d"
--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Calculating Days Elasped

Hi Mike H & Ron

Very many thanks for your quick and helpful replies. Both formulas did the
job. :-)

"Mike H" wrote:

try

=DATEDIF(A1,TODAY(),"y")&" Y "&DATEDIF(A1,TODAY(),"ym")& " M
"&DATEDIF(A1,TODAY(),"md")&" d"

However you need to be aware that this can throw up odd results. Try this
day combination for example

31 Jan 1951
01 Mar 2008
which gives
57 years, 1 months, -1 days


Mike

"Popey" wrote:

Hi

Hopefull this will be a simple task for somebody to help this simple Excel
user out :-)

In Cell A1 I have a set date (12 Apr 09).

In Cell B1 I would like to be displayed the time elasped in **y **m **d
(double digit years, months, days) since the date in A1 and today's date.

Any help would be greatly appreciated.

Thank you.

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
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
Days per month for calculating storage days Bart Excel Worksheet Functions 3 January 31st 07 06:40 PM
Calculating Elasped Time bhomer Excel Discussion (Misc queries) 1 November 21st 05 10:11 AM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM
Calculate elasped time natvsi Excel Discussion (Misc queries) 3 May 23rd 05 06:41 PM


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"