date - Easily convert MM/DD to DD/MM including time in excel -


need convert excel date-time format mm/dd/yyyy hh:mm:ss dd/mm/yyyy hh:mm:ss

after conversion, needs still in proper date-time format can sorted correctly according date , time.

the best way working use below formula , ensure have configured format cell > number > category value correctly.

formula

in example a1 source cell. place in a2:

=value(date(text(a1,"yyyy"),text(a1,"dd"),text(a1,"mm"))+timevalue(text(a1,"hh:mm:ss"))) 

this reads date-time , rebuilds date-time number, swaps day , month numbers around. can used either situation is.

cell format

also need ensure format cell > number > category set custom , using right format:

e.g.

[24hr format] - dd/mm/yy hh:mm:ss

[12hr format] - dd/mm/yy hh:mm:ss am/pm

or whatever variation need location

alternatives

text format

if wanted make text , swap day , month around can use

[24hr format] - =text(a1,"mm/dd/yy hh:mm:ss")

[12hr format] - =text(a1,"mm/dd/yy hh:mm:ss am/pm")


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -