[英]How to write formula in excel
I'm trying to write out a formula that finds the max value that is greater than 12pm
and one formula that shows it as less than 12pm
.我正在尝试编写一个公式来找到大于12pm
的最大值和一个显示它小于12pm
的公式。 I have one cell that shows 12:00:00PM
in order to do the less or greater than.我有一个显示12:00:00PM
的单元格,以便做小于或大于。 I have one column that shows timesteps and increment every 5 seconds (military time), and another column hat shows the data, this data column is where I need the max to be pulled from for AM time and PM time.我有一列显示时间步长并每 5 秒递增一次(军用时间),另一列显示数据,该数据列是我需要从上午时间和下午时间提取最大值的地方。
Cell A1= 12:00:00PM
Cell A10:A20000= Timestep
starting at 0.0:00:00 and increments every 5 seconds so the next cell A11
would be 0.0:00:05 when it hits noon it would be 0.12:00:00. Cell A10:A20000= Timestep
从 0.0:00:00 开始,每 5 秒递增一次,因此下一个cell A11
将是 0.0:00:05,当它到达中午时,它将是 0.12:00:00。 Remember military time so when it hits 1pm
it would be 0.13:00:00.记住军事时间,所以当它到达1pm
,它将是 0.13:00:00。
Cell B10:B20000= data random numbers
For the maximum value in column B
where the timestamp is before 12:00 use:对于B
列中时间戳在 12:00 之前的最大值,请使用:
=MAXIFS(B:B,A:A,"<"&0.5)
For the maximum after 12:00, use:对于 12:00 之后的最大值,请使用:
=MAXIFS(B:B,A:A,">"&0.5)
You can use "<="
or ">="
to include 12:00, if needed如果需要,您可以使用"<="
或">="
包括 12:00
(note: 0.5
is 12:00, you can replace it with your cell if you want) (注意: 0.5
是 12:00,如果你愿意,你可以用你的手机替换它)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.