Attemptin to convert dates out of a large file in the format:
50610
52210
52810
To a recognizable date
5/6/2010
5/22/2010
5/28/2010
Here's my formula, so far:
=IF(D2>0,DATE(MOD(D2,100),TRUNC(D2/10000),TRUNC(MOD(D2,10000)/100))," ")
Data is in column D.
This works, kinda. Worked on dates prior to 1999 (95% of the dates). 2000 forward the formula fails, making 50610 5/6/1910 instead of 5/6/2010.
Have tried numerous variations with no luck so far... Any help/guideance would be greatly appreciated. Thanks in advance.
Mac
50610
52210
52810
To a recognizable date
5/6/2010
5/22/2010
5/28/2010
Here's my formula, so far:
=IF(D2>0,DATE(MOD(D2,100),TRUNC(D2/10000),TRUNC(MOD(D2,10000)/100))," ")
Data is in column D.
This works, kinda. Worked on dates prior to 1999 (95% of the dates). 2000 forward the formula fails, making 50610 5/6/1910 instead of 5/6/2010.
Have tried numerous variations with no luck so far... Any help/guideance would be greatly appreciated. Thanks in advance.
Mac