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

[µo°Ý] ¦p¦ó¥Hvba½s¼gµ{¦¡±NAÄ椣¶¶§Ç¨Ã­«ÂЪº¸ê®Æ¦U©â¤@­Ó¥X¨Ó¶¶§Ç¦s©ñ©óBÄæ

[µo°Ý] ¦p¦ó¥Hvba½s¼gµ{¦¡±NAÄ椣¶¶§Ç¨Ã­«ÂЪº¸ê®Æ¦U©â¤@­Ó¥X¨Ó¶¶§Ç¦s©ñ©óBÄæ

¦³¤@¤j°ï(¼Æ¥H¤d¶µ)­«ÂÐÂø¶Ã¤Î¤£¶¶§Çªº¸ê®Æ¦s©ñ©óAÄæ¡A§Ú­n¦p¦ó§Q¥ÎVBA¦bAÄ椤¦U©â¨ú¤@­Ó³æ¤@ªº¸ê®Æ¨Ã¶¶§Ç±Æ¦C©óBÄ椤¡H

¸ê®Æ                              µ²ªG
HK01150923-3        HK01150923-1
HK01150923-3        HK01150923-2
HK01150923-1        HK01150923-3
HK01150924-1        HK01150924-1
HK01150923-2        HK01150924-2
HK02150923-2        HK02150923-2
HK02150923-3        HK02150923-3
HK01150923-1        HK02150925-1
HK01150923-1        HK02150925-2
HK01150923-1        HK02150925-3
HK01150923-2       
HK01150923-2       
HK01150924-2       
HK01150924-1       
HK02150925-2       
HK02150923-3       
HK01150924-1       
HK01150923-2       
HK01150924-1       
HK02150925-1       
HK02150925-3       
HK01150923-3       
HK02150925-3       
HK02150925-2

http://blog.xuite.net/hcm19522/twblog/346607668
¨ç¼Æ °Ñ¦Ò§Y¥i

TOP

¦hÁ­㴣¤j¤j«üÂI¡C
§Ú²{¥Îªºª©¥»µ{¦¡³£¬O±N¸ê®Æ©ñ¦b¥t¤@¤u§@¯È¤W, ¦Acopy and paste¦^¸ê®Æ¤u§@¯È¤¤ªº¥¿½T¦ì¸m¡C
©Ò´£ªºµ{¦¡¸g§ï°Ê¤@¤U¡A©ñ¤J¥»¤H²{¥Îªºµ{¦¡¤¤¡A¤v¥i°µ¨ì¤@®ð¨þ¦¨ªº¥\¯à¡A¬ÙÓý¤F­É§U¥ý©ñ¨ì¥t¤@¤u§@¯È¤¤¦Acopy and paste¦^¥hªº¤u§Ç¡C
¦hÁ«üÂI¡C

TOP

¨ú¥X¤£­«Âаߤ@­È¨Ã±Æ§Ç¡A³o¬O°ò¥»»yªk¡A½×¾Â§ä¤@¤U¦³«Ü¦h¬ÛÃö¸ê®Æ¡A
¦]¬O°ò¥»»yªk¡A¤£·Q¦A¤@ª½­«ÂЧ@»¡©ú¡AÀx¦s®æ°Ñ·Ó¤Î¸ê®Æ©Ò¦bÄæ¦ì¡A½Ð¦Û¦æ¨Ì¹ê»Ú­×§ï¡I
  1. Sub TEST()
  2. Dim Arr, AA, xD, N&
  3. Set xD = CreateObject("Scripting.Dictionary")
  4. For Each AA In Range([Sheet1!A1], [Sheet1!A65536].End(xlUp)).Value
  5. ¡@¡@If Mid(AA, 3, 10) Like "########-#" Then xD(AA) = ""
  6. Next
  7. ¡@
  8. N = xD.Count:¡@¡@If N = 0 Then Exit Sub
  9. [Sheet2!A:A].ClearContents
  10. With [Sheet2!A1].Resize(N)
  11. ¡@¡@.Value = Application.Transpose(xD.keys)
  12. ¡@¡@.Sort Key1:=.Item(1), Order1:=xlAscending, Header:=xlNo
  13. End With
  14. End Sub
½Æ»s¥N½X

TOP

§Ú©Ò´£¥XªºA Äæ©MB Äæ¥u¬O¤è«K´£°Ý¡A¦ý¹ê»Ú¤W¯u¥¿¹B§@ªºÀɮ׬ÛÃö¸ê®Æ¤£¬O¦bA Äæ¡AA Äæ«eÁÙ¦³«Ü¦h¸ê®Æ¡C
A Ä檺¸ê®Æ¬O¤£¥i删°£ªº¡C¤£µMªº¸Ü·|¼vÅT«á³vªº¸ê®Æ©â¨ú¡C
¥u¯à±NA Ä檺¸ê®Æ´£¨ú¦s©óB Äæ«Ý¥Î¡C

TOP

¥»©«³Ì«á¥Ñ koo ©ó 2015-9-29 18:11 ½s¿è

¤pªº¥u·|ªì²Lªº¼gªk
½Æ»s¨ìBÄæ«á­pºâ¶W¹L1­Ó´N¬å±¼
³Ì«á½Ð°µBÄæ±Æ§Ç´N¥i¥H
  1. Sub test()
  2. Columns("A:A").Copy Cells(1, 2)
  3.     For i = [B65536].End(xlUp).Row To 1 Step -1
  4.         Rx = Application.CountIf([B:B], Range("B" & i))
  5.         If Rx > 1 Then Cells(i, 2).Delete Shift:=xlUp
  6.     Next
  7. End Sub
½Æ»s¥N½X

TOP

·sª©´N¨Ï¥Î"¸ê®Æ--²¾°£­«½Æ"µM«á°w¹ï¸ÓÄæ°µ±Æ§Ç´N¥i¥H
¦bBÄæ³£¿é¤J1µM«á¥Î¦X¨Ö·Jºâ¥\¯à¤]¥i¥H¿ì¨ì
´¡¤J¼Ï¯Ã¤ÀªRªí¤]¥i¥H¾ã²z

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD