How to format date in excel
Tutor 5 (273 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Date formatting is the process of changing how a stored date value appears without changing its underlying numeric value. To format a date in Excel, follow these steps:
-
Select the cells that contain the date values.
-
Open the Format Cells dialog box.
-
Windows: Press Ctrl + 1.
-
Mac: Press Command + 1.
-
-
Select Number.
-
Select Date.
-
Pick a date format from the predefined list.
-
Select OK to apply the format.
Excel stores dates as sequential serial numbers. Formatting changes the visible representation of this number.
How to apply a custom date format
Custom formats give full control over how the date appears.
-
Select the date cells.
-
Open the Format Cells dialog.
-
Select Custom.
-
Type a custom code.
Common codes include:-
m/d/yyyy -
mm-dd-yy -
dddd, mmmm d, yyyy -
mmm-yy
-
-
Select OK.
Excel reads these codes and displays the date pattern without modifying the stored value.
How to convert text to a date format
Text entries that resemble dates can convert to real date values.
-
Select the column containing text dates.
-
Open the Data tab.
-
Select Text to Columns.
-
Select Delimited and select Next.
-
Select Next again.
-
Select Date in the Column data format section.
-
Select the order that matches the text (for example, MDY).
-
Select Finish.
Excel converts the text into valid date serial numbers.
Why dates may not format correctly
Several factors cause formatting issues:
-
The entry uses characters that Excel does not interpret as date separators.
-
The entry is stored as text with leading spaces.
-
The entry uses a regional format that conflicts with the system settings.
-
The cell previously had a text format applied.
Correcting these issues restores date functionality.
How to switch between short date and long date
Both formats are available on the Home tab.
-
Select the date cells.
-
Select the Number Format dropdown.
-
Select Short Date or Long Date.
Short Date uses a numeric pattern. Long Date spells out the month.
How to apply date formatting with keyboard shortcuts
Excel includes fast access shortcuts.
-
Short Date: Select the cells and press Ctrl + Shift + # on Windows.
Mac users press Command + Shift + #. -
Open Format Cells:
-
Windows: Ctrl + 1
-
Mac: Command + 1
-
How to ensure dates sort correctly
Excel sorts correctly when the values are true dates, not text.
-
Confirm the cell alignment.
Excel aligns dates to the right. Text aligns to the left. -
Reconvert text entries through Text to Columns or DATEVALUE.
-
Sort the column with the Sort & Filter tool.
Correct date formats produce chronological order with 100% accuracy.
How to change the default date format
Changing the system’s regional date preference updates Excel defaults.
-
Windows:
-
Open Settings.
-
Select Time & Language.
-
Select Region.
-
Change the Short date and Long date options.
-
-
Mac:
-
Open System Settings.
-
Select General.
-
Select Language & Region.
-
Edit the date formats.
-
Excel applies the system format to new workbooks.
How to format dates for data analysis
Analysis requires consistent formats.
-
Standardize the column to a single pattern such as
yyyy-mm-dd. -
Convert text-based dates.
-
Validate the serial numbers by switching to General format.
Valid dates convert to a number between 1 and 2,958,465 for dates through year 9999. -
Reapply the chosen date format.
Uniform formatting ensures accurate pivot tables, charts, and statistical functions.
How to display only the month or only the year
Custom formats produce single-unit displays.
-
Select the target cells.
-
Open Format Cells.
-
Go to Custom.
-
Enter one of these:
-
Month only:
mmmmormmm -
Year only:
yyyy
-
-
Select OK.
Excel keeps the full date while displaying a single component.
How to display dates with weekday names
Weekday formats improve readability.
-
Select the date cells.
-
Open Format Cells.
-
Select Custom.
-
Enter one of these:
-
Full weekday:
dddd -
Abbreviated weekday:
ddd
-
-
Select OK.
Excel extracts the weekday from the stored serial number.
. Was this Helpful?Related Questions
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to sort by highlighted cells in excel
Answers · 1
How to sort excel by column and keep rows together
Answers · 1
How to sort by time in excel
Answers · 1
How to sort alphabetically in excel by last name
Answers · 1