View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.newusers
Rick Rothstein Rick Rothstein is offline
external usenet poster
 
Posts: 5,934
Default Converting Dates after Import

With a number in A1:
=IF(LEN(A1)=7,DATE(RIGHT(A1,4),LEFT(A1,1),MID(A1, 2,2)),DATE(RIGHT(A1,4),LEFT(A1,2),MID(A1,3,2)))


This is a more compact way to do the same thing...

=--TEXT(A1,"00\/00\/0000")

--
Rick (MVP - Excel)