converting date format text
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Converting date format to text format

Converting date format to text format

resolvedResolved · Medium Priority · Version 2007

replyReply Fri 11 Nov 2011, 16:24Delegate Roger said...

Roger has attended:
Excel Advanced course

Converting date format to text format

I need to merge 3 cells into 1. The cells are set up with the following formatts - number/date/text. I use the following formula:

=E12&" - "&F12&" - "&G12

When they merge the date turns into a number so i have to put an aprostrophie in front of the date to keep it in date format.

Could you tell me if there is a better way to merge the cells or to keep the date format without having to insert the aprostrophie?

I was on an Excel advanced course today.

Thanks in advance.

For upcoming training course dates see: Pricing & availability

replyReply Wed 16 Nov 2011, 12:40Trainer Jim said...

RE: converting date format to text format

Hi Roger

There is an alternative, though I'm not sure it is better.

You could use the DAY function, the month function and the YEAR function, along with the use of the &. You can also add a space between day month and year, or alternatively a "/".

Assuming your date is in cell G12, from the example you quoted, try this:

=E12&" - "&F12&" - "&DAY(G12)&"/"&MONTH(G12)&"/"&YEAR(G12)

If you only want the last two digits of the year, you could incorporate the RIGHT function with the YEAR function:

=E12&" - "&F12&" - "&DAY(G12)&"/"&MONTH(G12)&"/"&RIGHT(YEAR(G12),2)

I hope that helps - at least it offers the opportunity to modify the format of your date. Good luck with your Excel.

Regards

Jim Hewitt

Wed 23 Nov 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel vba training and other Microsoft training courses.

Excel tip:

Quickly select a block of data

To quickly select a block of data make sure your active cell is somewhere whithin the block of data and then press Ctrl+* or Ctrl+Shift+8.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard