ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] Â^¨ú³øªí¤¤©Ò»Ý¸ê®Æ

¦^´_ 12# asus103
  1. Sub Ex()
  2. Dim A As Range, Ar(), C, d As Object, d1 As Object, d2 As Object, r&, MyClass$, Ky, s%, i%
  3. Set d = CreateObject("Scripting.Dictionary")
  4. Set d1 = CreateObject("Scripting.Dictionary")
  5. Set d2 = CreateObject("Scripting.Dictionary")
  6. With Sheets("Sheet1")
  7.   For Each A In .Range(.[B1], .Cells(.Cells.Rows.Count, 2).End(xlUp))
  8.      If A Like "*¯Z" Then MyClass = A.Value
  9.      If Replace(A.Value, "¡@", "") = "¾Ç¸¹" Then Ar = .Range(A, A.End(xlToRight)).Value
  10.      If Val(A.Value) <> 0 And InStr(A, "-") = 0 Then
  11.        s = 0
  12.        For Each C In Ar
  13.         If C <> "" Then d1(C) = ""
  14.          If C = "©m¦W" Then d1("¯Z¯Å") = "": d(A & "¯Z¯Å") = Replace(Replace(Replace(Replace(Replace(Replace(MyClass, "°ª", ""), "¦~", ""), "¯Z", ""), "¤T", 3), "¤G", 2), "¤@", 1)
  15.          d2(A.Value) = ""
  16.          d(A & C) = IIf(s > 5, "", "'") & A.Offset(, s).Text
  17.          s = s + 1
  18.        Next
  19.     End If
  20.   Next
  21. End With
  22. With Sheets("Sheet4")
  23. .Cells = ""
  24. r = 2
  25. .[A1].Resize(, d1.Count) = d1.KEYS
  26. For Each Ky In d2.KEYS
  27.    For i = 1 To d1.Count
  28.       .Cells(r, i) = IIf(d(Ky & .Cells(1, i)) = "", -1, d(Ky & .Cells(1, i)))
  29.    Next
  30. r = r + 1
  31. Next
  32. End With
  33. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ asus103 ©ó 2010-12-30 14:27 ½s¿è

¦^´_ 11# Hsieh
¹ï¤£°_
¬O§Ú¨S¦³»¡²M·¡
¬O¯Z¯Å¦WºÙ¡A¦p¤T¦~¤G¯Z§ï¬°302....

ÁÙ¦³¥t¥~¤@­Ó¤p°ÝÃD
­ì©l¸ê®Æ¤¤­Y¬O"©m  ¦W"¤£¬O"©m¦W"(¦pB7¤¤¬O"©m  ¦W"®É¡A(¤¤¶¡¦³ªÅ¥Õ))
®ö¶O±z³\¦hÄ_¶Qªº®É¶¡¡A
¥u¯à¦b¤@¦¸¸ò±z»¡·PÁÂ
ÁÂÁ±z
ASUS

TOP

