+ Reply to Thread
Results 1 to 4 of 4

Help with Formula for % Compliance

  1. #1
    Registered User
    Join Date
    08-11-2012
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Exclamation Help with Formula for % Compliance

    Thank you in advance for helping me with this formula. I have attached a jpg of the form.

    In columns: Day1, Day2, Day3, Day4, Day5, Day6 each will have either Y, N, or NA. The formula will need to be in % compliance column. If there is a value of either Y or N in a cell it will count toward the % compliant, an NA will not affect the average, the average will only be taken on Y and N cells. So,

    If:

    Day1 Day2 Day3 Day4 Day5 Day6 %Compliance
    Y N Y Y Y NA 80% (should be the answer, this is where I need the formula)

    Thank you,

    Nancy
    Attached Images Attached Images
    Last edited by Maeeday; 01-04-2013 at 08:05 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Help with Formula for % Compliance

    Hi Nancy,
    Try this formula in H2:
    =IF(COUNTIF(B2:G2,"<>NA")=0,0,COUNTIF(B2:G2,"Y")/COUNTIF(B2:G2,"<>NA"))

    or a shorter version...
    =IFERROR(COUNTIF(B2:G2,"Y")/COUNTIF(B2:G2,"<>NA"),0)
    Last edited by djapigo; 01-04-2013 at 07:51 PM.

  3. #3
    Registered User
    Join Date
    08-11-2012
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Help with Formula for % Compliance

    Thank you!

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Help with Formula for % Compliance

    No problem...

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ 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