Excel will not format date

Lindsey Barigian 21 Reputation points
2021-05-14T20:25:46.85+00:00

Hi there,
I cannot get my Excel to format as a date. I format the cell to display the date as MM/DD/YY. I enter 010121 so it can format as 01/01/21. Instead 09/16/1927 is displayed and it is in the same in the formula bar. If I try 01012021 it displays as 12/25/1970 and the formula bar shows 10/25/4670.

I've tried all that I can think of. Settings in my mac are correct. I've tried changing the preferences under Excel, and no luck.

I appreciate any help.

Best,
Lindsey

Microsoft 365 and Office Excel For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Lz._ 9,016 Reputation points
    2021-05-19T18:09:34.42+00:00

    @Lindsey Barigian

    You can pre-format your cells with Custom Format: 00/00/00
    However, when entering your numbers there should be no ambiguity:

    010322 works
    10322 works
    01322 doesn't work
    1322 doesn't work
    10322 works

    So, if you adopt mmddyy that should always work...


2 additional answers

Sort by: Most helpful
  1. OssieMac 416 Reputation points
    2021-05-16T01:33:37.793+00:00

    When entering dates they must include delimiters between the Month, Day and Year. If you simply enter a number like 010121 then Excel sees it as a number and then to display as a date it counts from 1/1/900 in days and displays the date.

    The Number format for dates is for changing valid dates into an alternative date formats; not to convert a number entered without the delimiters between the Month, Day and Year.

    Unfortunately Excel does not support a masking system like in Access where you assign a mask to a field and typing the dates without delimiters enters them correctly with the delimiters.

    1 person found this answer helpful.
    0 comments No comments

  2. Emily Hua-MSFT 27,796 Reputation points
    2021-05-17T06:53:14.287+00:00

    @Lindsey Barigian ,

    As OssieMac said, you need to use delimiters to let Excel know recognize data as Month, Day and Year,

    Otherwise, you could enter the 010121 first as general format or '010121 as a text, then use Text to Columns to transfer text as date format.
    97037-capture27.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.