Google sheets 如果一个名称位于另一列中,则计数

Google sheets 如果一个名称位于另一列中,则计数,google-sheets,Google Sheets,我试图计算一个名称在包含通配符a:a的静态列中发现的动态列B:B中显示的次数。动态列可以有0个名称,也可以有多个名称,并且一个名称可以显示多次 EXAMPLE ONE Static Column (A:A) Dynamic Column (B:B) Count (Output) ------------------- -------------------- -------------- John* Fred Sm

我试图计算一个名称在包含通配符a:a的静态列中发现的动态列B:B中显示的次数。动态列可以有0个名称,也可以有多个名称,并且一个名称可以显示多次

EXAMPLE ONE

Static Column (A:A)     Dynamic Column (B:B)        Count (Output)
-------------------     --------------------        --------------
John*                   Fred Smith                  2
Joe*                    Joe MacDonald
Jane Fairfield          Jane Smith
                        Sally Small
                        John MacDonald
                        ...
-

-

-

-

我正在运行旧的谷歌电子表格,所以我不能使用countifs函数

任何洞察都会受到极大的赞赏。

在这种情况下,应用于数组的COUNTIF函数应该可以实现以下功能:


=ArrayFormulaSUMCOUNTIFB:B,A:A

此旧主题向您展示了如何使用arrayformula执行此操作
EXAMPLE TWO

Static Column (A:A)     Dynamic Column (B:B)        Count
-------------------     --------------------        -----
John*                   Harry Potter                1
Joe*                    Ron Weasley
Jane Fairfield          Jane Fairfield
EXAMPLE THREE

Static Column (A:A)     Dynamic Column (B:B)        Count
-------------------     --------------------        -----
John*                   Hermione Granger            0
Joe*                    
Jane Fairfield          
EXAMPLE FOUR

Static Column (A:A)     Dynamic Column (B:B)        Count
-------------------     --------------------        -----
John*                                               0
Joe*                    
Jane Fairfield          
EXAMPLE FIVE

Static Column (A:A)     Dynamic Column (B:B)        Count
-------------------     --------------------        -----
John*                   Hermione Granger            3
Joe*                    Ron Weasley 
Jane Fairfield          John MacDonald
                        Joe Sheldon
                        John MacDonald
                        Harry Potter
                        ...