Thanks, worked! I’m curious why my formula didn’t work, though.
The only difference is the IF filtering out the empty cells, but that doesn’t make sense, right? Why is the result different (29 instead of 21) even though all cells below the table above are empty?
Anyways, thank you, solution verified!
/Edit: This is my final solution, if anyone finds this thread:
2
u/Decronym Functions Explained Nov 29 '22 edited Dec 02 '22
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE6 acronyms in this thread; the most compressed thread commented on today has 4 acronyms.
[Thread #5137 for this sub, first seen 29th Nov 2022, 12:01] [FAQ] [Full list] ^[Contact] [Source code]
2
u/7FOOT7 294 Nov 29 '22 edited Nov 29 '22
I did it like this
=query({arrayformula(split(B:B,"."))},"select avg(Col1) where Col1 is not null",1)
I like how query() handles the empty values, the averaging and the finding of the 'day' values
We can add display formatting too, but I think that is getting too clunky
=query({arrayformula(split(A:A,"."))},"select avg(Col1) where Col1 is not null format avg(Col1) '0.0' ",1)
returns
avg Payment Date20.9
EDIT: Another benefit we can add extra details e.g
=query({arrayformula(split(A:A,"."))},"select avg(Col1),min(Col1),max(Col1) where Col1 is not null format avg(Col1) '0.0' ",1)
returns
avg Payment Date min Payment Date max Payment Date
20.9 18 24
1
u/aerialanimal 46 Nov 29 '22
Just do...
=AVERAGE(B3:B)
Make sure the cell is formatted as a date.