View Single Post
  #4   Report Post  
wickedchew wickedchew is offline
Senior Member
 
Location: Philippines
Posts: 161
Default

Quote:
Originally Posted by Tommy View Post
I receive data daily with dates in the following formats: dd/mm/yyyy,
d/m/yyyy,d/mm/yyyyy, or dd/m/yyyy... The values actually are text vs.
numbers.

Regardless I use text to columns, to separate the values into three columns.
Then I use =date(year, month, day), actually =date(a2,b2,c2) to populate the
date in one field. Does anyone have any suggestions as to how to do this
better or faster?

Thanks,

Tommy
Suppose column A has all the text dates and supposing that the cells have trailing spaces, you can use: =TRIM(A1)*1. Then format the cell into MM/DD/YYYY

or =TEXT(A1,"MM/DD/YYYY")*1