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

[µo°Ý] ®Ö¹ï¨â­ÓÀx¦s®æªº¸ê®Æ

¥»©«³Ì«á¥Ñ FAlonso ©ó 2011-3-15 18:52 ½s¿è

¦^´_ 11# gong

¨ÌµÛgongªºµ{¦¡¤@¨B¤@¨B¨«
¥i¬O¨ì¤FD11²zÀ³¦³¼Æ¦r,«çª¾¨S¦³,¤£ª¾°ÝÃD¥X¥ª¦ó³B?
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 21# FAlonso

°}¦C¤½¦¡ªº«ä¦ÒÅÞ¿è¡A¬O¶Ç¦^¤@­Ó§Ç¦Cªº¸ê®Æ¶°
FIND¨ç¼Æ¦bBÄæ¸ê®Æ¦ê¦C¤¤´M§ä
¥L¶Ç¦^ªº¬O
FIND(·j´M¦r¦ê,B2)
FIND(·j´M¦r¦ê,B3)
FIND(·j´M¦r¦ê,B4)
FIND(·j´M¦r¦ê,B5)
.
.
.
³o¼Ë¤@³s¦êªº­È
³o¼Ë¦bÀx¦s®æ¤ºÅã¥Üªº­È¡A·|¬O¸Ó¤@³s¦êªº­Èªº²Ä¤@­Ó­È
¦ý¹ê»Ú¤WFIND¬O¹ï¤@­Ó¦r¦ê°µ·j´M¡A©Ò¥H¡A¥u°w¹ï²Ä¤@­ÓÀx¦s®æ¦r¦ê°µ·j´M
¥²¶·§Q¥ÎIF¤ÎISNUMBER¤~¯à¶Ç¦^¤@­ÓTRUE¸òFALSEªº°}¦C
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 10# freeffly
¬Ý¬Ý§ÚªºªþÀÉ,¦³¸Ô²Ó¸ÑÄÀ
¥t¼Ó¥D»¡¹J¨ìB0°ÝÃD,­nª`·N¦pªG¤£¥Îctrl+alt+Enter,¬O·|µ¹¦^0ªº¼Æ­È,°Ñ¦ÒªþÀÉC31,¤£¥Î½Æ¦XÁä¸Õ¸Õ¬Ý
®Ö¹ï¸ê®Æ.rar (2.46 KB)
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 23# FAlonso


    ÁÂÁÂ
      §Ú·|¦n¦n¬ãŪ
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ß°}¦C»P¦r¨å,®}®§¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð

°õ¦æ«e:


°õ¦æµ²ªG:



Option Explicit
Sub TEST() '¡ô
Dim Brr, Y, i&, T$, X&
'¡ô«Å§iÅܼÆ
Set Y = CreateObject("Scripting.Dictionary")
'¡ô¥OYÅܼƬO ¦r¨å
Brr = [A1].CurrentRegion
'¡ô¥OBrrÅܼƬO ¤Gºû°}¦C,¥HÀx¦s®æ­È±a¤J°}¦C¤¤
For i = 2 To UBound(Brr)
'¡ô³]¶¶°j°é
   T = Brr(i, 2)
   '¡ô¥OTÅܼƬOBrr°}¦C²Ä2Ä檺¦r¦ê­È
   If Right(T, 4) Like "#PCS" Then
   '¡ô¦pªGTÅܼƪº¥k°¼4¦r²Å¦X±ø¥ó?
      X = StrReverse(Val("1" & Mid(StrReverse(T), 4))) \ 10
      '¡ô¥OXÅܼƬO ±NTÅܼƤÏÂà¤Æ¬°¼Æ­È¦A¤ÏÂà¦^¨Óªº¼Æ­È
      Y(X) = "B" & i
      '¡ô¥O¥HXÅܼƷíkey,item¬O "B"¦r¥À±µiÅܼÆ,¯Ç¤JY¦r¨å¸Ì
   End If
Next
For i = 2 To UBound(Brr)
'¡ô³]¶¶°j°é
   T = Brr(i, 1)
   '¡ô¥OTÅܼƬOBrr°}¦C²Ä1Ä檺¦r¦ê­È
   If Right(T, 4) Like "#PCS" Then
   '¡ô¦pªGTÅܼƪº¥k°¼4¦r²Å¦X±ø¥ó?
      X = StrReverse(Val("1" & Mid(StrReverse(T), 4))) \ 10
      '¡ô¥OXÅܼƬO ±NTÅܼƤÏÂà¤Æ¬°¼Æ­È¦A¤ÏÂà¦^¨Óªº¼Æ­È
      Brr(i - 1, 1) = "PCS¼Æ¦P_" & Y(X)
      '¡ô¥OBrr°}¦C²Ä1Äæ­È¬O ¥HXÅܼƬdY¦r¨å±o¨ìitem­È
      Else
      Brr(i - 1, 1) = "µL"
      '¡ô§_«h¥OBrr°}¦C²Ä1Äæ­È¬O "µL"
   End If
Next
[C2].Resize(UBound(Brr) - 1, 1) = Brr
'¡ô¥OBrr°}¦C²Ä1Äæ­È±q[C2]Àx¦s®æ¶}©l­Ë¤J
Set Y = Nothing: Erase Brr
'¡ô¥OÄÀ©ñÅܼÆ
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ¥Ç¿ù¥XÄb®¬¤ß¡A¤~¯à²M²bµL·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD