将重复的数字复制到另一个单元格或 google sheet

Copy duplicate numbers to another cell or google sheet

在一个 google sheet 上,我有一个页面自动填充 A 列中的数据。在另一个 sheet 上,我试图输入一个公式只统计重复的数字,还显示哪些数字重复了多少次。例如,数字 7734 在 Sheet 1 上有五个不同的行,那么我怎样才能在 Sheet 2 上有两列显示 7734 5(或类似)? 非常感谢。

尝试:

=QUERY(QUERY('Sheet 2'!A:A, 
 "select A,count(A) 
  where A is not null 
  group by A 
  label count(A)''", 0), 
 "where Col2 >= 2", 0)