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

Excelで軍用時間を標準時間に変換する方法は?

以下に示すように、軍用時間のリストを含むワークシートを受け入れ、標準時間を表示することに慣れているので、これらの軍用時間をExcelで標準時間に変換したい場合はどうすればよいですか?


矢印青い右バブル Excelの数式を使用して軍用時間を標準に変換する

Excelでは、数式を使用して軍用時間を標準時間にすばやく変換できます。

1.空白のセルを選択して、この数式を入力します = TIMEVALUE(LEFT(A1,2)& ":"&MID(A1,3,2)& ":"&RIGHT(A1,2)) (A1は、軍用時間を標準時間に変換するセルを示します。必要に応じて変更できます)、を押します。 入力します キーを押してから、塗りつぶしハンドルをドラッグして、必要な範囲を塗りつぶします。 スクリーンショットを参照してください:

2.次に、範囲B1:B6(上記の式を使用する範囲。必要に応じて変更できます)を選択し、右クリックしてクリックします。 セルの書式設定。 スクリーンショットを参照してください:

3。 の中に セルの書式設定 ダイアログ、クリック タブをクリックして 時間 カテゴリー ボックスをクリックし、右側のセクションから標準の時間形式を選択します。 スクリーンショットを参照してください:

4。 クリック OK、あなたは結果を見ることができます:

先端:2323のように、XNUMX時間制の場合は、次の式を使用できます。 = TIMEVALUE(LEFT(A1,2)& ":"&RIGHT(A1,2)) 次に、上記の手順に従って標準時間に変換します。 スクリーンショットを参照してください:


矢印青い右バブル Excelの数式を使用して標準時間を軍事に変換する

標準時間を軍用時間に変換するには、数式を使用してそれを解決することもできます。

空白のセルを選択し、この数式を入力します = TEXT(A1、 "HHMMSS") (A1は、軍用時間を標準時間に変換するセルを示します。必要に応じて変更できます)、を押します。 入力します、次に塗りつぶしハンドルをドラッグして、必要な範囲を塗りつぶします。 スクリーンショットを参照してください:

先端:標準時間が午後11時23分などの時間と分しかない場合は、次の式を使用できます。 = TEXT(A1、 "HHMM")。 スクリーンショットを参照してください:

ヒント。非標準の日付を標準の日付mm / dd / yyyyに変換する場合は、Kutools forExcelを使用してみてください。 日付に変換 次のスクリーンショットに示すように。 30日で無制限にフル機能、 今すぐダウンロードして無料トライアルをお試しください。

非標準の日付を標準の日付形式にすばやく変換する(mm / dd / yyyy)

場合によっては、複数の非標準の日付を持つワークシートを受け取り、それらすべてをmm / dd / yyyyのように標準の日付形式に変換するのは面倒かもしれません。 ここに Kutools for Excel's 日付に変換 これらの非標準の日付をワンクリックで標準の日付形式にすばやく変換できます。  クリックすると、30 日間の全機能を無料で試用できます。
ドキュメント変換日
 
Kutools for Excel:300を超える便利なExcelアドインがあり、30日以内に制限なしで無料で試すことができます。

関連記事:

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

🤖 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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Had to recreate this.

I had a list of Military Hour Blocks in column E for my worksheet (Example: 0, 1, 2, ...10, 11, 12, 13, 14, ...)

This was the formula I had to use.
=IF(E:E >11,TIMEVALUE(CONCAT(RIGHT(E2-12,2)," ","PM")),TIMEVALUE(CONCAT((E2)," ","AM")))
This comment was minimized by the moderator on the site
The problem with this is you have to use two columns
This comment was minimized by the moderator on the site
Yes, but you can copy and pasted the formula result as value, then delete the original column and formula column if you do not need them any more, Now you will leave only one result column.
This comment was minimized by the moderator on the site
I think this solves my problem of miltary times that are less than 1000 not having the zero in front (e.g. 714 rather than 0714):

=IF(A1<1000,CONCAT(0,A1),A1)
This comment was minimized by the moderator on the site
Sorry for reply you too late.In my version, the formula can work for three digits number which do not need to be add the leading zero. If it cannot to work for you, you can add leading zero by format the cells as 0000 in the Format Cells > Custom.
This comment was minimized by the moderator on the site
What if the military time doesn't contain the zero in front? For example 0714 is showing as 714. How do you format these times quickly so that your formula above works correctly?
This comment was minimized by the moderator on the site
Thanks, it seemed to work great even though I am not that sharp with excel. I was able to find a pre-made excel spreadsheet that converts standard time to military time automatically for my needs at another site. You can find it here: http://www.militarytime.us/military-time-converter/ (the link is under the converter tool that is also quite nice for a quick single conversion). Thought others might find it useful as well.
This comment was minimized by the moderator on the site
This works well, but there's rounding errors after a few instances of this. How do you fix that? (I. E. I get down to where I'm adding 20 seconds to my start time, but the output time is 3 seconds later than it should be.)
This comment was minimized by the moderator on the site
Good instruction that worked well. Thank you, Chess
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations