Blog
Excel Date Format Not Changing? How to Fix It
When the Excel date format won't change, or a date you typed shows up as 45823, there are only two causes. Either the value is a real date and its number format is General, so you see the underlying serial number, or the value only looks like a date and is actually text, so formatting has nothing to work on. The first takes two clicks to fix. The second, left alone, makes "days until due" return #VALUE!, splits your sort into two piles, and quietly pushes deadlines out by a day.
Here's how to tell the two apart, how to fix each one, a worked cleanup of absence dates merged from three sources, and the date functions you'll use once the dates are real.
How Excel stores dates
Excel stores a date as a serial number counting from January 1, 1900, which is 1. June 15, 2025 is 45823, and each day adds 1. Time is the decimal part, so noon is 0.5. That's why subtracting two dates gives days and adding 30 to a date gives the date 30 days later.
What you see on screen is a format applied to that number. Microsoft's guide to formatting dates makes the same point: the format changes how the date looks, not the value. With that in mind, the symptoms sort themselves out:
- Shows a number, right-aligned: a real date. Change the format.
- Looks like a date, left-aligned, or a green triangle in the corner: text. Convert it.
- Not sure: in a spare cell,
=ISNUMBER(A2)returns TRUE for a real date and FALSE for text.
When a date shows as a number: Format Cells
- Select the column and press Ctrl+1 to open Format Cells.
- On the Number tab, choose Date and pick a format.
- For anything not on the list, choose Custom and type the code.
Useful custom codes: yyyy-mm-dd gives 2025-06-15, mmm d, yyyy gives Jun 15, 2025, mm/dd/yyyy (ddd) gives 06/15/2025 (Sun), and dddd, mmmm d gives Sunday, June 15. Use ddd for a short weekday and dddd for the full name. A weekday next to each date is handy on a lesson calendar or a sub plan.
Formats in the Date list that start with an asterisk follow the Windows regional settings. Open the file on a laptop set up for the UK or Canada and the day and month may swap. For files shared with an exchange partner school, a study-abroad program or research collaborators in another country, type yyyy-mm-dd as a custom format so it looks the same everywhere.
Dates as text in letters and titles: the TEXT function
To put a date inside a sentence, convert it with TEXT. ="Due "&TEXT(B2,"mmmm d, yyyy") returns "Due June 15, 2025". Joining a date to text without TEXT gives you "Due 45823", which is not what you want at the top of a parent letter.

The result of TEXT is text, so it can't be used in further date math. Keep the real date column for calculations and add a separate display column.
Converting text dates into real dates
CSV exports, downloads from a school or bank website and tables copied from a web page often bring dates in as text. Microsoft's article on converting dates stored as text covers the options; which one to use depends on what the text looks like.
2025-06-15 or 6/15/2025: DATEVALUE
If Excel can recognize the pattern, =DATEVALUE(A2) returns the serial number. Format the helper column as a date, copy it, use Paste Special > Values over the original column, and delete the helper. Text with no year, like "6/15", becomes a date in the current year, so double-check entries from December and January, which often straddle two calendar years in a school year.
2025.06.15: Find and Replace
Dots aren't a date separator Excel recognizes. Select only the date column, press Ctrl+H, find . and replace with /, and click Replace All. Excel re-reads each edited value and stores it as a real date. Don't include columns with decimal numbers, such as scores, in the selection.
20250615: Text to Columns
Eight digits with no separator need Data > Text to Columns. Click Next twice, then in step 3 under Column data format choose Date and pick YMD from the list. Click Finish.

