如何在Microsoft Excel中显示多个日期范围内相同日期的最大值

huangapple go评论168阅读模式
英文:

How to show maximum value for multiple same dates within multiple date ranges in Microsoft Excel

问题

我有一周范围内多次心率测量。总日期范围为7天,每天内有多次测量。
我需要一个公式来提取每个日期的最大值。

我尝试了许多公式组合,但我无法成功。

请参见下面的截图。

英文:

I have multiple measurements of Heart Rate within a week range. Total date range is 7 days and within each day there are multiple measurements.
I need a formula to extract Maximum value for each date.

I tried many formula combinations but Im just unable to do it.

See the screenshot below.

如何在Microsoft Excel中显示多个日期范围内相同日期的最大值

答案1

得分: 2

你可以开始使用=MAXIFS()工作表函数,如下所示:

=MAXIFS(B$1:B$14,A$1:A$14,F2)

在我的截图中,这是什么意思:

  • 取得列“B”中数值的最大值(从1到14)
  • 将筛选条件应用于列“A”中的数值(同样是从1到14)
  • 对于特定的单元格,你会使用“F2”的值作为一个条件。

截图:

如何在Microsoft Excel中显示多个日期范围内相同日期的最大值

你可以对其他列使用=MINIFS()=AVERAGEIFS()

关于=UNIQUE()函数的编辑:
使用=UNIQUE(A$2:A$70)函数,你可以自动创建你的“E”列中的列表,你知道吗?(但这个函数只存在于最新的Excel版本中)

英文:

You might start using the =MAXIFS() worksheet function, like this:

=MAXIFS(B$1:B$14,A$1:A$14,F2)

In my screenshot, this is what it means:

  • Take the maximum of the values in column "B" (from 1 to 14)
  • The criteria that will be filtered on are the values in column "A" (also from 1 to 14)
  • For this particular cell, you use the value of "F2" as a criterion.

Screenshot:

如何在Microsoft Excel中显示多个日期范围内相同日期的最大值

You can use =MINIFS() and =AVERAGEIFS() for the other columns.

Edit about the =UNIQUE() function:
Using the =UNIQUE(A$2:A$70) function, you can create the list in your "E" column automatically, did you know that? (This function only exists on the latest Excel versions, however)

huangapple
  • 本文由 发表于 2023年7月24日 15:27:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76752239.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定