Forum Discussion
Help averaging under certain conditions.
- Feb 11, 2025
Let's say the dates/times are in A2:A26281 and the temperatures in B2:B26281.
In for example D2 enter the formula
=UNIQUE(INT(A2:A26281))
and in E2
=AVERAGEIFS(B2:B26281, A2:A26281, ">="&D2#+TIME(12, 0, 0), A2:A26281, "<="&D2#+TIME(16, 0, 0))
Both formulas will spill to as many rows as needed.
Let's say the dates/times are in A2:A26281 and the temperatures in B2:B26281.
In for example D2 enter the formula
=UNIQUE(INT(A2:A26281))
and in E2
=AVERAGEIFS(B2:B26281, A2:A26281, ">="&D2#+TIME(12, 0, 0), A2:A26281, "<="&D2#+TIME(16, 0, 0))
Both formulas will spill to as many rows as needed.
- dl12Feb 11, 2025Copper Contributor
For the first part of your suggestion, its giving me values in the 44,000s. Is that correct?
- HansVogelaarFeb 11, 2025MVP
Yes. format that column as a date.
- dl12Feb 11, 2025Copper Contributor
That definitely works. I'm fairly new to excel so if you could explain the formula I'd really appreciate that!