Date-Mid Function
I would suggest changing the forced slashes to dashes instead. I'm not sure
if Excel will use regional settings for the day/month order when slashed
dates with the year first are used, but I'm sure using dashes forces the
year-month-day interpretation no matter what the regional setting....
=DATEVALUE(TEXT(G7+19000000,"####-##-##"))
Rick
"Dana DeLouis" wrote in message
...
Not sure if this applies to all your data, but...
[A1] = 870526
=DATEVALUE(TEXT(A1+19000000,"####\/##\/##"))
..and format the cell to show 5/26/1987
--
HTH :)
Dana DeLouis
wrote in message
...
I have this formula: =DATE(1900+MID(G7,1,3),MID(G7,4,2),MID(G7,6,2))
and the cell it is referencing has this in it: 0870526 (with the cell
format set as custom as '0000000'
The result it is producing is: 4/6/2774
It should be 5/26/1987.
Does anyone know what is going wrong?
-Anthony Morano
Pension Intern
|