Add additional criteria

Options
Joan B
Joan B ✭✭✭
edited 07/13/23 in Formulas and Functions

Hello... here is my current formula below. How can I also add a condition to only average if number in range 8 is >0? =AVERAGEIF({Technical Certification and Competency Tra Range 4}, [Contact List]@row, {Technical Certification and Competency Tra Range 8})

Thanks for any help.

Answers

  • Carson Penticuff
    Carson Penticuff ✭✭✭✭✭✭
    Options

    Unfortunately, there is no AVERAGEIFS function, but you can get around it USING COLLECT.

    =AVG(COLLECT({Technical Certification and Competency Tra Range 8}, {Technical Certification and Competency Tra Range 4}, [Contact List]@row, {Technical Certification and Competency Tra Range 8}, > 0))

  • Joan B
    Joan B ✭✭✭
    Options

    Thank you Carson! I receive a #divide by zero error with your formula above. Is there a fix for that?

  • Carson Penticuff
    Carson Penticuff ✭✭✭✭✭✭
    Options

    Are you only receiving the error on rows with no matches? If so, this should suppress the error for those rows.

    =IFERROR(AVG(COLLECT({Technical Certification and Competency Tra Range 8}, {Technical Certification and Competency Tra Range 4}, [Contact List]@row, {Technical Certification and Competency Tra Range 8}, > 0)), "")

  • Joan B
    Joan B ✭✭✭
    Options

    PERFECT! Thank you again Carson.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!