Excel dates - converting different date formats into a single format -


enter image description here

have large raw data dump , trying format dates consistent format.

as can see screenshot, there 2 main formats, 1 custom mm-dd-yyyy hh:mm am/pm , mm/dd/yyyy hh:mm:ss. 1 stored general, while other custom value.

i've tried =left(a2,8), converting via text() , using text columns, can't bring values consistent value.

it appears windows regional settings short date dmy or similar. data dump in mdy format. why a2 , a4 being converted "real dates" (although incorrectly), , a3 not since excel not know month = 13. note a2 1-dec-2015 , suspect in original data 12-jan-2015.

edit: expand bit on explanation. when looks date or time entered excel cell, excel tries change result date, parsing input according windows regional short date format. has undesireable outcome. example, if windows format mdy date input dmy, input days <=12 converted incorrectly, , input days > 12 retained text. behavior cannot "turned off" , causes many complaints want enter data looks date, not. (for example, entering odds ratio 1-10 or 12:3 converted date or time)

several options

  • change output of data have dates in dmy format.
  • instead of opening data file, text import. in later versions of excel, find on data ribbon ► external data ► text. open text import wizard , allow specify mdy format of incoming data before excel transforms it.

after have done 1 of above, result "real" excel date or date/time , can format how like.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -