I am creating an Excel spreadsheet that goes into next
year. I have set the date format as: Mar-04. Every time
I enter 05, it automatically changes to 04. However, if
I enter only the first two letters of the month (Ma-05),
it takes it. This occurs even when I continue to
increase the margin. Can anyone help me, please?
Thanks,
Julie
I suspect you are not telling us everything. But perhaps this discussion will
help.
The format you set is for display purposes only. It has no effect on how Excel
parses your data entry.
I suspect that you are using a Mac or have set the 1904 date system. When you
enter a number like 05 in a cell that is formatted as date, Excel does not
perform any conversions. So '5' is the fifth day with Jan 1, 1904 being day 0.
The date being stored is 6 Jan 1904 and, with your format, gets displayed as
Jan-04 (January 1904).
Excel stores dates as serial numbers.
Look in the formula bar and see what date is there.
In entering dates, you need to either be specific, or understand all the rules
that apply.
But without using VBA, you can't enter a one or two digit number and have it
interpreted as a date in this century.
You need to use a separator, (determined by your regional settings), and then
Excel will interpret the entry as a date. What date it thinks you entered
depends on how unambiguous your entry is and also what your regional settings
are.
In general, if a year is not specified, it will default to the current year.
If a two digit year is entered, how they get interpreted depends on the
regional settings (and that also depends on the version of Windows you are
running).
--ron