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?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hello! Provide a small snippet of your table to make it easier to understand what you want.
 
Upvote 0

Attachments

  • Screenshot 2024-10-21 215044.jpg
    Screenshot 2024-10-21 215044.jpg
    101.4 KB · Views: 6
Upvote 0
Hello! Provide a small snippet of your table to make it easier to understand what you want.
Thank you for your response. I have drop down menu for choosing manager name and level of manager. So the rows in my table are not fixed. Hence why I need the formula to ignore blanks or for it to be dynamic.
 
Upvote 0
Your formula should already ignore blanks, as COUNTIF only counts cells meeting your criteria, and COUNTA only counts cells that have something in them.
So as long cells you are checking REALLY are blank (and don't contain things like formulas or single spaces), your formula should already ignore all the blanks.
 
Upvote 0
Your formula should already ignore blanks, as COUNTIF only counts cells meeting your criteria, and COUNTA only counts cells that have something in them.
So as long cells you are checking REALLY are blank (and don't contain things like formulas or single spaces), your formula should already ignore all the blanks.
Ahh thought as much. So my issue is with the column where I have "Exceeded Expected Duration" and "On Target or Below". I stretched the formula down to 15000 rows. So I need this formula to be a dynamic range according to the manager selected. The formula is ... =IF(I9="","",IF(I9>R9,"Expected Duration Exceeded","On Target or Below"))
 
Upvote 0
I think if you modify your formula to account for your manager name, it should work :
Excel Formula:
=COUNTIFS(L9:L10000,"On Target or Below",A9:A10000,D3)/COUNTIF(A9:A10000,D3)
 
Upvote 0
I think if you modify your formula to account for your manager name, it should work :
Excel Formula:
=COUNTIFS(L9:L10000,"On Target or Below",A9:A10000,D3)/COUNTIF(A9:A10000,D3)

I think if you modify your formula to account for your manager name, it should work :
Excel Formula:
=COUNTIFS(L9:L10000,"On Target or Below",A9:A10000,D3)/COUNTIF(A9:A10000,D3)[/CODE
[/QUOTE]

That's done the trick! Thank you.
 
Upvote 0
I think if you modify your formula to account for your manager name, it should work :
Excel Formula:
=COUNTIFS(L9:L10000,"On Target or Below",A9:A10000,D3)/COUNTIF(A9:A10000,D3)

I think if you modify your formula to account for your manager name, it should work :
Excel Formula:
=COUNTIFS(L9:L10000,"On Target or Below",A9:A10000,D3)/COUNTIF(A9:A10000,D3)
Hey, I think my issue is with the preceding formula to check if expected duration has been exceeded or not, from which I work out the percentage.

This formula:
 
Upvote 0
If the issue is that it's counting all cells belonging to that manager, not just the ones that say either "expected duration exceeded" or "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,"<>"&"")
 
Last edited:
Upvote 0

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