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

  • NicoLHC
    NicoLHC ✭✭✭✭✭✭

    @mccaffhm please try this =AVG(COLLECT([Date/Time Difference]:[Date/Time Difference], [Week Number]:[Week Number], "1"))

    If my comment helps you, I appreciate a 💡

    Kind regards

    Nico | LinkedIn

    CEO | Lighthouse Consultings

    Lecturer in Business Information Systems | DHBW

    ________________________________________________________________________________

    addvalue@lighthouseconsultings.com

    We offer Licenses - Training - Solution Engineering

    🔴 GOLD Smartsheet Partner _______________________________________________

    💯 SCALEABLE Solutions Engineered by Lighthouse Consultings

    We Don’t Just Implement Smartsheet; We Revolutionize How You Manage, Plan, And Execute.

    🎥 YouTube 🚀TimeLine View

    http://lighthouseconsultings.de/

  • Hey NicoLHC,

    I just gave it a try and it returned "unparseable" it seems like when I don't include a row reference the formula doesn't recognize the column (its not becoming highlighted)

  • SSFeatures
    SSFeatures ✭✭✭✭✭

    Hi mccaffhm,

    Can you add a screenshot of your sheet (after removing sensitive information)? I think I have an idea but I want to make sure that I understand the sheet correctly.

    Thanks,

    SSFeatures

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)

    SSFeatures - The browser extension that adds essential features into Smartsheet.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!