0
2

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 5 years have passed since last update.

【Excel】日付をまたぐ時間の平均値を取得する方法

Last updated at Posted at 2020-01-22

業務で苦戦した「日付をまたぐ時間の計算」「配列数式」ついて備忘のためにメモ。

やりたいこと

「終了時間の平均時間(黄色セル)を求めたい。」

※わかりやすいために、実行時間の平均を表示している。
 終了時間の平均は0:46になるべきである。
image.png

求めてみよう(take1)

普通にやるとこうなる。
※式=AVERAGE(D19:D26)
image.png

日付(0時)をまたぐか否かで計算する必要があるということがわかった。

求めてみよう(take2)

image.png
数式はあっているはずなのに、エラーとなる。

そこで配列数式なるものを知る。

配列数式とは

数同士の計算ではなく、数の集まり同士の計算を扱うときに使うもの。
配列数式の場合は数式バーで「Ctrl + Shift + Enter」でうまくいくとのこと!

求めてみよう(take3)

無事に正しい時間が取得できた。

ちなみに「Ctrl + Shift + Enter」で実行するのでCSE数式とも呼ばれるそう。
image.png

参考サイト

https://press.share-wis.com/array-formula-excel
http://office-qa.com/Excel/ex69.htm

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?