Percentage formula to ignore blanks

Seyk1701

New Member
Joined
Oct 13, 2024
Messages
13
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I have a manager summary page with a drop down menu, to select the managers name. This then lists all the employees that report to the selected manager, data such as 'time taken on a job' vs 'expected time'. I then have a calculated column, with "Exceeded Expected Duration" and "On Target or below".

When a manager is selected, he may have 10 employees working for him, or 1000, I want to see what this managers "On Target or Below" percentage is. My problem is, for the formula to cover all employees under a certain manager, I need to choose a large column range. My formula is: =COUNTIF(L9:L10000,"On Target or Below")/COUNTA(L9:L10000) ... is there any way to make this dynamic? In that the 10000, always changes according to the amount of employees? Or how can I ignore blanks?
 
If the issue is that it's counting all cells belonging to that manager, not just the ones that say either "expected duration exceeded" and "on target or below", you can modify it like this:
Excel Formula:
=COUNTIFS(L9:L10000,"On Target or Below",A9:A10000,D3)/COUNTIFS(A9:A10000,D3,L9:L10000,"<>"&"")
I thought I edited my response. Yep the solution work, thank you very much!
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top