Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

converting date format text

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

Converting date format to text format

ResolvedVersion 2007

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.

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.

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Change the default location for opening and saving spreadsheets

If you are always opening spreadsheets from and/or saving documents to a specific location that is not My Documents, save time by setting this folder as the default for opening files from and saving files to.

Here's how:
1. Go to Tools - Options.

2. Select the General tab.

3. Enter the pathname of the folder you wish to make the default in the Default File Location box (hint: it will be easier to use Windows Explorer to navigate to this folder, then copy and paste the pathname from the address bar at the top of the Windows Explorer screen).

4. Click OK.

You have now changed the default folder for opening and saving spreadsheets.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.29 secs.