+ Reply to Thread
Results 1 to 2 of 2

exclude data that meet certain criteria

  1. #1
    Registered User
    Join Date
    07-13-2007
    Posts
    10

    exclude data that meet certain criteria

    Hello - I am trying to show the average of 5 columns in a table. The value options are 1 (for yes) 0 (for no) and NA (for na).

    The problem I am running into is that I gradually enter data over time and if I have a column that only consist of the answer na I get a false 0% average. I cannot use an IF statement to exclude 0 because that could be a correct average if the answer is 0 (or no) and not NA.

    One possible solution is to tell excel not to include any cells that have the #Div/0! error in the final calculation. Is there a way to do this?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    =IF(COUNT(A1:E1) = 0, "NA", AVERAGE(A1:E1) )

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1