AverageIfs Complexity

mrwiley

Board Regular
Joined
Sep 10, 2012
Messages
59
Good afternoon,

I have a problem... I am hoping someone can help.

I have a spread-sheet which contains various codes in Column C (30,40,90,95,99) and value of percentage in Column G.

I want to take the values 30, 40 and average all amounts including 0% and I also want to include values 90, 95, 99 but with a value greater than 0% (not include 0%)

Currently I have it calculating everything greater than 0%

=AVERAGEIFS($G$2:$G$109,$C$2:$C$109,"<>30",$G$2:$G$109,">0") <<this works but omits any 0%

A B
WLKITLWLDOCO WASRSTWADRQJWLUORG WLSOQS PERCENTAGE
Part 1434671 9907/31/18630630100.00%
1434672 9908/01/18900900100.00%
1434673 9008/02/18630630100.00%

<colgroup><col span="6"><col></colgroup><tbody>
</tbody>

Basically when I average this I filter anything containing a 90, 95, 99 and delete all 0% then average like normal... want something faster.

Thank you
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
It's all about the average Column C is the stage in which the part is...

30 is beginning, all 0% is counted
40 is work started, all % greater than 0 is counted
90, 95, 99 is finished work but only % greater than 0 is counted, anything at 0% is not averaged.

Column G is the tally at the end. a total of all rows is what I show for attainment.

WO Beginning and WO End = WOE/WOB = % of completion =

Hope this helps
 
Upvote 0
I need the average for the entire column G excluding 0% of 90,95,99 (from column c) - maybe this is better

That is, column C must meet either 90 or 95 or 99; Column G must meet > 0%. Let's try:

=SUM(SUMIFS(G:G,G:G,">0",C:C,{90,95,99}))/SUM(COUNTIFS(G:G,">0",C:C,{90,95,99}))
 
Last edited:
Upvote 0
That's also the range whose values you want to average. The formula should not be entered in column G or C.

Today is report day, I inputted your formula, it provides a % but its not correct.

I need to calculate all percentages while excluding 0% of ONLY 90,95,99's.

Yous calculated 96% but mine was 76% - wish I could attached a spreadsheet example. Thank you for your feedback and formula.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

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