ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Concatinating text plus cell containing date (https://www.excelbanter.com/excel-worksheet-functions/162527-concatinating-text-plus-cell-containing-date.html)

Lori

Concatinating text plus cell containing date
 
I am trying to combine a text string ("FOR THE PERIOD OF "), then do a cell
reference to another sheet within the same workbook. The cell contains a
date. The result in the concatinated cell only displays as the date (39366,
etc.). I've trying using format cell, using both the date option and the
special option with no success. Also tried both "=concatinate" and using the
ampersand (&) with same (incorrect) result.

PCLIVE

Concatinating text plus cell containing date
 
Try something like:

="FOR THE PERIOD OF " & Month(cell reference) & "/" & day(cell reference) &
"/" & year(cell reference)

HTH,
Paul


--

"Lori" wrote in message
...
I am trying to combine a text string ("FOR THE PERIOD OF "), then do a cell
reference to another sheet within the same workbook. The cell contains a
date. The result in the concatinated cell only displays as the date
(39366,
etc.). I've trying using format cell, using both the date option and the
special option with no success. Also tried both "=concatinate" and using
the
ampersand (&) with same (incorrect) result.




George Nicholson

Concatinating text plus cell containing date
 
In a worksheet:
="For the period of " & Text(A1,"mmm dd yyyy")

Change the 2nd argument to reflect the date format you want.

In VBA/macros you'd replace the Text function with the Format function (same
arguments).


"Lori" wrote in message
...
I am trying to combine a text string ("FOR THE PERIOD OF "), then do a cell
reference to another sheet within the same workbook. The cell contains a
date. The result in the concatinated cell only displays as the date
(39366,
etc.). I've trying using format cell, using both the date option and the
special option with no success. Also tried both "=concatinate" and using
the
ampersand (&) with same (incorrect) result.





All times are GMT +1. The time now is 12:39 AM.

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