The fastest way to enter a date in Excel

Type the date in a cell using a format Excel recognizes — like 1/15/2024, 01-15-2024, or January 15, 2024 — and press Enter. Excel converts it to a date value automatically, which means you can then sort by it, calculate days between dates, or format it differently without retyping. If Excel doesn't recognize what you typed as a date, it treats it as text instead, and you won't be able to do math with it.

The format Excel expects depends on your computer's regional settings. In the United States, Excel usually expects month/day/year. In many other countries, it expects day/month/year. If you're not sure which your computer uses, type a date you know — like 3/4/2024 — and see whether Excel displays it as March 4 or April 3. That tells you the order your system expects.

Once you've entered a date as a value (not text), you can change how it looks without changing the underlying data. A date stored as 1/15/2024 can display as "Jan 15", "15-Jan-2024", "1/15/24", or dozens of other formats, all from the same cell.

Key Takeaways

  • Type a date in a format Excel recognizes — month/day/year in the US, day/month/year in most other countries — and press Enter to convert it to a date value.
  • If Excel treats your entry as text instead of a date, you won't be able to sort, filter, or calculate with it; check the cell alignment to tell the difference.
  • Use the Format Cells dialog (Ctrl+1 on Windows, Cmd+1 on Mac) to change how a date displays without changing the date itself.
  • The TODAY() function enters today's date automatically and updates every time you open the file; the NOW() function adds the current time as well.

Telling the difference between a date value and text that looks like a date

When you type something into a cell, Excel tries to guess what you mean. If it looks like a date, Excel converts it to a date value. If it's not sure, it leaves it as text. The problem: text that looks like a date behaves completely differently. You can't sort it correctly, filter by date range, or use it in formulas that calculate days or months.

The easiest way to tell is to look at the cell alignment. A date value is right-aligned by default; text is left-aligned. If you typed "1/15/2024" and it's sitting on the left side of the cell, Excel stored it as text. If it's on the right, it's a date value.

Another check: click the cell and look at the formula bar at the top. If you see a small green triangle in the corner of the cell, Excel is warning you that it detected text in a cell that should contain a number or date. Right-click the cell and choose "Convert to Number" to fix it.

Using TODAY() and NOW() to insert automatic dates

Instead of typing a date by hand, use the TODAY() function to insert today's date automatically. Type =TODAY() into a cell and press Enter. Excel fills in the current date and updates it every time you open the file. This is useful for timestamping when something was created or last reviewed.

If you need the current date and time together, use NOW() instead. Type =NOW() and press Enter. The cell displays the date and time to the nearest minute. Like TODAY(), it updates every time the file opens.

One important difference: TODAY() and NOW() are volatile functions, meaning they recalculate every time Excel recalculates the sheet. If you want a date that stays fixed — the date you actually entered the data, not the date someone opens the file later — type the date by hand instead of using a function.

Changing how a date looks without changing the date itself

Once you have a date value in a cell, you can display it in almost any format without affecting the underlying data. Select the cell or cells with dates you want to reformat. On Windows, press Ctrl+1; on Mac, press Cmd+1. The Format Cells dialog opens.

Click the "Number" tab (it may already be selected). On the left, click "Date" to see date format options. Excel shows you a list of formats — "3/15/2024", "15-Mar", "March 15, 2024", and many others. Click the one you want and click OK. The dates in your cells now display in that format, but the actual date value hasn't changed. If you use that cell in a formula, the formula still sees the real date.

If none of the built-in formats match what you need, you can create a custom format. In the Format Cells dialog, click "Custom" at the bottom of the category list. You'll see a text field with a format code like "m/d/yyyy". You can edit this code to create your own format — for example, "mmmm d, yyyy" displays "January 15, 2024". This takes some practice, but it's useful if your workplace or project has a specific date style.

Entering dates across multiple cells quickly

