简体   繁体   English

来自多个列和工作表的唯一公式和匹配条件存在问题

[英]Trouble with unique formula and matching criteria from multiple columns and sheets

My sheet has an agent count page that displays the names and how many times an agents name is on both sheets "IAD(Tampa)" and "Archive Docs".我的工作表有一个代理计数页面,显示名称以及代理名称在“IAD(坦帕)”和“存档文档”两个工作表上出现的次数。

=UNIQUE(QUERY({'IAD(Tampa)'!D3:D; 'Archived Docs'!D3:D},))
=COUNTIF('Archived Docs'!D3:D,A:A) + COUNTIF('IAD(Tampa)'!D3:D,A:A)

The ask is this.问是这样的。 How can I do the above if column "H" and "Match A3:A12" are a match?如果列“H”和“Match A3:A12”匹配,我该怎么做? Example would be DO NOT count Jesse when column "H" is Daniel because this NOT a match.例如,当“H”列是 Daniel 时,不要计算 Jesse,因为这不匹配。 Column "A" should be the name and column "B" should be the count. “A”列应该是名称,“B”列应该是计数。

SAMPLE SHEET https://docs.google.com/spreadsheets/d/1befqsGQvbPfn0XTGrygLOGcrUIMrICUagJVH0S-2rDw/edit?usp=sharing样品表https://docs.google.com/spreadsheets/d/1befqsGQvbPfn0XTGrygLOGcrUIMrICUagJVH0S-2rDw/edit?usp=sharing

try:尝试:

=QUERY({'IAD(Tampa)'!D3:H; 'Archived Docs'!D3:H}, 
 "select Col1,count(Col1) 
  where Col5 matches '"&TEXTJOIN("|", 1, Match!A2:A12)&"' 
  group by Col1 
  label count(Col1)''", )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM