如图 兄弟们
excel吧
全部回复
仅看楼主
level 5
阿姆 楼主
如何把这三个数据一起选择 一起粘贴
2023年04月27日 00点04分 1
level 5
阿姆 楼主

2023年04月27日 03点04分 2
level 13
排序
2023年04月27日 03点04分 3
level 11
Option Explicit
Sub abc()
 Dim i, m, d(1)
 For i = 0 To UBound(d)
  Set d(i) = CreateObject("scripting.dictionary")
 Next
 For i = 2 To Cells(Rows.Count, "a").End(xlUp).Row
  If Not d(0).exists(Cells(i, "d").Value) Then d(0)(Cells(i, "d").Value) = i
  d(1)(Cells(i, "d").Value) = d(1)(Cells(i, "d").Value) + 1
 Next
 For Each i In d(1).keys
  If d(1)(i) > 1 Then
   m = m + 1
   Cells(d(0)(i), "a").Resize(, 4).Copy Cells(m + 2, "f")
  End If
 Next
End Sub
2023年04月27日 05点04分 4
没有胡剑是因为仅出现一次 ? 否则会有4组符合要求 。
2023年04月27日 05点04分
@🌴菠萝蜜🌴 老师 麻烦了 其实我只想单独挑选这三个单元格的名字[喝酒] 为你点赞
2023年04月28日 07点04分
level 7
使用ctrl键
2023年04月27日 07点04分 5
谢谢老师
2023年04月28日 07点04分
level 8
筛选,把刘大珍去掉再复制
2023年04月28日 03点04分 6
1