Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

Google Sheets average analysis by time value

$
0
0

enter image description here

Link to test sheet

In the above segment of a wider Google sheet I want to analyse the results of test1 test2 and test3 according to the time of the test to the extent that I wish to average all results taken in the dark yellow range (Matin 00:00 - 10:00), the yellow range (Jour 10:00 - 16:00) and the blue range (Soir 16:00 - 23:59).

The timing colour coding comes from underlying conditional formatting and the test results similarly for readability purposes (nothing more).

Problem:

using =iferror(AVERAGEIF(V5:V35; "<>0");"") for test1 will generally seems to work but extending that formula to test2 =AVERAGEIFs(W5:W35;U5:U35; "<=10:00") and so test3 =AVERAGEIFs(X5:X35;U5:U35; "<=10:00") will result in an incorrect results in test2 since times in test1 will be included as will results in tes3 because the results in test1 and test2 will be included as the meet the criterion specified.

In Soir, test1 I have attempted to overcome this by using the following formula =query(u24:v34, "Select Avg(V) where U '<=09:59'") but this causes a formula parse error.

Am I taking the right approach to solving this conundrum or is there a better way to make sure that the analysis of results in the various time slots are correctly reported?


Viewing all articles
Browse latest Browse all 9843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>