#1   Report Post  
Tiffany
 
Posts: n/a
Default date format

Hi

I have a question and hope someone can help.

I have 2 dates

e.g. 11/1/2005 (mm/dd/yyyy) and 9/1/2005 (mm/dd/yyyy). If I substract them,
I will get 61 days. However, i do not want to show 61 days, i want to show 2
months instead.

e.g. 11/1/2005 - 9/25/2004 = ? months and ? days


can anyone help.
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default date format

Tiffany

Something like

=DATEDIF(A2,A1,"m")&" months "&DATEDIF(A2,A1,"md")&" Days"

DATEDIF is not in help (Except 2000) it was put in for compatibility with
Lotus 1-2-3, you can find help here

http://www.cpearson.com/excel/datedif.htm

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Tiffany" wrote in message
...
Hi

I have a question and hope someone can help.

I have 2 dates

e.g. 11/1/2005 (mm/dd/yyyy) and 9/1/2005 (mm/dd/yyyy). If I substract
them,
I will get 61 days. However, i do not want to show 61 days, i want to show
2
months instead.

e.g. 11/1/2005 - 9/25/2004 = ? months and ? days


can anyone help.



  #3   Report Post  
 
Posts: n/a
Default date format

wrong posting?? yeh!!
no questions but only answers

  #4   Report Post  
Tiffany
 
Posts: n/a
Default date format

Nick, thank you very much. This is exactly what I want.

"Nick Hodge" wrote:

Tiffany

Something like

=DATEDIF(A2,A1,"m")&" months "&DATEDIF(A2,A1,"md")&" Days"

DATEDIF is not in help (Except 2000) it was put in for compatibility with
Lotus 1-2-3, you can find help here

http://www.cpearson.com/excel/datedif.htm

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Tiffany" wrote in message
...
Hi

I have a question and hope someone can help.

I have 2 dates

e.g. 11/1/2005 (mm/dd/yyyy) and 9/1/2005 (mm/dd/yyyy). If I substract
them,
I will get 61 days. However, i do not want to show 61 days, i want to show
2
months instead.

e.g. 11/1/2005 - 9/25/2004 = ? months and ? days


can anyone help.




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
Change general format to US date format woodlot4 Excel Discussion (Misc queries) 3 October 11th 05 12:29 AM
Customized Date Format Frustrated Excel Worksheet Functions 5 October 7th 05 11:30 PM
Compare dates (one cell not in date format) craigcsb Excel Discussion (Misc queries) 5 June 28th 05 05:07 PM
How do I keep the date from changing format in a mail merge? Brynn Wilson Excel Discussion (Misc queries) 1 June 9th 05 06:44 PM
USING THE DATE FORMAT IN EXCEL teach Excel Discussion (Misc queries) 3 December 14th 04 11:55 PM


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