0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Excelで和暦のフォーマットはgggyy"年"ではなくgggee"年"とすべき

Posted at

「gggyy"年"」だとなぜ問題か?

Excelでは問題ないが、LibreOfficeで開くとyyの部分が西暦の末尾2桁と誤認識される
 →LibreOfficeでは、令和06年(西暦では2024年)の場合は、令和24年になってしまう。

Excelの場合でgggy"年"の場合は、令和6年になってほしいが、実際は令和06年になってしまう。
 →ggge"年"の場合は、令和6年となる。

LibreOfficeの場合

image.png

Excelの場合

image.png

結論

互換性を意識し、和暦の場合はyやyyなどを使わない方がよい
以下の形式を使うべし
gggee
ggge
ggee
gge
gee
ge

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?