ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   date format (https://www.excelbanter.com/excel-worksheet-functions/53721-date-format.html)

Tiffany

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.

Nick Hodge

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.




[email protected]

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


Tiffany

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.






All times are GMT +1. The time now is 05:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com