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

XNUMXつの時間または日付間の時差を計算する方法は?

以下のスクリーンショットに示すように、列Aと列BのXNUMXつの時間リストがある場合(列Aの時間は同じ行の列Bよりも早い)、後の時間を差し引いて正しい時間を取得することはできません。初期のもの。 それでは、Excelで時差を計算する方法について説明します。


矢印青い右バブル ExcelでXNUMX回の時間差を計算する

この場合、XNUMXつの列には時間、分、秒しかなく、列Aの時間は常に同じ行の列Bよりも早いと想定しています。

1.空白のセルを選択します。この場合、セルC2を選択し、この数式を入力します = B2-A2 +(A2> B2) (セルA2の時間はセルB2よりも早いので、必要に応じて変更できます)、を押します。 入力します キーを押してから、塗りつぶしハンドルをドラッグして、この数式を適用するために必要な範囲を塗りつぶします。 スクリーンショットを参照してください:

2.結果範囲を選択します。この場合は、結果範囲C2:C6を選択し、>を右クリックします。 セルをフォーマットします コンテキストメニューで。 スクリーンショットを参照してください:

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

次に、以下に示すように時間差が計算されていることがわかります。


矢印青い右バブル ExcelでXNUMXつの日付間の時差を計算します

列に時間、分、秒だけでなく日付も含まれている場合は、次のように実行できます。

1.空白のセルを選択します。この場合、セルC2を選択し、この数式を入力します = B2-A2 (セルA2の時間はセルB2よりも早いので、必要に応じて変更できます)、を押します。 入力します キーを押してから、塗りつぶしハンドルをドラッグして、この数式を適用するために必要な範囲を塗りつぶします。 スクリーンショットを参照してください:

2.結果の範囲を選択します。この場合は、範囲C2:C6を選択し、>を右クリックします。 セルをフォーマットします コンテキストメニューで。 スクリーンショットを参照してください:

3。 の中に セルの書式設定 ダイアログ、クリック タブ> Time、および選択 37:30:55 タイプ セクションをクリックします。 OK。 スクリーンショットを参照してください:

次に、以下に示すように時間差が計算されていることがわかります。


矢印青い右バブル Kutools forExcelでXNUMXつの日付間の時差を計算する

時間差を計算し、計算された時間差を単語(3時間5ムナイト12秒)として表示する場合は、 日付と時刻のヘルパー の有用性 Kutools for Excel.

Kutools for Excel, 以上で 300 便利な機能は、あなたの仕事をより簡単にします。 

無料インストール Kutools for Excel、以下のようにしてください:

1.時差を配置するセルを選択し、をクリックします クツール > フォーミュラヘルパー > 日付と時刻のヘルパー、スクリーンショットを参照してください:
doc時差kte1

2.ポップダイアログで、チェックします 差異 チェックボックスをオンにしてから、をXNUMX回選択します。 引数入力 テキストボックスを個別に、のドロップダウンリストで必要に応じてXNUMXつの表示タイプを選択します 出力結果タイプ、screeshotを参照してください:
dockutools日時ヘルパー2

3. [OK]をクリックし、最初の結果が表示されたら、自動入力ハンドルをセル上にドラッグして、すべての時間差を計算します。
dockutools日時ヘルパー3 dockutools日時ヘルパー4


関連記事:

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

🤖 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 (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how to calculate difference for the below scenario


4/8/2019 10:18:22 AM

4/8/2019 6:10:01 PM

please help me..
This comment was minimized by the moderator on the site
Hi, prasad nalliri, just use one date to minus another date, then format the result (a number string) as a date or time format as you need:
A1 4/8/2019 10:18:22 AM

A2 4/8/2019 6:10:01 PM
Using this formula in B1: ==ABS(A1-A2)
Result: 0.327534722
Format the result as time or date
This comment was minimized by the moderator on the site
Hi there, I know how to calculate the difference between a start and finish time. However, I would like to know what is the formula when I also want to minus a target date Is there such a formula?



example: start date: 10/29/17 12:00 AM

A. 1st transaction date: 10/28/17 03:22 PM
B. end of 1st transaction date: 10/30/17 01:13 PM


if Column A is not equal to 10/29/17 12:00am then excess hours should be subtracted from the accumulated hrs from A and B
This comment was minimized by the moderator on the site
Sorry, Could you give a compliacted instance? Through your description, I do not understand clearly.
This comment was minimized by the moderator on the site
Hi there, I know how to calculate the difference between a start and finish time. However, I would like to know what the formula is when I also want to minus 30minutes. Is there such a formula?
This comment was minimized by the moderator on the site
Thanks for your leaving massage, you can try this formula =A1-TIME(0,30,0). See screenshot:
This comment was minimized by the moderator on the site
Hi team, i want to caluculate the time difference in the same cell ans the working hours should be come in next colum for example under timings 9:00am-06:00pm is there i want to know the working time in hours for example like 8 hrs or 9 hours like that. Sample: Timings Hours 09:15 AM - 06:15 PM
This comment was minimized by the moderator on the site
I want to highlight the late comers time by getting the difference of exceed time(late time) with the actual time For ex: if the actual time is 8.00AM if anyone comes by 8.30AM ,the time difference be 0.30minutes .. How can i highlight that 30 minutes using conditional formating in excel? or is there any options to highlight that?
This comment was minimized by the moderator on the site
I am having A1 cell : 04/14/2016 11:15:43 and B2 cell : 03/31/2016 10:41:23 Please let me know the time duration in hrs of between two difference date. exmple refno reg_code status cpv_incoming_date CPV Out CPV Out Time WH CPV IN WH CPV IN time Range CPV In Time ABC A B 09-MAY-2016,14:00:50 10-May-16 16:06:59 10-May-16 9:30:00 >6 hrs and < 8 Hrs 9-May-16 14:00:50
This comment was minimized by the moderator on the site
I am having A1 cell : 04/14/2016 11:15:43 AM and B2 cell : 03/31/2016 10:41:23 AM. Please let me know the time duration in minutes of between two difference date.
This comment was minimized by the moderator on the site
Scenario, Compare the h:mm:ss from the column A1 and display if the value in A2 cell is greater that 15 minutes then display the timing in proper column data condition There is a value in a cell A2, 0:16:38(h:mm:ss) and column B name "
This comment was minimized by the moderator on the site
ENTER EXIT TURN OVER 825 847 913 939 26 1038 1109 59 1133 1153 24 Please can you help me find a formulate to calculate turnover. The difference between Exit to Enter. Thanks.
This comment was minimized by the moderator on the site
Please advise how to convert time result 7.30 to 7.5 hours. Example result shows 7.30 hours different between two that should be total hours 7.5 in the time sheet.
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