Single Formula to Count and Average

Zakkaroo

Active Member
Joined
Jul 6, 2009
Messages
383
Scenario is, you have a long list of employee numbers (Col B for example) and against each employee number is a payment figure (Col C) and a Department (Col D).

What we want to do is count the number of employee's who have an average pay that falls into various brackets and lie within one of two departments (Dept1, Dept2)

e.g. How many people have an average pay between 7 and 10, who work in Dept1 - (repeat for Dept2)

All very easy so far ... but ... some of the Employees appear more than once in the list and we need to average their pay first, before we count.

What we really really don't want to do, is add in helper columns, additional sheets etc. etc.

We're hoping for a single formula, that can almost group the records by Employee to calc the average and then count based on that result.

I appreciate that it's weirdly specific not to have helper columns, or other sheets that calculate the average first, but it is an unfortunate requirement.

As an example, if Employe 123456 who works in Dept1 appears 3 times, with the pay of 8, 9 and 10 - the avg. pay for that Emp is 9 - so we would count them as being 1 Employee with a pay of 9, working in Dept1.

Hope that makes sense
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,770
Messages
6,126,794
Members
449,337
Latest member
BBV123

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