The same step handles day-first dates like "15/06/2025" from a European source: choose DMY instead. As a formula, =DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2)) builds the date from its pieces.
Opening CSV files without losing the day and month
Double-clicking a CSV lets Excel guess dates using your regional settings. On a US machine, a European "03/10/2025" becomes March 10 instead of October 3, and nothing warns you. DATEVALUE reads text the same way. Import these files with Data > From Text/CSV instead, check the date column in the preview, and if the order is wrong click Transform Data and use Change Type > Using Locale in Power Query to tell Excel which country the dates came from.
Worked example: cleaning absence dates from three sources
A seventh-grade team tracks make-up work for students who miss class, and every Monday the team lead merges three lists into one file. The attendance export from the student information system writes absence dates as "20251015", one teacher's tracking sheet types them as "2025.10.15", and the third teacher's sheet has real dates. Sorted by absence date, the merged file puts all the text dates in one block and the real dates in another, and the make-up due column is full of #VALUE!.
Step 1: Count the formats
Add =ISNUMBER(A2) in a helper column and filter to FALSE. Then use =LEN(A2) to split the eight-character rows from the ten-character rows. In this file, 160 of 480 rows are eight digits and 150 use dots; the remaining 170 are already dates.
Step 2: Convert each group
Run Text to Columns with YMD on the eight-digit rows and Find and Replace on the dotted rows. Confirm =ISNUMBER(A2) is TRUE for every row, then apply yyyy-mm-dd to the whole column. The usual snag here is a handful of rows that stay left-aligned after Find and Replace. They carry a trailing space or line break; =TRIM(CLEAN(A2)) first, then convert again.
Step 3: Calculate the make-up due date
If the team gives students two school days after an absence to turn in missed work, use =WORKDAY(A2,2,Holidays!$A:$A). The third argument is a list of no-school days from the district calendar, so weekends, Thanksgiving break and teacher workdays are skipped. School days left are =NETWORKDAYS(TODAY(),C2,Holidays!$A:$A)-1; add a conditional formatting rule for values of 0 or less and today's deadlines are colored.
Step 4: Make next Monday faster
Each source exports the same way every week, so fix the dates in each file before merging. Leave a note on the first sheet ("SIS export: Text to Columns YMD; Ms. Carter's sheet: dots to slashes") so whoever covers the merge next week follows the same steps.
Date math: DATEDIF, NETWORKDAYS and EOMONTH

Days between dates are =B2-A2 or =DAYS(B2,A2). Whole months are =DATEDIF(A2,B2,"M") and whole years =DATEDIF(A2,B2,"Y"). DATEDIF doesn't appear in formula autocomplete but works when typed, and it returns #NUM! if the start date is after the end date. Days remaining are =B2-TODAY(), which updates every time the file opens, so a countdown to the end of the grading period stays current.
Deadlines tied to the calendar are where date math earns its keep. Thirty days after a date is simply =A2+30. Month-end deadlines use EOMONTH: =EOMONTH(A2,0) is the last day of that month, and =EOMONTH(A2,1) the last day of the next month. A bill due five days after month-end is =EOMONTH(A2,0)+5.
When a cell holds both date and time, such as "2025-10-15 14:32" from an online form, =INT(A2) keeps the date and =MOD(A2,1) keeps the time. Strip the time before counting responses per day, or every response counts as its own day.
Common date mistakes
- Dates off by four years and a day. Some older Mac workbooks use the 1904 date system. Copying dates between a 1904 and a 1900 workbook shifts them by 1,462 days. Match the Use 1904 date system setting under File > Options > Advanced in both files.
- Scores and sections turning into dates. A rubric score like "3-4" or a section like "6-7" becomes March 4 or June 7. Format the column as Text before typing, or start the entry with an apostrophe.
- #### in the cell. The column is too narrow, or the result is a negative date. Widen the column; if it persists, check for a subtraction in the wrong order.
- Today's date keeps changing.
TODAY()updates daily. To stamp the date an entry was made, such as when a late assignment came in, press Ctrl+; to enter it as a fixed value.
👉 How to Sort in Excel: Multiple Columns, Custom Order, Fixes
FAQ
Q. Why doesn't my date format change after I pick a new one?
The value is text. Number formats only apply to numbers, so convert the text with DATEVALUE, Find and Replace or Text to Columns first, then apply the format.
Q. Why does the same file show different dates on different computers?
Date formats marked with an asterisk follow each computer's regional settings. A custom format such as yyyy-mm-dd looks identical everywhere.
Q. How do I show the weekday next to the date?
Use the custom format mm/dd/yyyy (ddd) to get 06/15/2025 (Sun). For the weekday alone in its own column, use =TEXT(A2,"dddd").
Q. Why can't I calculate with dates I converted using TEXT?
TEXT returns text. Do the math on the original date column and use TEXT only for display in letters, titles and emails.
inline AI for messy dates
With the merged absence file open, you tell inline AI "convert every date to a real date and calculate school days left until make-up work is due, skipping district holidays," and it groups the formats, converts each one, and flags the work due today.
Gradebooks and spreadsheets, finished by inline AI in the file itself.
Ask in one sentence for roll-ups, trackers and the cleanup you repeat every week. Your files never leave your computer.