If you need to fill a column with a series of dates — like every day for a month, or every week for a year — you don't have to type each one. Enter the first date in a cell, then the second date in the cell below it. Select both cells. Move your cursor to the small square in the bottom-right corner of the selection (called the fill handle) until it turns into a plus sign, then drag down. Excel recognizes the pattern and fills in the rest of the dates for you.

This also works with just one cell if the pattern is obvious. Type a date, select it, and drag the fill handle down. Excel usually guesses that you want consecutive days and fills them in. If it doesn't guess right, you can undo and try entering two dates to establish the pattern more clearly.

For more control, use the Fill menu instead. Enter your first date, select the range where you want dates to appear, then go to Sheet menu (or Edit menu on older versions) and look for Fill options. Some versions of Excel have a "Series" option that lets you specify the interval — every 3 days, every week, every month — without dragging.

Calculating the number of days between two dates

Once you have dates as values (not text), you can do math with them. The simplest calculation is the number of days between two dates. In an empty cell, type =B2-A2, where A2 is one date and B2 is another. Press Enter. Excel shows you the number of days between them.

If you want to calculate years or months instead of days, use the DATEDIF function. Type =DATEDIF(A2,B2,"Y") to get the number of complete years between the dates in A2 and B2. Use "M" for months or "D" for days. For example, =DATEDIF(A2,B2,"M") tells you how many complete months have passed.

These formulas only work if both cells contain actual date values. If either cell contains text that looks like a date, the formula returns an error. This is another reason to check that your dates are stored correctly before you start building formulas around them.

Common mistakes when entering dates

The most common mistake is typing a date in a format your computer doesn't expect. If your system is set to day/month/year but you type 3/4/2024 meaning March 4, Excel interprets it as April 3. The date looks right on screen, but any calculation using it will be wrong. Check your system's regional settings or test with a date you know to confirm the order.

Another frequent problem is mixing formats in the same column. If some cells have "1/15/2024" and others have "January 15, 2024", Excel may treat some as dates and others as text, even though they look similar. Stick to one format when you're entering data, then use the Format Cells dialog to make them all display the same way afterward.

Typing dates with a leading apostrophe — like '1/15/2024 — forces Excel to treat the entry as text. This is sometimes useful if you want to preserve leading zeros, but it breaks sorting and formulas. If you see an apostrophe in the formula bar when you click a cell, that's why it's not behaving like a date.

Frequently Asked Questions

Why does Excel show my date as a number like 45325?

Excel stores dates as numbers behind the scenes — the number represents days since January 1, 1900. If a cell displays this number instead of a date, the column is too narrow or the cell format is set to "Number" instead of "Date". Widen the column by double-clicking the border between column headers, or right-click the cell, choose Format Cells, and select Date from the category list.

Can I enter a date with the time of day?

Yes. Type the date and time together, like "1/15/2024 2:30 PM" or "15-01-2024 14:30", and press Enter. Excel stores both the date and time as a single value. You can then format it to show only the date, only the time, or both. Use the Format Cells dialog and choose a format from the Date or Time categories.

What's the difference between typing a date and using the TODAY() function?

A date you type stays the same every time you open the file. TODAY() updates to the current date every time the file opens or recalculates. Use TODAY() when you want a timestamp that always shows today; use a typed date when you want to record a specific date that shouldn't change.

How do I sort a column by date if some cells contain text?

You can't sort correctly if dates and text are mixed. First, convert all text dates to actual date values. Select the column, open Format Cells, and choose Date format. If that doesn't work, the text may not be in a format Excel recognizes — you may need to retype those entries. Once all cells in the column are date values, sorting will work correctly.

Can I use a date from one cell in a formula with another cell?

Yes, as long as both cells contain date values, not text. For example, =B2-A2 calculates the days between the dates in A2 and B2. If either cell contains text that looks like a date, the formula returns an error. Check that both cells are right-aligned (indicating date values) before you build a formula around them.