¦^´_ 10# asus103
µ{¦¡´£¨úªº¾Ç¸¹¤w¸g¬O¼Æ¦r¤F
  1. Sub Ex()
  2. Dim A As Range, Ar(), C, d As Object, d1 As Object, d2 As Object, r&, MyClass$, Ky, s%, i%
  3. Set d = CreateObject("Scripting.Dictionary")
  4. Set d1 = CreateObject("Scripting.Dictionary")
  5. Set d2 = CreateObject("Scripting.Dictionary")
  6. With Sheets("Sheet1")
  7.   For Each A In .Range(.[B1], .Cells(.Cells.Rows.Count, 2).End(xlUp))
  8.      If A Like "*¯Z" Then MyClass = A.Value
  9.      If Replace(A.Value, "¡@", "") = "¾Ç¸¹" Then Ar = .Range(A, A.End(xlToRight)).Value
  10.      If Val(A.Value) <> 0 And InStr(A, "-") = 0 Then
  11.        s = 0
  12.        For Each C In Ar
  13.         If C <> "" Then d1(C) = ""
  14.          If C = "©m¦W" Then d1("¯Z¯Å") = "": d(A & "¯Z¯Å") = MyClass
  15.          d2(A.Value) = ""
  16.          d(A & C) = A.Offset(, s).Value
  17.          s = s + 1
  18.        Next
  19.     End If
  20.   Next
  21. End With
  22. With Sheets("Sheet4")
  23. .Cells = ""
  24. r = 2
  25. .[A1].Resize(, d1.Count) = d1.KEYS
  26. For Each Ky In d2.KEYS
  27.    For i = 1 To d1.Count
  28.       .Cells(r, i) = IIf(d(Ky & .Cells(1, i)) = "", -1, d(Ky & .Cells(1, i)))
  29.    Next
  30. r = r + 1
  31. Next
  32. End With
  33. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 8# Hsieh
Hsieh¤j¤j±z¦n
°J¤ß·PÁ±zªºÀ°§U

©|¦³2­Ó¤p°ÝÃD½Ð±Ð¡G
1.­Y¬O§â¯Z¯ÅÄæ§ï¬°¯Â¼Æ¦r¡A¬O§_¬O¤â°Ê§Y¥i
2.­Y·Q¦b¥¼¿ï­×ªº¦ì¸m¤W¶ñ¤W"-1"¡A¨ºÀ³¸Ó¦b­þ¤@¦æ¥[¤W¨Ç¬Æ»ò?
ÁÂÁÂ
ASUS

TOP

¥»©«³Ì«á¥Ñ asus103 ©ó 2010-12-30 12:06 ½s¿è

°J¤ß·PÁ¨â¦ìª©¥Dªº¹©¤O¨ó§U
§Ú­ì¥H¬°®£©È»Ý­n«Üªøªºµ{¦¡½X¤~¯à¸Ñ¨Mªº
¨â¦ìª©¥D¤ÆÁc¬°Â²ªº¥\¤O¯u¥O§Ú¨ØªA¡A¦Ó¥B¬O¦b³o»òµuªº®É¶¡¤º
·P¿Eªü!!
§Ú¥ý¨Ï¥Î¤F¡A¤§«á§Ú·|§V¤O¬ÝÀ´¨Ã¾Ç²ßªº

©|¦³2­Ó¤p°ÝÃD½Ð±Ð¡G
1.­Y¬O§â¯Z¯ÅÄæ§ï¬°¯Â¼Æ¦r¡A¬O§_¬O¤â°Ê§Y¥i
2.­Y·Q¦b¥¼¿ï­×ªº¦ì¸m¤W¶ñ¤W"-1"¡A¨ºÀ³¸Ó¦b­þ¤@¦æ¥[¤W¨Ç¬Æ»ò?
ÁÂÁÂ
ASUS

TOP

¦^´_ 3# asus103
  1. Sub Ex()
  2. Dim A As Range, Ar(), C, d As Object, d1 As Object, d2 As Object, r&, MyClass$, Ky, s%, i%
  3. Set d = CreateObject("Scripting.Dictionary")
  4. Set d1 = CreateObject("Scripting.Dictionary")
  5. Set d2 = CreateObject("Scripting.Dictionary")
  6. With Sheets("Sheet1")
  7.   For Each A In .Range(.[B1], .Cells(.Cells.Rows.Count, 2).End(xlUp))
  8.      If A Like "*¯Z" Then MyClass = A.Value
  9.      If Replace(A.Value, "¡@", "") = "¾Ç¸¹" Then Ar = .Range(A, A.End(xlToRight)).Value
  10.      If Val(A.Value) <> 0 And InStr(A, "-") = 0 Then
  11.        s = 0
  12.        For Each C In Ar
  13.         If C <> "" Then d1(C) = ""
  14.          If C = "©m¦W" Then d1("¯Z¯Å") = "": d(A & "¯Z¯Å") = MyClass
  15.          d2(A.Value) = ""
  16.          d(A & C) = A.Offset(, s).Value
  17.          s = s + 1
  18.        Next
  19.     End If
  20.   Next
  21. End With
  22. With Sheets("Sheet4")
  23. .Cells = ""
  24. r = 2
  25. .[A1].Resize(, d1.Count) = d1.KEYS
  26. For Each Ky In d2.KEYS
  27.    For i = 1 To d1.Count
  28.       .Cells(r, i) = d(Ky & .Cells(1, i))
  29.    Next
  30. r = r + 1
  31. Next
  32. End With
  33. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# asus103
¦p¹Ï ¥u­n¸ê®ÆªºBÄæ ¤º [¯Z¯Å] ¦b [¾Ç¸¹] ªº¤W2¦C  µ{¦¡À³¥iÀ³¥Iªº

TOP

¦^´_ 5# GBKEE


GBKEE±z¦n
­ì¨ÓªºÀɮפ¤¡A§Y¦³¦¨ÁZªº³¡¤À
¥u¬O¦U¯Z(¦p5¯Z¥H«á)¿ï­×¬ì¥Ø¨Ã¤£¬Û¦P¡A
©Ò¥H§ÚµLªk¦Û°Ê§P§O¨ú¥X

¥t¡A§ÚªºÅv­­µLªk¬Ý¨ì§Ú¦Û¤vªºªþÀÉ
­YÀɮצ³°ÝÃD·Ð½Ð¦A§iª¾
ÁÂÁÂ!!!
ASUS

TOP

¦^´_ 4# asus103
ªþÀɤW¨Ó¬Ý¬Ý

TOP

¦^´_ 2# GBKEE
¦A¤@¦¸·PÁ±z
²{¦b°ò¥»¸ê®Æ¶i¨Ó¤F
¥u¬O¦Û¤vµ{«×ÁÙ¤£°÷¡A©|µLªk§¹¥þ¬ÝÀ´¡A§Ú·|¦A¥[ªo¬ÝÀ´¥¦

¨º¦¨ÁZ³¡¤À§Ú­Y¬O¥Îvlookup³B²z·|¹J¨ì¨â­Ó°ÝÃD
1.­ì¸ê®Æ¨Ã«D§¹¾ã°Ï¶ô¡A¤¤¶¡¦³³\¦hªÅ¥Õ
2.¦U¯Z¤Î¬ì¥Ø¦ì¸m¨Ã¤£¬Û¦P
½Ð°Ý¦³¤èªk§â¦¨ÁZÂಾ¹L¨Ó¶Ü?
ÁÂÁÂ
ASUS

TOP

        ÀR«ä¦Û¦b : ¦¨¥\¬OÀuÂIªºµo´§¡A¥¢±Ñ¬O¯ÊÂIªº²Ö¿n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD