ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Displaying two dates in excel (https://www.excelbanter.com/excel-discussion-misc-queries/446684-displaying-two-dates-excel.html)

pooljunkie912

Displaying two dates in excel
 
I am trying to display two dates in one cell in excel.

I have used the formula :

=DATE(YEAR(NOW()),MONTH(NOW()),I1) & " & " & DATE(YEAR(NOW()),MONTH(NOW()),I15)

Where the values of I1 and I15 are 1 and 15 respectively. The reason I chose this formula is becasue I want each date to diplay the 1st and the 15th of the current month. I would like this cell to read "7/1/12 & 7/15/12" however right now the current formula is giving me "41091 & 41105" I have formated the cell to display the correct date format that I want. Is there a way to fix this?

Spencer101

Quote:

Originally Posted by pooljunkie912 (Post 1604039)
I am trying to display two dates in one cell in excel.

I have used the formula :

=DATE(YEAR(NOW()),MONTH(NOW()),I1) & " & " & DATE(YEAR(NOW()),MONTH(NOW()),I15)

Where the values of I1 and I15 are 1 and 15 respectively. The reason I chose this formula is becasue I want each date to diplay the 1st and the 15th of the current month. I would like this cell to read "7/1/12 & 7/15/12" however right now the current formula is giving me "41091 & 41105" I have formated the cell to display the correct date format that I want. Is there a way to fix this?

Hi, How about:

=TEXT(DATE(YEAR(NOW()),MONTH(NOW()),I1),"MM/DD/YY") & " & " & TEXT(DATE(YEAR(NOW()),MONTH(NOW()),I15),"MM/DD/YY")


All times are GMT +1. The time now is 04:03 AM.

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