Convert Dual COUNTIFS to CALCULATE /COUNTROWS

pete234

Active Member
Joined
Feb 10, 2004
Messages
419
=CALCULATE(COUNTROWS('M2'), ALLEXCEPT('M2', 'M2'[AEE]))

This works if I want to count the rows from the type of sales rep AEE.
However, the original formula references another field next to it to group the calc by 2 reps instead of one.

How can I modify this formula to also include a name field next to AEE.
In other words, count lines grouped by REP 2 grouped under REP 1.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Well now it seems to be working correctly, I just used it again in another table.
It's just 2 columns of names both with repeating values.
Trying to get unique counts of 2nd value under the first (as if concatenated) but I guess row count is seeing the first name as a type of hierachy.
So it is working.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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