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

½Ð±Ðmid¡Bmidb¡Blen¡Blenb°ÝÃD

¦^´_ 10# lionliu


¤£­n¥Î MIDB¡A¥ý¥H¤u§@ªí¤½¦¡°Ñ¦Ò¥H¤U¡G
¢Ï¢°¡Gasxing¤¤¤@¤M
¢Ð¢°¡G=LEFT(A1,LEN(A1)*2-LENB(A1))¡@¨ú«e¬q¥b«¬¦r
¢Ñ¢°¡G=RIGHT(A1,LENB(A1)-LEN(A1))¡@¨ú«á¬q¥þ«¬¦r
¡@¡@¡@©Î¡@=MID(A1,LEN(A1)*2-LENB(A1)+1,99)

¦pªG¤å¦r¦ê¤£¬O³æ¯Âªº¨â¬q¦¡¡A¤èªk´N½ÆÂø¦h¤F¡A­n¬Ý¹ê»Ú¸ê®Æ¤Î»Ý¨D¦p¦ó¡H

TOP

¦^´_ 10# lionliu

§â­ã¤jªº¤½¦¡§ï¬°¦Û­q¨ç¼Æ
Function xMidB(ByVal str As String, start, length)
    xMidB = Evaluate("MidB(""" & str & """," & start & ", " & length & ")")
End Function

Function xLenB(ByVal str As String)
    xLenB = Evaluate("LenB(""" & str & """)")
End Function
   

¦A¨Ó´N¬O¨ú¥Îªº¸ê®Æ³W«h
¨C20­Ó¦r¨ú¤@¬q¡A­Y¤¤¤å¦r¦b²Ä20­Ó¦r¦ì¸m¡A¥ÎEvaluate¨Ó¨Ï¥Îªí¨ç¼Æ®É·|¦Û°Ê¨ú¬°21­Ó¦r¤¸¡A«O«ù¤¤¤å¦rªº§¹¾ã©Ê¡C¦ý¤U¤@¬q¬O­n¨ú20­Ó¦r©Î19­Ó¦r­n¥ý©w¸q²M·¡¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 12# ML089
¦^´_ 12# ­ã´£³¡ªL
ÁÂÁÂ2¬°ª©¤j«ü¾É
§Ú²{¦b²×©óª¾¹D°ÝÃD©Ò¦b¤F¡A§Ú¦A§V¤O¸Õ¸Õ¬Ý¥i§_§PÂ_¨C¦¸¨ú¥X¦r¦êªø«×¡C
§Úªº­ì©l¸ê®ÆµLªk¥¿½T´£¨Ñ¡A¦]¬°¤£½T©w©Ê¦³­^¼Æ¡BªÅ¥Õ¡B¤¤¤å«Ü¶Ãªøµu¤£¤@¡A³Ì¦h¥i¥H¨ì200bye¥H¤W¡C
¦b³oÁÙ¬OÁÂÁÂ2¦ì¼ö¤ßªº±Ð¾É¡C
lionliu

TOP

¦^´_ 13# lionliu


¥H =MIDB("Ya Xing 123456789¤¤¤@¤M",1,20) ¬°¨Ò,
¨ú¥X¦r¦ê¬° "Ya Xing 123456789¤¤ " , "¤@" ­è¦n¦b 20,21 ¦ì¸m, ³QºIÂ_¥u¨ú¤@¥b, ©Ò¥H¦r¦ê«á­±¦h¤F¤@­Ó[ªÅ¥Õ¦r¤¸],
ÁöµM¥i¥Î TRIM ¥h°£ªÅ¥Õ¦r¤¸, ¦ý­Y¹J¨ì¨ú¥X¦r¦êªº«e«áªÅ¥Õ¬O­ì¦r¦ê©Ò¦³, ¦¹®É TRIM ·|Åýµ²ªG¥¢¯u,
¦]¦¹¥H¤Wªº LENB, MIDB ³£µLªk¥¿½T¨ú¥Xµ²ªG!

©Î³\Á|¥X¤@­Ó¸ûªø¦r¦ê¹ê¨Ò, ¨Ã¤â°Ê±N»Ý¨Dµ²ªG¦C¥X, ¦A¨Ó·Q¿ìªk!!!

TOP

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2016-1-20 22:50 ½s¿è

µ¹­Ó°Ñ¦Ò¤èªk¡ã¡ã¡ã

¢Ï¢°©ñ¢´¢¯¢±­Ó¦r¤¸¤å¦r¦ê·í´ú¸Õ¡A
¡@
Sub ºI¨ú¦r¦ê()
Dim Arr
Arr = SPT_Str([A1], 20)
Arr = Split(Arr, Chr(10))
[H4].Resize(UBound(Arr) + 1) = Application.Transpose(Arr)
End Sub
¡@
'¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×
Function SPT_Str(xString$, xLength%)
Dim T$, TT$, TTT$, LN&
TT = xString
Do
¡@¡@T = Evaluate("MIDB(""" & Left(TT, 240) & """,1," & xLength & ")")
¡@¡@LN = Len(T)
¡@¡@If Right(T, 1) = " " And Mid(TT, LN) <> " " Then LN = LN - 1
¡@¡@TTT = TTT & Chr(10) & Left(TT, LN)
¡@¡@TT = Mid(TT, LN + 1)
Loop Until TT = ""
SPT_Str = Mid(TTT, 2)
End Function
¡@
Left(TT, 240)¡@
¡Ä¦r¦ê¤Óªø¡AMIDB ·|µo¥Í¿ù»~¡A©Ò¥H¥ýºI¨ú«e­±¢±¢³¢¯­Ó¦r¤¸¡I

If Right(T, 1) = " " And Mid(TT, LN) <> " " Then LN = LN - 1¡@
¡ÄºI¨ú¤å¦r³Ì«á¤@¦r­Y¬°¡eªÅ¥Õ¦r¤¸¡f¡A§PÂ_¬O§_¬°¥þ«¬¦r¥¼§¹¥þ¨ú¥Xªº¾l¥Õ¡A­Y¬O¡A«h´î¨ú¤@¦r¡I
¡@
´ú¸ÕÀÉ¡G
20160120-01(ºI¨ú¦r¦ê).rar (9.2 KB)
¡@

TOP

·Pı¼Ó¥D¦Û¤v¥»¨­ªº·Qªk¦³°ÝÃD¡C¬°¤°»ò¤@©w­n«öASIN½s½XºI¨ú©O¡H¬O¦³¤°»ò¯S®íªº­n¨DÁÙ¬O¬°¤F¾AÀ³¼Æ¾ÚÀô¹Ò¨S¦³¿ìªk¦Ó¬°¤§©O¡H¦pªG³B²zªº¼Æ¾Ú´N¬O¦bExcelªí®æ¤¤¡AExcelªí®æªº©Ò¦³¦r²Å¦ê³£¬OUnicode½s½Xªº¡A§¹¥þ¤£»Ý­nªÙªñ¨D»·°Ú¡K¡K
¥@¬É¨º»ò¤j¡A¥i§Ú·Q¥h­þ¡H

TOP

«öASIN½s½XºI¨ú«Ü®e©ö¥X²{¤@­Ó¦r²Å³QºI¦¨¨â­Ó¦r²Åªº²{¶H¡A¦pªG¤@©w­n«ö³oºØ¤è¦¡ºI¨ú¨º¥u¯à¬O¤@­Ó¤@­Ó¦r²Å¥h¤ñ¸û¡A¦pªG¦r²Åªº½s½X¦b0¦Ü127¤§¶¡¡A«hªí¥Ü¬°¤@­ÓASCII¦r²Å(¦û¤@­Ó¦r¸`¦ì)¡A§_«h´N«ö¨â­Ó¦r¸`³æ¤¸­pºâ¡C·í¥X²{­è¦n¤@­ÓÂù¦r¸`¦r²Å¦³ºI¨ú¤@¥bªº±¡ªp®É¡A¦A«ö¦Û¤vªº»Ý¨D¬O«O¯d¾ã­Ó¦r²ÅÁÙ¬O¥h±¼¦¹¦r²Å(³o­Ó±¡ªp¼Ó¥D¨S¦³»¡©ú)¡C
¥@¬É¨º»ò¤j¡A¥i§Ú·Q¥h­þ¡H

TOP

¦^´_ 1# lionliu
¼Ó¥Dª¾¹D³oªF¦è¶Ü...
A1Àx¦s®æ¥kÁä>Àx¦s®æ®æ¦¡>¹ï»ô¤è¦¡>¤Ä¿ï¦Û°Ê´«¦C
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦pªG¬O ANSI Âà½X´N¦n¤F

TOP

¥»©«³Ì«á¥Ñ lionliu ©ó 2016-1-21 16:50 ½s¿è

¦^´_ 15# ­ã´£³¡ªL
ÁÂÁ­ã¤j´£¨Ñªº´ú¸ÕÀɮסC§Ú¥ý¤U¸ü¤U¨Ó´ú¸Õ
¤]«Ü©êºp¨ì²{¦b¤~¦³ªÅ¤W¨Ó¬Ý¸ê®Æ¡Aª¾¹D¦³³o»ò¦h¤j­ôÃö¤ß¦b¦¹»¡ÁÂÁ¡C
§ÚªºÀô¹Ò¡G¬Owindows7
§Úªº¸ê®Æ¬O¨t²Î¼t°Ó¶}µo¥X¨Óªº³øªí¨t²ÎÂà¥X¨ÓªºexcelÀÉ¡A©Ò¥H¬Owin7ªºANSI®æ¦¡¡A
¥X³f«á­n´£¨Ñ¶R¤è¤W¶Ç¥X³f¬ÛÃö¸ê®Æ¬OUTF-8®æ¦¡¤å¦rÀÉ¡A³ÆµùÄ檺ªø«×
¨C¦æ30¦r¤¸¡A¦]¦¹¶R¤è­n¨D­Y¬O¥þ¤¤¤å³Ìªø10­Ó¤¤¤å¦r¡C©Ò¥H§Ú¦bANSIªº±¡§Î¤U¡A
¥u¯à¨ú20­Ó¦r¤¸¡C
¦b¦¹ªþ¤W§Ú½Õ¾ã¹Lªº³ÆµùÄæ¸ê®Æ¡C ¬¡­¶Ã¯2.rar (13.82 KB)
lionliu

TOP

        ÀR«ä¦Û¦b : ¬Ý§O¤H¤£¶¶²´¡A¬O¦Û¤v­×¾i¤£°÷¡C
ªð¦^¦Cªí ¤W¤@¥DÃD