メインコンテンツへスキップ

Excelで日付とUnixタイムスタンプを変換する方法は?

Unixタイムスタンプは、エポック時間またはPOSIX時間とも呼ばれ、多くのオペレーティングシステムまたはファイル形式で広く使用されています。 このチュートリアルでは、Excelでの日付とUnixタイムスタンプの間の変換について説明します。

日付をタイムスタンプに変換する

日付と時刻をタイムスタンプに変換する

タイムスタンプを日付に変換する

日時変換に関するその他のチュートリアル...


矢印青い右バブル 日付をタイムスタンプに変換する

日付をタイムスタンプに変換するために、数式で計算できます。

空白のセルを選択し、セルC2を想定して、この数式を入力します =(C2-DATE(1970,1,1))* 86400 それに押して 入力します キーを押すと、必要に応じて、オートフィルハンドルをドラッグして、この数式で範囲を適用できます。 これで、日付セルの範囲がUnixタイムスタンプに変換されました。
doc-convert-date-unix-1


2 クリックで時間を XNUMX 進数の時、分、または秒に変換

  時間を変換する の特徴 Kutools for Excel 時間を小数の時、分、または秒にすばやく変換し、結果を元の宛先または別の宛先に配置するのに役立ちます。

ドキュメント変換時間 1

矢印青い右バブル 日付と時刻をタイムスタンプに変換する

日付と時刻をUnixタイムスタンプに変換するのに役立つ式があります。

1.まず、協定世界時を1年1月1970日のセルに入力する必要があります。 スクリーンショットを参照してください:
doc-convert-date-unix-2

2.次に、この式を入力します =(A1- $ C $ 1)* 86400 セルに、を押します 入力します キーを押し、必要に応じて、オートフィルハンドルをこの数式の範囲にドラッグします。 スクリーンショットを参照してください:
doc-convert-date-unix-3

ヒント:数式では、A1は日付と時刻のセル、C1は入力した協定世界時です。


矢印青い右バブル タイムスタンプを日付に変換する

日付に変換するために必要なタイムスタンプのリストがある場合は、次の手順で実行できます。

1.タイムスタンプリストの横の空白のセルに、この数式を入力します =(((A1/60)/60)/24)+DATE(1970,1,1)、 押す 入力します キーを押してから、自動入力ハンドルを必要な範囲にドラッグします。
doc-convert-date-unix-4

2.次に、式を使用したセルを右クリックして、 セルの書式設定 コンテキストメニューから、次にポップで セルの書式設定 ダイアログ、Nの下umber タブをクリックします。 日付 セクションに カテゴリー リストをクリックし、右側のセクションで日付タイプを選択します。
doc-convert-date-unix-5

3。 クリック OK、これで、Unixタイムスタンプが日付に変換されたことがわかります。
doc-convert-date-unix-6

注意:

1. A1は、必要なタイムスタンプセルを示します。

2.この数式は、タイムスタンプ系列を日付と時刻に変換するためにも使用できます。結果を日付と時刻の形式にフォーマットするだけです。

3.上記の数式は、10桁の数値を標準の日時に変換します。Excelで11桁の数値、13桁の数値、または16桁の数値を標準の日時に変換する場合は、次の数式を使用してください。

11桁の数値を日付に変換します。 = A1 / 864000 + DATE(1970,1,1)

13桁の数値を日付に変換します。 = A1 / 86400000 + DATE(1970,1,1)

16桁の数値を日付に変換します。 = A1 / 86400000000 + DATE(1970,1,1)

日時に変換する必要のあるさまざまな長さの数値の場合、結果を正しく取得するには、数式の除数のゼロの数を変更するだけです。


関連記事:

  • Excelで日付から時間を削除するにはどうすればよいですか?
    2/17/2012 12:23のように、タイムスタンプ付きの日付の列があり、タイムスタンプを保持せず、日付から時刻12:23を削除して、日付のみを残す場合2年17月2012日。 Excelの複数のセルの日付から時間をすばやく削除するにはどうすればよいですか?

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (27)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How Define a Custom Date Format: yyyy-mm-dd hh:mm:ss

