averageif

I am trying to find the average dwell time per SCAC but I'll get a zero return which is not correct or a #divide by zero error message. =AVERAGEIF({OTP 10.21.23 SCAC Range}, "ltga", {OTP 10.21.23 time}). Can you help me find a formula that works properly?


Answers

  • AravindGP
    AravindGP ✭✭✭✭✭
    edited 11/10/23

    Hi @minh.h.nguyen


    The issue is not with the formula but the data. Smartsheet doesn't have a time function, so when you enter 4:48 or 7:46 it reads it as a text and not number or time. Hence no averages are being displayed. Try changing the data to be with a period if needed (like 4.48 or 7.46 or 6.56) or enter absolute hours between 1 to 24 (per day). Your same averageif formula will work if the data is fixed.

    Thanks,

    Aravind

    Reach out for any help on licenses, configuration, or training

  • Aravind, How do I change the data to be with a period? I do not see a function that will allow me to do that.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!