Hello all,
Thanks in advance for any help. Not exactly an Excel newbie but not a guru either. I'm having trouble with a formula. I want to make sure that the countif (which is essentially the denominator in the equation has a value of > 0, else render 'n/a'. I'm having trouble writing this. If I take out the "n/a" at the end, I will get a value. The sumif/countif formula is ok on its own. It's when I try to incorporate it into an if statement that I'm having my problems. Hopefully I've explained this well enough.
=IF(COUNTIF(AllReports.$A$4:$A$500,$A4)>0,SUMIF(AllReports.$A$4:$A$500,$A4,AllReports.C$4:C$500))/COUNTIF(AllReports.$A$4:$A$500,$A4),"n/a")
Thanks,
John
Bookmarks