Aug 26 2023 02:28 PM
I am a moderately experienced user of Office and Excel but have run against a brick wall with what I am trying to do. In a nutshell, I have a spreadsheet with data from a weather station that has rows and columns of data from multiple days and times. The date column gathers data in the following format:
xx/xx/xx xx:xx and the temperature column is simple numbers.
So for any given day it has multiple entries for each time slot. The spreadsheet has multiple days in a long list of rows. For example, for August it currently (as of this writing) goes from August 1st to August 26 (the current date today) with times for each day starting at midnight and ending at 23:48.
What I want to do is two things: I want to average all days separately but I want to do it for any values above 100. I don't want to average all the days together (I already have a pivot table doing that).
What makes this complicated is all the days are in one long set of rows and I don't want to have to manually go through and edit the sheet to separate out the days, I'd like to try doing this with a formula since I am doing this for every month in the year and that is a lot of work if I have to do it manually.
Can anyone tell me how to structure a formula that will let me do this?
Aug 26 2023 02:38 PM
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
Aug 26 2023 03:25 PM
Aug 27 2023 12:28 AM
First add headers to your list.
Then add a helper column "Temp >100?" to your data:
=B2>100
Use this helper column in the report filter of a pivot table and filter for TRUE.
"Timestamp" in rows area and group by year, month, day.
"Temp" in values area. Change calculation to "Average".
Aug 27 2023 12:51 AM
Thanks. See the attached version.
Aug 28 2023 06:56 PM
SolutionAug 28 2023 06:56 PM
Solution