Count if with Subtotal in a table

Anonymous
2015-11-06T17:14:46+00:00

I need to get a percentage of times a value shows up in a filtered table. I have tried what is suggested on others questions but none of them are working. I have this formula but need it to exclude filtered rows and the count if option isn't there for subtotals =COUNTIF([Status],"On-Time")/COUNTA([Status]). Sample table (this would be filtered to show a certain vendor): I am looking for the answer 50% in this scenario.

Vendor Promise Date Received Date Status
ABC Co. 7/1/15 6/25/15 On-Time
ABC Co. 7/1/15 7/5/15 Late
FORMULA HERE
Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2015-11-06T18:38:26+00:00

    Thank you!

    0 comments No comments
  2. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2015-11-06T23:44:03+00:00

    Hi,

    Enter this formula

    =SUMPRODUCT(SUBTOTAL(103,OFFSET(D1,ROW(D2:D4)-ROW(D1),))*(D2:D4="On-Time"))/SUMPRODUCT(1*(SUBTOTAL(103,OFFSET(D1,ROW(D2:D4)-ROW(D1),))))

    Hope this helps.

    0 comments No comments