by walty · 5y ago · 0 comments
=iferror(regexextract(text(HOUR(A1),"##"),"^\d"),"0")
to =iferror(regexextract(text(HOUR(A1),"00"),"^\d"),"0")
The ## text format uses only as many digits as needed, while the 00 format pads to 0 digits.No comments yet.