Excel: text conversion to date format -


i convert text - apr 7 2017 date format on excel spread sheet. there formula might it? have tried format cell date format did not change cell properties. thank suggestions

with data in a1, in cell enter:

=datevalue(lookup(left(a1,3),{"apr","aug","dec","feb","jan","jul","jun","mar","may","nov","oct","sep"},{4,8,12,2,1,7,6,3,5,11,10,9}) & mid(substitute(a1," ","/"),4,99)) 

enter image description here

an alternative:

=datevalue(trim(mid(a1,5,2)) & "-" & left(a1,3) & "-" & right(a1,4)) 

Comments

Popular posts from this blog

python - What's the Pythonic way to report nonfatal errors in a parser? -

sql server - Deadlock occuring in Clustered Columnstore index -

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -