Hello,
I am trying to compute the average of Cost of New based on the criteria below. However, for example if there are 18 records and there are only 2 that meet the criteria it is dividing by 18 instead of 2. How can I get this to work correctly? Thanks in advance for the help.
I am trying to compute the average of Cost of New based on the criteria below. However, for example if there are 18 records and there are only 2 that meet the criteria it is dividing by 18 instead of 2. How can I get this to work correctly? Thanks in advance for the help.
Code:
=Avg(IIf([Final]="TST-TST OK RTN" Or [Final]="NFF-TST & NFF" Or [Final]="RTN-RETURN" Or [Final]="SCL-SCR LOCALLY" Or [Final]="SCR-SCR RETURN" Or [Final]="BER-BER RTN CST",Nz([Cost Of New],0),0))
Comment