Checking dates in Excel ensures your data is accurate, properly formatted, and usable in calculations or filters. Excel stores dates as serial numbers, so even if a date looks right, it might not be recognized as a true date value—leading to errors in sorting, formulas, or charts. This guide walks you through verifying, comparing, and formatting dates correctly using built-in Excel tools.
What You'll Need
- Microsoft Excel (2010 or later, Windows or Mac)
- A worksheet containing date values
- Basic familiarity with selecting cells and using the ribbon menus
Step-by-Step
- Open your Excel workbook and navigate to the sheet containing the dates you want to check.
- Select the range of cells containing the dates. If they’re scattered, hold Ctrl (Cmd on Mac) while clicking each cell individually.
- Look at the Number Format dropdown in the Home tab of the ribbon. If it says "General" or shows a number like 45231 instead of a date like 12/25/2023, the cell is not formatted as a date—even if it looks like one.
- With the cells still selected, click the Number Format dropdown and choose "Short Date" or "Long Date" from the Date category. This applies a standard date format and helps confirm whether Excel recognizes the entries as dates.
- Check alignment: True date values in Excel are always right-aligned within the cell. Text that looks like a date (e.g., "Dec 25, 2023" typed manually) is left-aligned. This is a quick visual indicator of format status.
- To verify if a cell contains a true date value, use the ISNUMBER function. In an empty cell next to your date, type
=ISNUMBER(A1)(replace A1 with the cell reference). If it returns TRUE, Excel stores it as a serial number (i.e., a real date). If it returns FALSE, it’s stored as text. - If you find text-formatted dates, use the Text to Columns feature: Select the column, go to Data > Text to Columns, choose Delimited > Next > Next, then under Column Data Format, select Date and choose the format matching your data (e.g., MDY for 12/25/2023). Click Finish. This converts text into true dates.
- To compare two dates, use simple formulas like
=A1>B1or=A1=B1. Excel treats dates as numbers, so comparisons work directly. For example, if A1 is 1/1/2024 and B1 is 12/31/2023,=A1>B1returns TRUE. - Use the DATEDIF function to calculate the difference between two dates. For example,
=DATEDIF(A1,B1,"d")returns the number of days between the dates in A1 and B1. Ensure both cells are true dates before using this function. - Apply conditional formatting to highlight dates outside a range: Select your date column, go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter
=A1<TODAY()to highlight past dates, or=A1>TODAY()+30to flag dates more than 30 days in the future. Choose a fill color and click OK. - Sort your data by date: Select your data range, go to Data > Sort, choose the date column, and select Oldest to Newest or Newest to Oldest. If dates don’t sort correctly, revisit steps 3–7 to fix formatting issues first.
Common Mistakes
- Typing dates as text: Entering "January 1, 2024" instead of using Excel’s date picker or typing 1/1/2024 can result in text storage, making calculations fail.
- Using regional separators incorrectly: In some regions, dates use dots (25.12.2023) or dashes (2023-12-25). Excel may misinterpret these if your system locale doesn’t match the format.
- Assuming visual appearance equals correct format: A cell may display "12/25/2023" but still be stored as text if it was pasted from a website or imported improperly.
- Ignoring time components: Dates with times (e.g., 12/25/2023 14:30) can cause unexpected results in comparisons if the time portion isn’t accounted for.
- Using =A1=B1 for dates with time: Two dates appearing identical may differ by seconds, making equality checks fail. Use
=INT(A1)=INT(B1)to compare only the date portion.
Tips
- Use the keyboard shortcut Ctrl+; (Cmd+; on Mac) to insert today’s date as a true date value, not text.
- When importing data from CSV or external sources, always run Text to Columns on date columns immediately after import to convert them to true dates.
- Format your date cells before entering data to prevent accidental text entry. Set the column format to Short Date first.
- Use the DATE function to create reliable dates in formulas:
=DATE(2024,12,25)always returns a true date, regardless of regional settings. - Combine ISNUMBER with IF to create custom alerts:
=IF(ISNUMBER(A1),"Valid Date","Invalid Date")helps audit large datasets quickly. - Keep a helper column with
=TEXT(A1,"yyyy-mm-dd")to standardize date display across all entries, especially when sharing files across regions.
Troubleshooting
- Excel shows ###### instead of a date: This means the column is too narrow. Widen the column by dragging the column header edge or double-clicking it.
- Text to Columns doesn’t convert dates: Ensure you selected the correct date format (MDY, DMY, YMD) in the wizard. If unsure, try each one until the preview shows correct dates.
- Formulas return #VALUE! when comparing dates: One or both cells contain text. Use ISNUMBER to identify them and apply Text to Columns.
- Dates change when opening on another computer: This happens due to different regional settings. Use the DATE function in formulas instead of typing dates directly, or save the file as .xlsx and ensure both systems use compatible regional formats.
- Conditional formatting doesn’t highlight expected dates: Check that your formula references the correct cell (use relative references like A1, not $A$1, unless you want to lock it). Also, verify the date values are true dates, not text.
- Sorting dates incorrectly: If dates sort as text (e.g., 1/10/2024 comes before 1/2/2024), reapply the date format and rerun the sort.
Frequently Asked Questions
How do I know if Excel recognizes my entry as a date?
Select the cell and check the Number Format in the Home tab. If it shows "General," it’s text. If it shows "Short Date" or similar, it’s a true date. You can also use =ISNUMBER(cell) — TRUE means it’s a date.Can I convert text dates to real dates without using Text to Columns?
Yes. Use the Paste Special method: Enter the number 1 in an empty cell, copy it, select your text dates, right-click > Paste Special > Multiply. This converts text numbers to real values, including dates formatted as text.Why do my dates change to numbers when I open the file?
Excel stores dates as serial numbers (e.g., 1/1/1900 = 1). If the cell format is set to General, it displays the number. Change the format back to Short Date to see the date again.How do I find duplicate dates in a column?
Use Conditional Formatting > Highlight Cells Rules > Duplicate Values. Select the range, choose the format, and Excel will highlight all duplicate date values.Can Excel handle dates before 1900?
No. Excel’s date system starts on January 1, 1900. Dates before that are treated as text. Use a custom text format or external tools for pre-1900 dates.What’s the fastest way to check if a whole column has valid dates?
Add a helper column with=AND(ISNUMBER(A1),A1>0) and drag it down. Filter for FALSE values to find invalid entries quickly.