![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
I'm having problems concatenating a text formatted cell with a date formatted cell. Each time that I try to concatenate the 2n cells the date reverts back to the code e.g. 37305 rather than retaining the date format 19/01/02. Does anyone have any ideas to get around this.
Thanks Matt |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Matt,
Try: =A1&" "&TEXT(B1,"dd/mm/yy") where A1 houses a text value and B1 a date. Aladin |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
If your text is in A1 and your date in A2 :-
=A1 & TEXT(A2,"d/mm/yy") |
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
That's worked a treat, Thanks alot
Matt |
|
|
|
|
|
#5 | |
|
Guest
Posts: n/a
|
Quote:
Adding a space to the concatenation is not necessary. Instead, the formula could entered as :- =A1&TEXT(B1," dd/mm/yy") |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|