Average with Criteria

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
951
Office Version
  1. 365
Hi,

I have the following in Table 1:
Table 1
MonthBranchStaffRate
JanTexasJavier95%
JanTexasJavier0%
JanTexasJavier97%
JanTexasJavier0%
JanColoradoRandall93%
FebTexasJavier94%
FebTexasJavier91%
FebOklahomaBetty85%
FebVirginiaLupo87%
FebColoradoRandall90%
MarTexasJavier93%
MarNew YorkJenna85%
MarTexasJavier86%
MarVirginiaLupo91%
MarColoradoRandall94%

In the following , I have the summary in Table 2 by month:

Table 2
MonthBranchStaffRate
JanTexasJavier48%
JanColoradoRandall
FebTexasJavier
FebOklahomaBetty
FebVirginiaLupo
FebColoradoRandall
MarTexasJavier
MarNew YorkJenna
MarVirginiaLupo
MarColoradoRandall

In the column for Rate, I am trying to calculate the average for each employee. For Javier, the average for Jan is actually 96%. However, my current formula is calculating as 48% since it includes the zero in the range. Is there a way to modify the formula for the correct result ? Appreciate the help.

Excel Formula:
=AVERAGEIFS(E3:E17,B3:B17,G3,C3:C17,H3,D3:D17,I3)
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I tested your values, and used three criteria:

1674793602615.png
 
Upvote 0
Solution
If the RIGHT Table is showing the Averages you were expecting, then tailor your formula accordingly.
Using Cell ranges can be used, but not the best solution for a growing data set.

I used the Rate criteria only for values greater than zero. Before that, I too saw 48% for javier...
Out of curiosity, should a zero value even be in there considering all three have the same Month and State...?
Any way to combine your source data to so you have only one row for Javier in JAN for Texas?
 
Upvote 0
MonthBranchStaffRateMonthBranchStaffRate
JanTexasJavier
95%​
JanTexasJavier
96%​
JanTexasJavier
0%​
JanColoradoRandall
93%​
JanTexasJavier
97%​
FebTexasJavier
93%​
JanTexasJavier
0%​
FebOklahomaBetty
85%​
JanColoradoRandall
93%​
FebVirginiaLupo
87%​
FebTexasJavier
94%​
FebColoradoRandall
90%​
FebTexasJavier
91%​
MarTexasJavier
90%​
FebOklahomaBetty
85%​
MarNew YorkJenna
85%​
FebVirginiaLupo
87%​
MarVirginiaLupo
91%​
FebColoradoRandall
90%​
MarColoradoRandall
94%​
MarTexasJavier
93%​
MarNew YorkJenna
85%​
MarTexasJavier
86%​
MarVirginiaLupo
91%​
MarColoradoRandall
94%​
 
Upvote 0

Forum statistics

Threads
1,223,649
Messages
6,173,580
Members
452,521
Latest member
bdough27

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