+ Reply to Thread
Results 1 to 6 of 6

% Mistakes with simple data

  1. #1
    Registered User
    Join Date
    10-05-2007
    Posts
    74

    % Mistakes with simple data

    Here is what I need, a fixed sereis of cells to draw a dashboard from. The requirements on the fixed cells are:
    - Last 10 data points.
    - % of which have mistakes.

    in the example above the answer is 90%, however as the database grows how would you write formula to keep refering to the most recent entries?
    Attached Files Attached Files
    Last edited by Sordini; 07-06-2010 at 02:24 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: % Mistakes with simple data

    start in a cell in row 11 and copy down. Format result as %

    =COUNTIF(C2:C11,"Y")/COUNTA(C2:C11)

    or, in any cell just looking at the last 10 occupied rows of the data table

    =COUNTIF(INDEX(C:C,MATCH("zzz",C:C,1)-9):INDEX(C:C,MATCH("zzz",C:C,1)),"Y")/COUNTA(INDEX(C:C,MATCH("zzz",C:C,1)-9):INDEX(C:C,MATCH("zzz",C:C,1)))
    Last edited by teylyn; 07-05-2010 at 04:38 AM.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,042

    Re: % Mistakes with simple data

    This maybe:

    =COUNTIFS(D:D, ">="&LARGE(D:D, 10), C:C, "Y")/COUNTIF(D:D, ">="&LARGE(D:D, 10))
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    10-05-2007
    Posts
    74

    Re: % Mistakes with simple data

    Dear god

    That latter formula is amazing. Thank you very much!

  5. #5
    Registered User
    Join Date
    10-05-2007
    Posts
    74

    Re: % Mistakes with simple data

    Thank you also zbor. That "large" function i never heard of and I will put that to good use in the future.

  6. #6
    Registered User
    Join Date
    10-05-2007
    Posts
    74

    Re: % Mistakes with simple data

    new requirement from the boss.
    large and small are great formula, it can be used for the top 5 smallest or larges data points. How about data points 6 - 10, 11 - 15? you see where I am going?

    Many thanks

+ 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