ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Concatenate including a date so that the date appears as a date (https://www.excelbanter.com/excel-worksheet-functions/252607-concatenate-including-date-so-date-appears-date.html)

Zembu

Concatenate including a date so that the date appears as a date
 
When I try to join the contents of several cells, one of which is a date and
time obtained from =now(), the date and time part appears as a number. How
can I make it appear as a date and time? I have tried changing the cell
formats - probably there is a combination that works but I haven't found it.
I also tried copying the original date cell to another cell and changing the
latter cell's format and concatenating using that latter cell, but still no
success.

Karin[_2_]

Concatenate including a date so that the date appears as a date
 
Use the TEXT function. For example, =TEXT(NOW(),"mmmm d, yyyy") would give
January 6, 2010
"ddd mm-dd-yy" would give Wed 01-06-10,
etc.

"Zembu" wrote:

When I try to join the contents of several cells, one of which is a date and
time obtained from =now(), the date and time part appears as a number. How
can I make it appear as a date and time? I have tried changing the cell
formats - probably there is a combination that works but I haven't found it.
I also tried copying the original date cell to another cell and changing the
latter cell's format and concatenating using that latter cell, but still no
success.


T. Valko

Concatenate including a date so that the date appears as a date
 
Try this...

A1 = Today's date is

=A1&" "&TEXT(NOW(),"m/d/yyyy h:mm AM/PM")

Will return something like:

Today's date is 1/6/2010 1:08 PM

--
Biff
Microsoft Excel MVP


"Zembu" wrote in message
...
When I try to join the contents of several cells, one of which is a date
and
time obtained from =now(), the date and time part appears as a number.
How
can I make it appear as a date and time? I have tried changing the cell
formats - probably there is a combination that works but I haven't found
it.
I also tried copying the original date cell to another cell and changing
the
latter cell's format and concatenating using that latter cell, but still
no
success.





All times are GMT +1. The time now is 07:18 AM.

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