Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Anthony Slater
 
Posts: n/a
Default Month and Days question

Hi

This is my 'small' query
If: -


A1=22/8/2004
B1=31/12/2004

How can I display C1 as "4 months and 9 days"

TIA
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 22 Feb 2005 03:59:04 -0800, "Anthony Slater"
wrote:

Hi

This is my 'small' query
If: -


A1=22/8/2004
B1=31/12/2004

How can I display C1 as "4 months and 9 days"

TIA


=DATEDIF(A1,B1,"m")&" months and " & DATEDIF(A1,B1,"md") & " days"

See http://www.cpearson.com/excel/datedif.htm for documentation of this
built-in Excel function.


--ron
  #3   Report Post  
Anthony Slater
 
Posts: n/a
Default

Ron

Thanks mate, that worked a treat

"Ron Rosenfeld" wrote:

On Tue, 22 Feb 2005 03:59:04 -0800, "Anthony Slater"
wrote:

Hi

This is my 'small' query
If: -


A1=22/8/2004
B1=31/12/2004

How can I display C1 as "4 months and 9 days"

TIA


=DATEDIF(A1,B1,"m")&" months and " & DATEDIF(A1,B1,"md") & " days"

See http://www.cpearson.com/excel/datedif.htm for documentation of this
built-in Excel function.


--ron

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 days in given month? Bryan Excel Worksheet Functions 10 February 2nd 05 11:44 PM
Summarizing of columns for different days of month Charles Excel Discussion (Misc queries) 4 January 18th 05 04:07 PM
I need to create pivot table for the month but data in days Mikeyh133 Excel Discussion (Misc queries) 2 December 31st 04 07:53 PM
How to Set a fix # of days per month iboock Excel Worksheet Functions 0 November 3rd 04 06:53 AM
Days of the Month Chip1035 Excel Worksheet Functions 3 October 30th 04 03:58 AM


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