Getting #DIVIDE BY ZERO error message for AVG + COLLECT formula (trying to exclude zeros/blanks)

I added a Curriculum Average row (blue row in the screenshot) to help roll the data up before I run an AVG(COLLECT formula from my master data sheet. I've covered up teammate information for privacy.

Currently, I am referencing the respective Region & COURSE2000 Curriculum Average in the formula below. There are COURSE2000 Curriculum Average rows with blanks and zeros, and I'm trying to exclude zeros from the formula with the following equation:

=AVG(COLLECT({Data Range 4}, {Data Range 4}, >0, {Data Range 1}, "Region 06", {Data Range 2}, "COURSE2000 Curriculum Average"))

Can you help me correct this formula?

Answers

  • NicoLHC
    NicoLHC ✭✭✭✭✭✭

    @Zach C please try =AVG(COLLECT({Data Range 4}, {Data Range 4}, >0, {Data Range 4}, <> "", {Data Range 1}, "Region 06", {Data Range 2}, "COURSE2000 Curriculum Average"))

    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/

  • Zach C
    Zach C ✭✭✭✭

    NicoLHC thank you!

    How would I add another Region to this formula if I was interested in looking at the Average for say Region 1 and 6?

  • NicoLHC
    NicoLHC ✭✭✭✭✭✭

    @Zach C just a general question do you want to use the data in a dashboard it could make sense to use a report?

    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/

  • NicoLHC
    NicoLHC ✭✭✭✭✭✭

    @Zach C i think i would try this way .

    =AVG(
    COLLECT({Data Range 4}, {Data Range 4}, >0, {Data Range 4}, <> "", {Data Range 1}, "Region 06", {Data Range 2}, "COURSE2000 Curriculum Average"),
    COLLECT({Data Range 4}, {Data Range 4}, >0, {Data Range 4}, <> "", {Data Range 1}, "Region 1", {Data Range 2}, "COURSE2000 Curriculum Average")
    )

    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/

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!