Hi. I have 54 columns of data. Each column has been grouped by Month, Day and Hour (via a Pivot Table) to show the average number on each hour of each day, over 8 months (1st October 2011 to 31st May 2012).
I require to get the average of the highest eight numbers on each day (there are 244 days) for each column. I also require to get the average of the highest five numbers on each day, for each column.
One problem is that the lowest number is repeated sometimes, but I only require to get the average of eight (and five) numbers, for each day. I used Conditional Format to highlight the top eight hours (in red font and background) and the top five hours (in bold font) which illustrates the problem. The C.F. is correct in identifying the top numbers, but I only need eight (and five) numbers for each calculation.
Another issue is that data is missing sometimes: these days are to be ignored; I only require to get the averages from days that contain all 24 records.
I may not have the data set up in the best way, having left it in Pivot table format, except for the first day, where I have inserted 4 rows and calculated the two averages above, for the first four columns.
Any help would be greatly appreciated, again. Regards, Geoff.
Hopefully attached Excel file, with only 18 columns now (reduced from 54) to conform to this Forum's size limit.
Bookmarks