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

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

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

§Ú·Q¼g¤@²Õ¤½¦¡®Ö¹ï¨â­ÓÀx¦s®æªº¸ê®Æ, ¨Ò¦p:

                    A                                                    B
1                 ²Õ1                                                ²Õ2
2     GREEN SHIRT, 100¥ó            STYLE# 12-TB-1028, 100¥ó

§Ú¬O·Q®Ö¹ï A2 ©M B2 Àx¦s®æ¤ºªº¦r¦P¼Ë¦³100PCS,
¦]¸ê®Æ¬O«Ü¤j¶q©M¬O±q³n¥ó汇¥Xªº, ©Ò¥H«Ü¤£¤è«K§â"¥ó"ªº¼Æ¥Ø¤À¶}¨ì¥t¤@Àx¦s®æ.

§Æ±æ¦U¦ì°ª¤âÀ°¦£¤@¤U,
THANKS. ^^

ÁÂÁ½׾Â,ÁÂÁ¦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

¦^´_ 23# FAlonso


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

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

¦^´_ 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

¥»©«³Ì«á¥Ñ 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

Thanks a lot !

TOP

¦^´_ 17# seci

©w¸q¦WºÙx
=LEN(Sheet1!$A2)-LEN(SUBSTITUTE(Sheet1!$A2,",",""))-2
C2°}¦C¤½¦¡
{="B"&MIN(IF(ISNUMBER(FIND(MID(A2,FIND(",",SUBSTITUTE(A2,",","",x))+3,255),$B$2:$B$4)),ROW($A$2:$A$4),""))}
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

§A­nªº¬O²Ä¤G­Ó³r¸¹¬°¤ÀÂ_ÂI,¤£¬O³Ì«á¤@­Ó,§ï¤@¤UÁª©¥Dªº¤½¦¡
Y=LARGE(IF(MID(Sheet1!$A2,ROW(INDIRECT("A1:A"&LEN(Sheet1!$A2))),1)=",",ROW(INDIRECT("A1:A"&LEN(Sheet1!$A2))),""),2)
´N¬O¤F

TOP

Mr. Hsieh
ªþ¥ó¬O§Ú¹ê»Ú¤u§@­n¤ñ¹ïªº¸ê®Æ,
¦p¹Ï¥Ü :
§Ú­n¤ñ¹ï¨C®æ¤º³Ì«á¨â²Õ¸ê®Æ, ¸ê®Æ»Ý­n§¹¥þ¤@¼Ë.

Thank you very much~!

¥¼©R.jpg (56.04 KB)

¥¼©R.jpg

DATA1.rar (1.88 KB)

TOP

        ÀR«ä¦Û¦b : ¤£­n¤p¬Ý¦Û¤v¡A¦]¬°¤H¦³µL­­ªº¥i¯à¡C
ªð¦^¦Cªí ¤W¤@¥DÃD