- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¥»©«³Ì«á¥Ñ yen956 ©ó 2016-3-19 15:58 ½s¿è
'1. ¥i¯à¬OÁ{®É Key in ªºÃö«Y, ÄæA¤£¬OExcelªº¤é´Á®æ¦¡,
Sub Âà´«¬°Excel¤é´Á®æ¦¡()
Dim I As Integer, Ar
For I = 2 To Range("A" & Rows.Count).End(xlUp).Row
Ar = Split(Cells(I, 1), ".")
x = Trim(Str(Val(Ar(0)) + 1911)) & "/" & Ar(1) & "/" & Ar(2)
Cells(I, 1) = Trim(Str(Val(Ar(0)) + 1911)) & "/" & Ar(1) & "/" & Ar(2)
Next
End Sub
'2. Y Ãþ§O ªø«×¤@¼Ë- Sub CountDist()
- Dim Rng As Range, I As Integer, s1 As String, E
- Set d = CreateObject("Scripting.Dictionary")
- [F5:Q5] = "": [F9:Q9] = ""
- Set Rng = Range([A2], "A" & Range("A" & Rows.Count).End(xlUp).Row)
-
- For Each E In Rng
- d(Str(Month(E.Value)) & E(1, 3).Value & E(1, 2)) = Month(E.Value)
- Next
-
- For I = 0 To d.Count - 1
- If Right(d.keys()(I), 1) = "A" Then 'Y Ãþ§O ¬° "A"(ªø«×¬°1)
- Cells(5, d.items()(I) + 5) = Cells(5, d.items()(I) + 5) + 1
- ElseIf Right(d.keys()(I), 1) = "B" Then 'Y Ãþ§O ¬° "B"(ªø«×¬°1)
- Cells(9, d.items()(I) + 5) = Cells(9, d.items()(I) + 5) + 1
- End If
- Next
- End Sub
- '3. Y Ãþ§O ªø«×¤£¤@
- Sub CountDist2()
- Dim Rng As Range, I As Integer, s1 As String, E
- Set d = CreateObject("Scripting.Dictionary")
- [F5:Q5] = "": [F9:Q9] = ""
- Set Rng = Range([A2], "A" & Range("A" & Rows.Count).End(xlUp).Row)
-
- For Each E In Rng
- '»²§UÄæ(ÄæS), ±N Ãþ§O ¥ªÃä¥Î # ¦r¤¸¸É¨¬¬°10Ó¦r¤¸
- E(1, 19) = "=right(""#########""&RC[-17],10)"
- d(Str(Month(E.Value)) & E(1, 3).Value & E(1, 19)) = Month(E.Value)
- Next
-
- For I = 0 To d.Count - 1
- If Right(d.keys()(I), 3) = "Axx" Then 'Y Ãþ§O ¬° "Axx"(ªø«×¬°3)
- Cells(5, d.items()(I) + 5) = Cells(5, d.items()(I) + 5) + 1
- ElseIf Right(d.keys()(I), 2) = "Bx" Then 'Y Ãþ§O ¬° "Bx"(ªø«×¬°2)
- Cells(9, d.items()(I) + 5) = Cells(9, d.items()(I) + 5) + 1
- End If
- Next
- End Sub
½Æ»s¥N½X
|
|