To write a date in Excel, simply click a cell and type the date using a forward slash (/) or a hyphen (-), such as 12/04/2026, and press Enter. Excel automatically recognizes these patterns as dates, allowing you to perform calculations, sort chronologically, and change the visual style without re-typing the data.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS) or a web browser using Excel for the Web.
- A keyboard with a numeric keypad (optional, but speeds up data entry).
Step-by-Step
- Select the Target Cell: Click on the cell where you want the date to appear. If you need a whole column of dates, click the column letter at the top to highlight the entire vertical range.
- Enter the Date: Type the date using a standard separator. The most reliable formats are:
- Month/Day/Year (e.g., 12/4/2026)
- Day-Month-Year (e.g., 04-12-2026)
- Press Enter: Once you press Enter or Tab, Excel converts the text into a "Date" value. You can tell it worked if the text automatically aligns to the right side of the cell.
- Use a Keyboard Shortcut (Optional): If you want to enter today's date instantly, press
Ctrl + ;(semicolon) on Windows orCommand + ;on Mac. This inserts a static date that will not change tomorrow. - Use a Dynamic Formula (Optional): If you want the date to update automatically every time you open the file, type
=TODAY()into the cell and press Enter. - Change the Date Format: To change how the date looks (e.g., changing 12/04/2026 to December 4, 2026):
- Right-click the cell and select Format Cells.
- In the Number tab, select Date from the Category list.
- Choose your preferred format from the Type list on the right and click OK.
Common Mistakes
- Typing Dates as Text: Typing "December 4th, 2026" often results in Excel treating the entry as a text string rather than a date. This means you cannot use it in formulas or sort it by time. Always use numbers and separators.
- Confusing Regional Formats: In the US, 01/02/2026 is January 2nd. In the UK, it is February 1st. If your dates look "swapped," check your system's region settings in the OS control panel.
- Using the Wrong Shortcut: Using
=TODAY()when you actually need a permanent record. If you use the formula for an invoice date, that date will change every single day you open the file. UseCtrl + ;for permanent dates. - Incorrect Cell Formatting: If a cell is formatted as "Text" before you type the date, Excel will not recognize it as a date regardless of how you type it.
Tips
- The Fill Handle: You don't have to type every date in a sequence. Type the first date, then click and drag the small green square (the fill handle) in the bottom-right corner of the cell downward. Excel will automatically fill the subsequent days.
- Custom Formatting: If the standard date options aren't what you need, go to Format Cells > Number > Custom. You can type
dddd, mmmm dd, yyyyto get a result like "Thursday, December 04, 2026." - Quick Year Entry: In most versions of Excel, if you type 12/4 and press Enter, Excel assumes the current year and automatically adds it for you.
Troubleshooting
If your date does not look correct or isn't behaving as a date, try these steps in order:
- Check for the Hash Marks (####): If you see a series of hashtags in the cell, the date is there, but the column is too narrow to display it. Double-click the right border of the column header to auto-fit the width.
- Check the Alignment: If the date is aligned to the left, Excel thinks it is text. Ensure you used a slash or hyphen and that there are no leading spaces or letters (like "Date: 12/04").
- Change the Cell Category: Go to the Home tab, look at the Number dropdown menu in the ribbon, and change "Text" or "General" to "Short Date."
- Check System Settings: If Excel refuses to recognize your date format, ensure your computer's operating system date settings match the format you are typing.
Frequently Asked Questions
Why does my date turn into a five-digit number?
Excel stores dates as sequential serial numbers (e.g., January 1, 1900, is number 1). If the cell is formatted as "General" or "Number" instead of "Date," you will see the raw serial number. Change the cell format to "Short Date" to fix this.
How do I enter the current time along with the date?
To enter a static date and time, press Ctrl + ;, press Space, and then press Ctrl + Shift + ;. To use a formula that updates automatically, use =NOW().
Can I make Excel automatically enter the date when I type in another cell?
This is not a built-in feature of standard cell entry. It requires using a VBA macro or a complex circular reference formula. For most users, the Ctrl + ; shortcut is the fastest manual alternative.
How do I subtract two dates to find the number of days between them?
Since Excel treats dates as numbers, you can simply subtract them. If cell A1 has the start date and B1 has the end date, type =B1-A1. Ensure the result cell is formatted as a "Number" rather than a "Date."
How do I enter a date that is before the year 1900?
Excel cannot recognize dates prior to January 1, 1900, as numerical date values. To enter these, you must format the cell as "Text" and type the date manually. Note that you will not be able to use these cells in date-based calculations.