How to Change Date Formats in Microsoft Excel


Microsoft Excel logo on a green background

Excel uses the same date format as your computer’s system settings. You may want to change the format of the dates, though, to make it more accessible for users in other regions, or to make your data more compact.

Change the Date Format

To get started, open the Excel spreadsheet that contains the dates you want to reformat. Select the cells that hold each date by clicking and dragging your mouse over them.

Selected cells in Excel.

Once selected, click the down arrow to the right of the text box in the Number group of the Home tab.

Click the down arrow next to the text box.

A drop-down menu will appear. There are two date format options to choose from in this menu: Short Date (1/17/2021) and Long Date (Sunday, January 17, 2021). You can select either of those or, if that’s not the format you’re looking for, click “More Number Formats” at the bottom of the menu. This opens the Format Cells window. You can also press Ctrl+1 (Command+1 on Mac) to open this window.

Click More Number Formats.

You’ll now be in the Date category of the Format Cells window. In the Type group, select the format you would like to use. If you prefer to choose a date format based on how a certain language and region formats dates, you can select an option from the Locale drop-down menu.

The type and locale date format options.

Click “OK” at the bottom of the window when you’ve selected the format you want to use. The dates in the previously selected cells will change to the new format.

RELATED: How to Add or Subtract Dates in Microsoft Excel

Create and Use Your Own Custom Date Format

There are plenty of different formats to choose from, but you can also make your own custom date format if you want. To do so, select the cells that contain the dates you want to format by clicking and dragging your cursor over them.

Selected cells in Excel.

Next, press Ctrl+1 (Command+1 on Mac) to open the Format Cells window. You’ll automatically be in the Date category. Click “Custom” at the bottom of the Category list.

Click Custom.

Next, you’ll notice a code in the Type text box.

The date format code.

You can edit this code to create your own custom format. Each letter or letters in the code represents a display type. Here’s what each letter or letters mean:

Code Displays as:
m Months: 1-12
mm Months: 01-12
mmm Months: Jan-Dec
mmmm Months: January-December
mmmmm Months: The first letter of the month
d Days: 1-31
dd Days: 01-31
ddd Days: Sun-Sat
dddd Days: Sunday-Saturday
yy Years: 00-99
yyyy Years:1900-9999

So if you were to enter m/d/yy in the Type box and then click “OK,” the dates in the selected cells would be formatted as:

Custom formatted dates.

Play around with the different code combinations to find the perfect format that works for your spreadsheet.

When changing the date format, consider who’s going to be looking at the spreadsheet. If your spreadsheet contains a large amount of data, and you want to look at the data over a period of time, you can sort the data by date, regardless of the format being used.

RELATED: How to Sort by Date in Microsoft Excel





Source link