Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

Multi filter in Excel Formula

Here is what I am looking to do. I have a data list with Supervisor/Agent/Script. the formula I am trying to build pulls per supervisor and script to show how many agents under a supervisor used a specific script example below:

enter image description here

enter image description here

so in the example John had 2 agents that used S1 and 1 agent that used S2. I could write this in VBA easily but the ask is for a formula.

Thanks!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Use three formula:

In F1:

=TRANSPOSE(UNIQUE(C2:C13))

In E2:

=UNIQUE(A2:A13)

In F2:

=COUNT(UNIQUE(FILTER(MATCH($B$2:$B$14,$B$2:$B$14,0),($A$2:$A$14=$E2)*($C$2:$C$14=F$1),"a")))

and copy over and down.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...