yyyy: Year with four digits.
mm: Month with two digits (01-12).
dd: Day of the month with two digits (01-31).
hh: Hour with two digits (00-23).
mm: Minute with two digits (00-59).
ss: Second with two digits (00-59).
This comment was minimized by the moderator on the site
Hi, Monero Jeanniton, to format a cell with custom date format, just right-click on the cell, select Format Cells, then type the format into Type of Custom section. See screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/format%20cells.png
This comment was minimized by the moderator on the site
Converted 123000 Lines of Data Stamp 13 Digits like a PRO Thanks alot for the tips
This comment was minimized by the moderator on the site
I have a numeric value of 3721719999 which is suppose to display as 00:06:12 (hh:mm:ss). This time represents the time duration of a video file. The date stamp on the file name is 1/18/2014 4:04 pm, if that offers any further information. I extracted the number using Filelist.exe and this was the result. Thanks!
This comment was minimized by the moderator on the site
How to convert 13 digits timestamp to human readable date ?
Could someone help please
This comment was minimized by the moderator on the site
Hi, Roobanraj, to convert 13 digits timestamp to a standard datetime, you can use the formula as this:=A1/86400000+DATE(1970,1,1), A1 is the cell that contains the 13-digits you want to convert to.
This comment was minimized by the moderator on the site
How to convert 11 digits timestamp to human readable date ?
Could someone help please
This comment was minimized by the moderator on the site
For converting 11 digits timestamp to a standard datetime, use the formula as this:=A1/864000+DATE(1970,1,1), A1 is the cell that contains the 11-digits you want to convert to.
This comment was minimized by the moderator on the site
how to convert event time stamp to hour
This comment was minimized by the moderator on the site
To convert date for MOODLE the only formula that worked was:


Instead of =(C2-DATE(1970,1,1))*86400

I tried 20/october/1980 and Moodle read 19/october/1980.

I used
=(C2-DATE(1970,1,0))*86400

I tried 20/october/1980 and Moodle read 20/october/1980.
This comment was minimized by the moderator on the site
How to convert 21 digits timestamp to human readable date ?
Could someone help please
E.g., 202002191100506253230
This comment was minimized by the moderator on the site
IF you have an LDAP 18-Digit timestamp such as 132079258679926000 the below formulas will not work. You first have to convert them as they are based in nano seconds from 1/1/1601. The following formula in Excel converts the LDAP to EPOCH to human dates =(((((A1/10000000)-11644473900)/60)/60)/24)+DATE(1970,1,1) where A1 refers to your timestamp location
This comment was minimized by the moderator on the site
Thanks for your supplement.
This comment was minimized by the moderator on the site
One thing to note is that the above is for epoch time in seconds. If you need milliseconds, you need to add a further multiplication / division by 1000. For example, converting from epoch time (milliseconds) to a date would be "=((((A1/1000)/60)/60)/24)+DATE(1970,1,1)".
This comment was minimized by the moderator on the site
Muchas gracias, para mi caso estaba adivinando porque no conocía que tipo de dato venia pero este fue la solución, el dato que me pasaron era con esta forma 1641014648299 y la formula fue esta =((((C2/1000)/60)/60)/24 )+FECHA(1970;1;1) por lo cual si alguien esta en un caso similar al mío puede optar por esta formula.

Esta formula también me sirvió pero solo trae fecha =A1/86400000+FECHA(1970;1;1)
This comment was minimized by the moderator on the site
As a side note, the best way to tell if it's seconds or milliseconds is looking at the length of the field; if it's 10 digits, it's seconds, and if it's 13 digits, it's milliseconds. "=LEN(A1)" will tell you how long the value is.
This comment was minimized by the moderator on the site
If that's too much manual work for you (or you have a list that's mixed between seconds and milliseconds), then you can use the following formula to automatically switch between seconds and milliseconds based on the length of the cell: "=((A1/86400)/IF(LEN(A1)=13,1000,1))+DATE(1970,1,1)".
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations