Forum Discussion

Skeletor35's avatar
Skeletor35
Copper Contributor
Jul 20, 2023
Solved

Why is this failing?

https://imgur.com/a/oQJG6HY   =AVERAGE(IF(D3:J3<>0 AND D3:J3<>"",D3:J3,""))   Trying to get an average for d3:j3, if zero or blank do not average, if "pto" use 9 instead. Started with bing faile...
  • Riny_van_Eekelen's avatar
    Jul 20, 2023

    Skeletor35 This one if you also want to take the "pto" into account:

    =AVERAGE(IF(D3:J3<>"pto",IF(D3:J3<>0,D3:J3,""),9))

     

Resources