Hi I am looking for a formula solution that calculates the average days between dates that appear in a row. The tricky part is that new dates are added to each row every so often. This is for a plant watering schedule in google sheets which you can view here: https://docs.google.com/spreadsheets/d/1_w5nqlQDtHTrepfhUWOeCXALR0vjBGW4cxq8-KxcaqU/edit?usp=sharing Each row keeps a record of the dates I water each plant. When I check the box in column D, the current date (i.e. today) is automatically created in column E and previous dates shift over 1 column - continuously adding the new dates I water the plants. I want a formula to calculate the average days between the dates that are in each row. But I also want the formula to account for the fact that new dates will be added, with the newest date to appear in column E and older dates extending back to columns F, G, H, etc to infinity... I want the average days to appear in Column C. The File I have shared is editable and you can trial how the sheet works there as it is a copy of my original sheet. Suggestions and solutions would be much appreciated!
Try
=arrayformula(iferror(AVERAGE(offset(E2,,,,sumproduct(--(E2:2<>""))-1)-offset(F2,,,,sumproduct(--(E2:2<>""))-1))))
and drag below