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

[µo°Ý] ¨D§U

¦^´_ 10# yanto913
±ø¥ó»¡ªº¤£²M·¡,©êºp
¤@.¦¨«~¦pa,b¶µ,¦b²Ä¤E½X¦U¬°L,R(¨ä¾l§¡¬°¬Û¦P)µø¬°¬Û¦P,¥u»Ý¿ïa¶µ,¨ä¾l²Å¦X²Ä¤G¶µ§¡¿ï
¤T.¹s¥ó¦pf,g¶µ¦b¬°12½X¦U¬°L,R(¨ä¾l§¡¬°¬Û¦P)µø¬°¬Û¦P,¥u»Ý¿ïf¶µ¥Ø,¨ä¾l²Å¦X²Ä¥|¶µ§¡¿ï

TOP

§ï¦¨¤£µ¥©ó"R"

20130118.rar (85.68 KB)

YOYO

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-1-18 23:06 ½s¿è

¦^´_ 11# aa7551
³o¼Ë§PÂ_§A¬Ýµ²ªG²Å¤£²Å¦X
  1. Sub test()
  2. Dim ar, s, ss, d1, d2
  3. Set d1 = CreateObject("scripting.dictionary")
  4. Set d2 = CreateObject("scripting.dictionary")

  5. With Sheets(1)
  6.     ar = .Range(.[a2], .[a2].End(xlDown)).Value
  7.     For Each s In ar
  8.         '¦¨«~
  9.         If s Like "???-????L*" Then
  10.             d1.Item(s) = ""
  11.             ss = Left(s, 8) & "R" & Mid(s, 10)
  12.             If d1.exists(ss) Then d1.Remove (ss)
  13.         End If
  14.         If s Like "???-????R*" Then '«D¦¨¹ï«O¯d
  15.             If Not d1.exists(Left(s, 8) & "L" & Mid(s, 10)) Then d1.Item(s) = ""
  16.         End If
  17.         
  18.         '¹s¥ó
  19.         If s Like "??????-????L*" Then
  20.             d2.Item(s) = ""
  21.             ss = Left(s, 11) & "R" & Mid(s, 13)
  22.             If d2.exists(ss) Then d2.Remove (ss)
  23.         End If
  24.         If s Like "??????-????R*" Then '«D¦¨¹ï«O¯d
  25.             If Not d2.exists(Left(s, 11) & "L" & Mid(s, 13)) Then d2.Item(s) = ""
  26.         End If
  27.     Next
  28.     .[k2].Resize(d1.Count) = Application.Transpose(d1.keys)
  29.     .[n2].Resize(d2.Count) = Application.Transpose(d2.keys)
  30. End With
  31. Set d1 = Nothing: Set d2 = Nothing
  32. End Sub
½Æ»s¥N½X

TOP

¦^´_ 13# stillfish00
115-1926L-A
132-1905L-LD-U
211-1946L-A
211-1946L-A-S        ³o¨Ç¤£²Å¦X±ø¥ó,¦¨«~ªº²Ä¤­,¤»½X­nµ¥©ó11,17,20,25,37

TOP

¦^´_ 9# aa7551

³W«h¦pªG¯à½T©w¡A¥Î¶i¶¥¿z¿ï¤]¬O¤£¿ùªº¤èªk

    ¶i¶¥¿z¿ï.rar (131.14 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 12# yanto913
ÁÂÁ¤j¤jªº«ü±Ð,§Ú¥ý»¡©ú¦Û¤vªº¤â°Ê§@ªk,¥ý§âLR°t¹ï©ñ¦b¤@°_,½T»{¦³°t¹ï,¦AÀˬd¬O§_²Å¦X¦¨«~11,20©Î¹s¥ó11,17,20,25,37,¦p¦³²Å¦X,«h§R¥hR

TOP

¦^´_ 15# Hsieh
ÁÂÁ¤j¤j«ü±Ð,´£¨Ñ¤@­Ó·s¤è¦¡

TOP

µ§ªÌ§@·~¼Ò¦¡¬O³vµ§§R°£:
¤@.¦¨«~²Ä¤­,¤»½X¬O§_²Å¦X11,17,20,25,37,¦p¤£²Å¦X§Y§R°£,¦A±N²Ä¤E½X¬OL,R°t¹ï(¨ä¾l½X¬O¬Û¦PªÌ,¦p112-1104L-LD,112-1104R-LD)©ñ¦b¤@°_,°t¹ï¦¨¥\,§R¥hR(112-1104R-LD),¦pµL°t¹ï,«h«O¯d
¤G.¹s¥ó²Ä¤K,¤E½X¬O§_²Å¦X11,20,¦p¤£²Å¦X§Y§R°£,¦A±N²Ä¤Q¤G½X¬OL,R°t¹ï(¨ä¾l½X¬O¬Û¦PªÌ,¦p00#440-1126LEND,00#440-1126REND)©ñ¦b¤@°_,°t¹ï¦¨¥\,§R¥hR(00#440-1126REND),¦pµL°t¹ï,«h«O¯d

TOP

¦^´_ 18# aa7551
  1. Sub test()
  2. Dim ar, s5s6, s8s9, s, d1, d2
  3. Set d1 = CreateObject("scripting.dictionary")
  4. Set d2 = CreateObject("scripting.dictionary")

  5. With Sheets(1)
  6.     ar = .Range(.[a2], .[a2].End(xlDown)).Value
  7.     For Each s In ar
  8.         s5s6 = Mid(s, 5, 2)
  9.         If Mid(s, 4, 1) = "-" And (s5s6 = "11" Or s5s6 = "17" Or s5s6 = "20" Or s5s6 = "25" Or s5s6 = "37") Then d1.Item(s) = ""
  10.             
  11.         s8s9 = Mid(s, 8, 2)
  12.         If Mid(s, 7, 1) = "-" And (s8s9 = "11" Or s8s9 = "20") Then d2.Item(s) = ""
  13.     Next
  14.     For Each s In d1.keys
  15.         If Mid(s, 9, 1) = "R" And d1.exists(Left(s, 8) & "L" & Mid(s, 10)) Then
  16.             d1.Remove (s)
  17.         End If
  18.     Next
  19.     For Each s In d2.keys
  20.         If Mid(s, 12, 1) = "R" And d2.exists(Left(s, 11) & "L" & Mid(s, 13)) Then
  21.             d2.Remove (s)
  22.         End If
  23.     Next
  24.    
  25.     .[k2].Resize(d1.Count) = Application.Transpose(d1.keys)
  26.     .[n2].Resize(d2.Count) = Application.Transpose(d2.keys)
  27. End With
  28. Set d1 = Nothing: Set d2 = Nothing
  29. End Sub
½Æ»s¥N½X

TOP

¦^´_ 19# stillfish00
ÁÂÁ¤j¤j«ü±Ð,À³¬O¥¿½T¸Ñµª

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD