Adding IF and COUNTIF together?

Jheye

New Member
Joined
Aug 16, 2017
Messages
3
Here is my worksheet example. I need a formula to count how many times the 'Service Level %' was greater than 79.999% for each day of the week. So for Monday, there is two data points, but, 1 would be my answer in this example.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]Weekday[/TD]
[TD="align: center"]Service Level %[/TD]
[TD="align: center"]Calls Offered[/TD]
[TD="align: center"]Work days[/TD]
[/TR]
[TR]
[TD="align: center"]Mon[/TD]
[TD="align: center"]81%[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Tues[/TD]
[TD="align: center"]73%[/TD]
[TD="align: center"]100[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Wed[/TD]
[TD="align: center"]60%[/TD]
[TD="align: center"]159[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Thur[/TD]
[TD="align: center"]90%[/TD]
[TD="align: center"]232[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Fri[/TD]
[TD="align: center"]82%[/TD]
[TD="align: center"]278[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Mon[/TD]
[TD="align: center"]64%[/TD]
[TD="align: center"]132[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Tue[/TD]
[TD="align: center"]79%[/TD]
[TD="align: center"]145[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Wed[/TD]
[TD="align: center"]89%[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]1[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Thanks man, appreciate the quick reply. This is just what I needed!

I have a follow up thought/question on this that maybe you can point me in the direction of.

Now, continuing from the above formula, using a COUNTIFS function, I look at criteria 1) days that are Monday and 2) take the 'Service Level %' that is greater than 79.999% and then 3) take those specific values of 'Service Level%' and average them. How would I add on that 3rd step to perform a calc at the end?
 
Upvote 0
There is another function SUMIFS. Use sumifs to add the % together and divide by the countifs
 
Upvote 0
Although it would be remiss to not mention that averageing percentages may not be accurate.
Depending on how each percentage is obtained.

So you're dealing with Service Level percentages.
That is some sort of sum divided by count.
Something like (Sum of all calls) divided by (count of calls handled in less than x minutes)

If the COUNT for monday1 is different than the count for monday2, then average percentage of monday1 and monday2 will not be accurate.


Think about a baseball team, they have batting averages.
The TEAM's average is NOT calculated by the average of each player's average.
Consider that the pitcher has far fewer at bats than other players.
So the pitcher's average would have greater influence on that average than the other players.
So you have to do the average of EVERYONE, ALL At Bats by the team, regardless of the player.
 
Upvote 0
Jonmo1 - I agree with you, the percentages would not be the best metric to average out in that way.

Thank you for the quick replies everyone! These functions are great. That 'Techonthenet" site is loaded with goodies.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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