Skip to content

Instantly share code, notes, and snippets.

@james4388
Last active April 24, 2018 21:57
Show Gist options
  • Save james4388/203aa2aa549133226e5fe31eea1dec99 to your computer and use it in GitHub Desktop.
Save james4388/203aa2aa549133226e5fe31eea1dec99 to your computer and use it in GitHub Desktop.
Excel ISO-8601 convert
=DATEVALUE(LEFT(A1,10))
+ TIMEVALUE(MID(A1,12,8))
+ IF("Z"=MID(A1,20,LEN(A1)-19),0,(INT(MID(A1,20,LEN(A1)-19)/100)*60+MOD(MID(A1,20,LEN(A1)-19),100))/1440)
# Credit http://www.kddart.org/help/kdsmart/html/excel-support.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment