Date Function Problem

R

RCampbell

I've been trying to use the date function to format 010103
as 01/01/03 but it is changing the date to 08/29/27. Any
ideas?
 
P

Peo Sjoblom

You can't use it that way, excel dates are serial numbers where the first
date is January 0 1900,
so if you enter 010103 it will mean 10103 days after Jan 0 1900, excel will
not differ
between the number 10,103 and the date 10103. Formatting will not change the
underlying value.
You can use VBA if you don't want to enter the date delimiter

http://www.cpearson.com/excel/DateTimeEntry.htm
 
P

Peter Atherton

-----Original Message-----
I've been trying to use the date function to format 010103
as 01/01/03 but it is changing the date to 08/29/27. Any
ideas?
.
if your date is in A26
=DATE(RIGHT(A26,2),MID(A26,2,2),LEFT(A26,2))

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top