4-1: Change Date Format in Excel (Apr-10-21, 04/10/21, 10/4/21 etc) - YouTube

Channel: The Smart Method

[0]
You may have noticed that I've been very careful to use internationally safe Date Formats throughout this course.
[8]
A classic cause of errors, when dealing with international worksheets, is the use of a date such as the one shown in cell D4: 3/10/2008.
[24]
This means the 10th of March 2008 in some countries such as the USA,
[30]
and the 3rd of October 2008 in others, such as the United Kingdom.
[37]
If your work may be viewed by an international audience, it's far better to use a date format that cannot possibly cause confusion.
[47]
In this lesson we'll reformat a date into the compact and universally readable format of 10- Mar-08 shown in cell E4.
[60]
So let's open the sample file for this lesson.
[64]
The sample file is: Sales Week Ended the 14th of March 2008, and you'll find it in the Session 4 Sample Files folder.
[77]
Notice that this worksheet has a few problems.
[81]
First of all, the dates shown in Column B are too wide for the column.
[87]
In the case of dates they are shown as a row of hashes when this occurs.
[92]
You can also see that Column C is far too narrow for its contents.
[98]
So the text in Column C has been truncated.
[102]
And in Column E we have the reverse problem, where the column's too wide.
[108]
So the column header "Amount" appears too far to the left of the column.
[114]
Let's repair all of these problems in one operation using the skill you learned in Lesson 2-9.
[121]
I'll select cells A1 to G17 and then it's the Home tab on the Ribbon and, in the Cells group, Format, and then: Autofit Column Width.
[133]
And everything now looks fine.
[136]
Look at the dates in Column B.
[138]
They're very verbose.
[141]
Let's look at the date in cell B2.
[144]
Instead of "Monday, March 10, 2008", I'd like to show "Mar-10-08".
[154]
So I'll select all of the cells in Column B and I'll bring up the Format Cells dialog.
[162]
Now the fastest and most convenient way to do this is to right click inside the selected cells
[168]
and then select Format Cells… from the Shortcut Menu.
[172]
And when you do this, the Format Cells dialog is displayed.
[177]
You could also do this from the Ribbon by selecting the cells once again
[182]
and then on the Home tab on the ribbon, in the Number group, you can click the Dialog Launcher.
[189]
And exactly the same dialog is then displayed.
[192]
But I’ve found the right click method to be far more convenient.
[197]
And it's the one that I use all the time when I'm formatting cells.
[202]
When the Format Cells dialog is displayed, you should see that the Number tab is selected.
[209]
If it's not, just click on the tab to select: Number.
[213]
Notice that the Category has also been preselected to Date.
[218]
Once again, if you don't see Date here just click on Date to select it.
[223]
And on the right hand side of the dialog you can see several different date formats.
[229]
And I can see the format that I want towards the top of the list.
[233]
It's this one: 14-Mar-12.
[240]
Now the date you're seeing on your system may be different to the ones I'm seeing here.
[246]
That's because the date format you see will depend upon your locale.
[252]
This computer has a locale of English United States, so I'm seeing the format: 14-Mar-12.
[260]
But it's quite possible that your computer will have a different locale, such as English United Kingdom,
[268]
and in that case you'll have to set the date format manually.
[272]
And here's how you'd do it.
[274]
You can click: Custom, from the bottom of the Category box and then scroll up and down the Customs Formats available.
[282]
The Excel formatting strings are very complex but you can probably see that several of these relate to numbers and some relate to dates.
[292]
The ones relating to dates have letters such as m, d and y for Month, Day and Year.
[299]
I'm going to click on one of them: m/d/yyyy.
[305]
And when I do, you can see a sample appears in the top box showing me the sort of date that would result if I chose this format.
[314]
I'm going to press the Down Arrow key to move down the list and you can see that that second format seems to work well.
[323]
It's "d-mmm-yy".
[327]
That means: "Show the date, followed by a dash, followed by the month spelt as three letters, followed by a dash,
[335]
followed by the year, spelt as two numbers", so I think that format would work for me.
[342]
So in a UK locale I'd now click OK and all my dates would be formatted correctly.
[348]
Now I'll resize Column B so it's exactly the right width for the new format.
[354]
To do this I'll hover over the intersection of columns B and C and then double click with the mouse to automatically size the column.
[364]
All that remains now is to save your work and I'll save this file with the new name: Sales Week Ended the 14th of March 2008-1.
[376]
And as usual I'll save to the folder above my Sample Files Folder.
[381]
I click the Save button and you've now completed Lesson 4-1: Format Dates.