Average formula using column reference and weeknumber reference

Hello, I am trying to create a formula for my smart sheet which will tell me the average in transit time for our shipments in week number 1. To do this I have a week number column which automatically updates at the beginning of the week so I can pull the data for my metrics. Currently I have been able to pull the data by refereeing the specific range of cells in each column for the week. This is the equation I have currently.

=AVG(COLLECT([Date/Time Difference]9:[Date/Time Difference]67, weeknumber9 : weeknumber67, "1"))

So how do I automate this and have it reference the entire column for Date/Time Difference and week number.

additionally once this is done, I would like to fund the average from the date/ time difference column and filter by type of shipment.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!