[Shop-talk] OT- Excel help, (before I shoot my computer)!

Randall tr3driver at ca.rr.com
Wed Mar 14 21:17:16 MDT 2012


> I just don't understand why Excel HAS to change the data as it is
> inputted.  

No, no, the problem is that it DOESN'T change the data as it is inputted!

The real issue is that the cell format is only applied when the date is
output.  Excel uses a special internal format to store things that it knows
are "dates", and the input routine for "dates" is selected by looking at the
system date format, not the cell format.

When you do something to make your input not be a valid date field, the
"dates" input routine fails and Excel stores it as a string instead.  That
is why doing things like entering *dd/mm/yy _seems_ to work; the input is
being stored as a string rather than a date.

Which as I said before is the key to how to do what you want to do.  Enter
the date as a string, and then write the function to parse it into year,
month and day.  Then you can use =DATE() to turn it into a "date" and
display that however you like.

-- Randall


More information about the Shop-talk mailing list