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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -