#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default DATEDIF function

Can the result of a DATEDIF function be displayed as years and months?

Example

Cell T47 displays 15-Jan-04. The formula in U47 is
=DATEDIF(T47,TODAY(),"y")&DATEDIF(T47,TODAY(),"ym" ). The result is 31 for 3
years and 1 month. Is there any way for the result to say 3 years 1 month?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default DATEDIF function

Works with the date in A1 change as required if you don't want the days bit
simply delete the end piece of the formuula

=DATEDIF(A1,NOW(),"Y") & " Years, " & DATEDIF(A1,NOW(),"YM") & " Months, " &
DATEDIF(A1,NOW(),"MD") & " Days"

"mathew" wrote:

Can the result of a DATEDIF function be displayed as years and months?

Example

Cell T47 displays 15-Jan-04. The formula in U47 is
=DATEDIF(T47,TODAY(),"y")&DATEDIF(T47,TODAY(),"ym" ). The result is 31 for 3
years and 1 month. Is there any way for the result to say 3 years 1 month?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default DATEDIF function

=DATEDIF(T47,TODAY(),"y") & " year(s) " & DATEDIF(T47,TODAY(),"ym") & "
month(s)"

"mathew" wrote:

Can the result of a DATEDIF function be displayed as years and months?

Example

Cell T47 displays 15-Jan-04. The formula in U47 is
=DATEDIF(T47,TODAY(),"y")&DATEDIF(T47,TODAY(),"ym" ). The result is 31 for 3
years and 1 month. Is there any way for the result to say 3 years 1 month?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default DATEDIF function

Mike,

With this formula, tomorrow should read 3 years 2 days, correct?

"Mike" wrote:

Works with the date in A1 change as required if you don't want the days bit
simply delete the end piece of the formuula

=DATEDIF(A1,NOW(),"Y") & " Years, " & DATEDIF(A1,NOW(),"YM") & " Months, " &
DATEDIF(A1,NOW(),"MD") & " Days"

"mathew" wrote:

Can the result of a DATEDIF function be displayed as years and months?

Example

Cell T47 displays 15-Jan-04. The formula in U47 is
=DATEDIF(T47,TODAY(),"y")&DATEDIF(T47,TODAY(),"ym" ). The result is 31 for 3
years and 1 month. Is there any way for the result to say 3 years 1 month?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default DATEDIF function

If you're starting off with 15/1/04, tomorrow will be 3 years 1 month 9 days
(or tomorrow will be 3 years 1 month 10 days in places like Australia, whee
it's already tomorrow today, if you see what I mean!).

I don't know where your 3 years 2 days comes from, Mathew?
--
David Biddulph

"mathew" wrote in message
...
Mike,

With this formula, tomorrow should read 3 years 2 days, correct?


"Mike" wrote:

Works with the date in A1 change as required if you don't want the days
bit
simply delete the end piece of the formuula

=DATEDIF(A1,NOW(),"Y") & " Years, " & DATEDIF(A1,NOW(),"YM") & " Months,
" &
DATEDIF(A1,NOW(),"MD") & " Days"


"mathew" wrote:

Can the result of a DATEDIF function be displayed as years and months?

Example

Cell T47 displays 15-Jan-04. The formula in U47 is
=DATEDIF(T47,TODAY(),"y")&DATEDIF(T47,TODAY(),"ym" ). The result is 31
for 3
years and 1 month. Is there any way for the result to say 3 years 1
month?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default DATEDIF function

Mike & Vergel,

Thanks for the quick response. I can stop pulling my hair out now.

"Vergel Adriano" wrote:

=DATEDIF(T47,TODAY(),"y") & " year(s) " & DATEDIF(T47,TODAY(),"ym") & "
month(s)"

"mathew" wrote:

Can the result of a DATEDIF function be displayed as years and months?

Example

Cell T47 displays 15-Jan-04. The formula in U47 is
=DATEDIF(T47,TODAY(),"y")&DATEDIF(T47,TODAY(),"ym" ). The result is 31 for 3
years and 1 month. Is there any way for the result to say 3 years 1 month?

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
DATEDIF FUNCTION JT Excel Worksheet Functions 3 November 29th 06 04:27 PM
Help me find function Datedif ViestaWu Excel Worksheet Functions 4 August 21st 06 10:44 AM
Datedif function shaji Excel Discussion (Misc queries) 2 May 13th 06 02:36 PM
how do I get access to the datedif function? Joe McLain Excel Worksheet Functions 7 April 3rd 06 09:20 PM
Why do I get a #Name error when I use the DateDif function? PhilS Excel Worksheet Functions 9 April 5th 05 04:51 PM


All times are GMT +1. The time now is 11:31 AM.

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"