¼ÐÃD:
½Ð°Ýn«ç»ò¨Ï¥Î±q¥t¤@ÀÉ®×¹ïÀ³Äæ¦ìºâ¥Xª÷ÃBÁ`©M¤ÎÀx¦s®æÁ`¼Æ??
[¥´¦L¥»¶]
§@ªÌ:
lulumi7434
®É¶¡:
2011-8-28 21:10
¼ÐÃD:
½Ð°Ýn«ç»ò¨Ï¥Î±q¥t¤@ÀÉ®×¹ïÀ³Äæ¦ìºâ¥Xª÷ÃBÁ`©M¤ÎÀx¦s®æÁ`¼Æ??
½Ð°Ýn«ç»ò¨Ï¥Î±q¥t¤@ÀÉ®×¹ïÀ³Äæ¦ìºâ¥Xª÷ÃBÁ`©M¤ÎÀx¦s®æÁ`¼Æ??
¤ñ¦p»¡¡AupdateÀɮתºBÄæÈn¥h¹ïÀ³123ÀɮתºIÄæȺâ¥XÀx¦s®æÁ`¼Æ¨Ã¶ñ¤JupdateÀɮתºÀx¦s®æ¡A¦A¥Ñ123ÀÉ®×IÄæ¹ïÀ³¨ì123ÀɮתºJÄæ(ª÷ÃB)¨Ãºâ¥X¬Û¦PȪºª÷ÃBÁ`©M¡A±a¦^updateÀÉ®×Àx¦s®æ¤º¡H¡H
¸Ô²Ó¦AªþÀɸ̱¡A·PÁÂ!!
[attach]7635[/attach]
§@ªÌ:
Hsieh
®É¶¡:
2011-8-28 21:30
¦^´_
1#
lulumi7434
¥Î¼Ï¯Ã¤ÀªRªí§a
[attach]7638[/attach]
§@ªÌ:
lulumi7434
®É¶¡:
2011-8-28 21:54
¤£¦n·N«ä!!
¥i¥H¥Î¥¨¶°ªº¤è¦¡¶Ü?!
§@ªÌ:
Hsieh
®É¶¡:
2011-8-28 23:06
Sub ex()
Dim A As Range
Set d = CreateObject("Scripting.Dictionary")
fs = ThisWorkbook.Path & "\123.xls"
With Workbooks.Open(fs)
With .Sheets(1)
For Each A In .Range(.[I2], .[I2].End(xlDown))
If IsEmpty(d(A.Value)) Then
d(A.Value) = Array(A.Offset(, 1).Value, 1)
Else
ar = d(A.Value)
ar(0) = ar(0) + A.Offset(, 1).Value
ar(1) = ar(1) + 1
d(A.Value) = ar
End If
Next
End With
.Close
End With
With ¤u§@ªí1
For i = 5 To .[B65536].End(xlUp).Row Step 2
Set A = .Cells(i, 2)
A.Offset(, 2).Resize(2, 1) = Application.Transpose(d(A.Value))
Next
End With
End Sub
½Æ»s¥N½X
¦^´_
3#
lulumi7434
§@ªÌ:
lulumi7434
®É¶¡:
2011-8-29 21:58
«Ü·PÁ¤j¤jªº¦^µª!!
¥i¬O¸I¤@Ó°ÝÃD¡AÁ`¼Æ©Mª÷ÃBÁ`©M§ì¨úªº¼Æ¦rµ²ªGÄAˤF?!
§@ªÌ:
Hsieh
®É¶¡:
2011-8-29 22:21
¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-8-29 23:19 ½s¿è
¦^´_
5#
lulumi7434
¥h¤F¸Ñµ{¦¡½X¡A´Nª¾¹D«ç»òקï¤F
¬Ý¬ÝþÃ䤣¤@¼Ë
Sub ex()
Dim A As Range
Set d = CreateObject("Scripting.Dictionary")
fs = ThisWorkbook.Path & "\123.xls"
With Workbooks.Open(fs)
With .Sheets(1)
For Each A In .Range(.[I2], .[I2].End(xlDown))
If IsEmpty(d(A.Value)) Then
d(A.Value) = Array(1, A.Offset(, 1).Value)
Else
ar = d(A.Value)
ar(0) = ar(0) + 1
ar(1) = ar(1) + A.Offset(, 1).Value
d(A.Value) = ar
End If
Next
End With
.Close
End With
With ¤u§@ªí1
For i = 5 To .[B65536].End(xlUp).Row Step 2
Set A = .Cells(i, 2)
A.Offset(, 2).Resize(2, 1) = Application.Transpose(d(A.Value))
Next
End With
End Sub
½Æ»s¥N½X
§@ªÌ:
lulumi7434
®É¶¡:
2011-8-29 23:23
·PÁ¤jô!!§Úª¾¹D¨ºùتº°ÝÃD¤F!!
·P¿E¤£ºÉ!! ^^
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)