- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¦^´_ 1# luke - Sub nn()
- With sheet2
- Set Rng = .Range(.[A1], .[A1].End(xlDown))
- k = 11
- For Each a In sheet1.[B1:B5]
- mystr = "SUMPRODUCT((left(sheet2!" & Rng.Address & ",2)=""" & a.Offset(, -1) & """)*1)"
- Set c = .Columns("A:A").Find(a.Offset(, -1), after:=.[A65536], lookat:=xlPart)
- r = Evaluate(mystr)
- For i = 1 To a
- c.Resize(r, 10).Copy sheet1.Cells(k, 1)
- k = k + r
- Next
- Next
- End With
- End Sub
½Æ»s¥N½X |
|