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

[µo°Ý] ½Ð°Ý¤@¤U¦p¦óÂ^¨úA1Àx¦s®æ¤¤¬A¸¹¤ºªº¼Æ­È,¨Ã±N¤§Åã¥Ü¦bB1Àx¦s®æ©O?

¦^´_ 16# Hsieh


HSIEN¤j¤j§Ú¸Õ¹L¤FÁÂÁ±z!!ÁÂÁÂ!

¥u¬OVBA§¹¥þ¤£¼ô,ÁÙÆZ·Q·d²M·¡¨ÓÀs¥h¯ßªº~@@

¬O­n¦hªáÂI®É¶¡¬ãŪ¤F

TOP

¦^´_ 15# happycoccolin

¼Ò½k¤ñ¹ïµLªk¹F¦¨¨º´N¥Î¦Û©w¸q¨ç¼Æ¸Õ¸Õ

   
  1. Function Dictionary(key As Range, item As Range, crt As String)
  2. Set d = CreateObject("Scripting.Dictionary")
  3. For i = 1 To key.Count
  4.   For Each a In Split(key(i), ",")
  5.     d(CStr(a)) = item(i).Value
  6.   Next
  7. Next
  8. Dictionary = d(CStr(crt))
  9. End Function
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# Hsieh


Hsieh ¤j¤j½Ð±Ð¤@¤U~
¥Ø«e§Ú¨Ï¥Î¤W¹J¨ì¤@­Ó°ÝÃD,§Q¥ÎBÄæ¨Ó°µ¤ñ¹ï,¦ý¬O­Y¤ñ¹ï¨ì¨Ò¦p¦r¤¸¬°:IR10000 & R10000,·|¥X²{²V²cªº²{¶H~¥u·|§ì¨ìIR10000ªº­È,½Ð°Ý­n«ç»ò§ï©O?ÁÂÁÂ!!

Sheet1
A                                       B                   C
09-87654321        IR10000        12-34567890        
09-87654322        R10000          12-34567890 (À³¸Ó­n§ì¨ì12-34567891)        
09-87654323        D1               

Sheet2
A                                       B
12-34567890        R10000,R10001
12-34567891        IR10000
12-34567892        C2,D3

TOP

·PÁÂHsiehª©¤jªº«ü¾É
¤p§Ìªº¨ç¼Æ¹B¥ÎÁÙ¦b°_¨B¾Ç²ß¶¥¬q¡A¬Û¦P¨ç¼Æ¦h­n°Ñ¦Ò¦hºØ¬Û¦ü¹B¥Î¨ÓºCºC¸ÑªR
·|ºCºC§ï¶i¾Ç²ßºA«×¡F·P¿EHsiehª©¤j¤£§[«ü±Ð

TOP

¦^´_ 12# jackson7015
³oºØÃþ¦ü°ÝÃD¡A¨ä¹ê³£¥i¥H¦Û¤v«ä¦Ò¡A§A·|µo²{³o­Ó°ÝÃD¤¤©Ò¥Îªº¨ç¼Æ¤£´N¬OMID¨ç¼Æ¤¤¡AÂ^¨úªø«×ªºÅܤÆ
³Ìªìªº§Þ¥©¥u¦³SUBSTITUTE¨Ó±N³Ì«á¤@­Ó¤À¹j²Å¸¹¥Î¯S©w¦r¤¸¨ú¥N¡A±o¥H§PÂ_©Ò»ÝÂ^¨úªº¤ù¬q
±µ¤U¨ÓªºÅܧ㣬OMID©ÎLEFT©ÎRIGHT¨ÓÂ^¨ú³¡¤À¦r¦ê
À³¸Ó¹ý©³¤F¸Ñ¾ã­Ó¤½¦¡ªº·N¸q¤~¯à¥[¥H¹B¥Î¡C
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

©êºp¡A¤@ª½³Â·ÐHsieh ª©¤j
¦]¬°·Q­n¤F¸Ñ¡A³oºØÃþ¦ü°ÝÃDªº¬ÛÃö¤£¦P±Æ¦CÂ^¨ú¡A©Ò¥H¤~°Ý¤F¬Û¦üªº°ÝÃD
¥Ø«e¤TºØ³£¥i¥¿±`°õ¦æ¹B¥Î
·PÁÂHsieh ª©¤jªº¼ö¤ßÀ°¦£

TOP

¦^´_ 10# jackson7015

¦n¹³¬O¦b¦Ò¸Õ­ò
=LEFT(MID(SUBSTITUTE(A1,"-",";",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))),FIND(";",SUBSTITUTE(A1,"-",";",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))))+1,255),LEN(A1)-(FIND(";",SUBSTITUTE(A1,"-",";",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))))+1))
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 9# Hsieh

·PÁÂHsiehªO¤j
¨ç¦¡¥i¥¿±`¹B§@¡F
­Y­n§ï¦¨Åã¥ÜABC-DEF-ABCDEF¡A«á­±¬õ¦â¦rÅ鳡¤À¡F³Ì«áªº¤@­Ó¦ì¤¸(©Î¦rÅé)¤£Â^¨ú
¤½¦¡­nÅܧó­þ­Ó¦a¤è©O?

TOP

¦^´_ 8# jackson7015


    =MID(SUBSTITUTE(A1,"-",";",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))),FIND(";",SUBSTITUTE(A1,"-",";",LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))))+1,255)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

ÂǦ¹¥DÃD°ÝÃD
­Y¬O±N°ÝÃD¤@ªº¤å¦rÂ^¨ú¡AÅܧ󬰥uÂ^¨úABC-DEF-ABCDEF«á­±-¸¹¬õ¦â¦rÅ骺³¡¤À
½Ð°Ý¨ç¼Æ­n¦p¦ó§ó¥¿
®M¥ÎHsiehª©¤jªº¤½¦¡«á¡A·|¥X²{ABCDEªºÂ^¨ú¸ê®Æ

°ÝÃD¤¤ªº-¸¹¡A·|¤£©w¼Æ¶q2~3­Ó¡A¦ý³£¬O¥u»Ý­nÂ^¨ú³Ì«á-¸¹ªº«á­±ªºABCDEF³¡¤À¦Ó¤w

TOP

        ÀR«ä¦Û¦b : ¡i°±º¢¤£«e¡A²×µL©Ò±o¡j¤H³£°g©ó´M§ä©_ÂÝ¡A¦]¦Ó°±º¢¤£«e¡FÁa¨Ï®É¶¡¦A¦h¡B¸ô¦Aªø¡A¤]¤FµL¥Î³B¡A²×µL©Ò±o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD