• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

COUNTIF not containing #N/A

bines53

Active Member
Hello friends,

Does anyone know a way to avoid calculating #N/A cells?

=SUM(INDEX(COUNTIF(B1:B11,D1:D11&"<>#N/A"),0)) ,does not work ,

The correct result is 12

Thanks for the helpers

David
 

Attachments

  • COUNTIF not containing error.xlsb
    8.3 KB · Views: 15
Hello friends,

Does anyone know a way to avoid calculating #N/A cells?

=SUM(INDEX(COUNTIF(B1:B11,D1:D11&"<>#N/A"),0)) ,does not work ,

The correct result is 12

Thanks for the helpers

David

Try this formula

=COUNTA(Z:Z)-SUM(IF(ISNA(Z:Z),1))
=SUMPRODUCT(--(TRIM(Z:Z)<>"#N/A"))

Regards,
Rick Bale
 
Back
Top