Hi, you have to use sumproduct see the link below which have and explanation on how formula works
Count if with Subtotal in a table
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.
-
Anonymous
2015-11-06T17:42:03+00:00
2 additional answers
Sort by: Most helpful
-
Anonymous
2015-11-06T18:38:26+00:00 Thank you!
-
Ashish Mathur 100.8K Reputation points Volunteer Moderator2015-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.