You need to sign in to do that
Don't have an account?
Skeeter
Formula to calculate average but not include null values
I'm trying to create a formula to calculate the average of 5 questions (1-5 values), but not include any null values. I tried the following, but it doesn't seem to work. If I null out all the answers and leave one with 4, it displays the average as 0.00.
Any help is greatly appreciated.
Any help is greatly appreciated.
(IF(ISNULL(Answer2__c),0,Answer2__c)+IF(ISNULL(Answer3__c),0,Answer3__c)+IF(ISNULL(Answer4__c),0,Answer4__c)+IF(ISNULL(Answer6__c),0,Answer6__c)+IF(ISNULL(Answer7__c),0,Answer7__c)) / (IF(ISNULL(Answer2__c),0,1)+IF(ISNULL(Answer3__c),0,1)+IF(ISNULL(Answer4__c),0,1)+IF(ISNULL(Answer6__c),0,1)+IF(ISNULL(Answer7__c),0,1))
Thx
Glad it all worked out.
Also, as a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
This will help keep the forum clean and help future users determine what answers are useful
and what answer was the best in resolving the user's issue.
Thanks