Calculating average difference in dates between two columns
Hi I am trying to find the average time to complete a task without adding additional columns in my sheet. I would like to set it up in the sheet summary for easy reporting.
In excel I would use the following formula. If a cell is blank the row will not be calculated as part of the average.
=SUMPRODUCT((I2:I52)-(E2:E52),--(E2:E52 > 0),--(I2:I52 > 0))/SUMPRODUCT((ISNUMBER(I2:I52))*ISNUMBER(E2:E52))
Best Answer
-
Can I ask why you don't want to add another column? The only way I can currently think of to achieve this is to add one additional column to your sheet...this would be needed to calculate the days-per-row using your two date columns. If you just didn't want the clutter of another column you could thenΒ hideΒ the column, and it would still work for your calculations. The formula to find the days in each row is pretty simple:
=[CCP NOTICE]@row - [ASSIGNED DATE]@row
Β
Then you could buildΒ the AVERAGEIF formulaΒ to average the days from the helper column. The formula I have in the screen capture below is as follows:
=AVERAGEIF([Days to Fill]:[Days to Fill], NOT(ISBLANK(@cell)))
Or in your sheet,Β
=AVERAGEIF([Helper Column]:[Helper Column], NOT(ISBLANK(@cell)))
Let me know if this would work for you!
Cheers,
Genevieve
Need more information? π | Help and Learning Center
γγγ«γ‘γ― (Konnichiwa), Hallo, Hola, Bonjour, OlΓ‘, Ciao!π | Global Discussions
Answers
-
Can I ask why you don't want to add another column? The only way I can currently think of to achieve this is to add one additional column to your sheet...this would be needed to calculate the days-per-row using your two date columns. If you just didn't want the clutter of another column you could thenΒ hideΒ the column, and it would still work for your calculations. The formula to find the days in each row is pretty simple:
=[CCP NOTICE]@row - [ASSIGNED DATE]@row
Β
Then you could buildΒ the AVERAGEIF formulaΒ to average the days from the helper column. The formula I have in the screen capture below is as follows:
=AVERAGEIF([Days to Fill]:[Days to Fill], NOT(ISBLANK(@cell)))
Or in your sheet,Β
=AVERAGEIF([Helper Column]:[Helper Column], NOT(ISBLANK(@cell)))
Let me know if this would work for you!
Cheers,
Genevieve
Need more information? π | Help and Learning Center
γγγ«γ‘γ― (Konnichiwa), Hallo, Hola, Bonjour, OlΓ‘, Ciao!π | Global Discussions
Help Article Resources
Categories
Check out the Formula Handbook template!