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

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

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

¤j®a¦n¡G
·Q½Ð±Ð len()·fmid()­^¼Æ¦r­û»P¤¤¤å¦r¤¸¡Alenb()·fmidb()­^¼Æ¤¤¤å¦r¤¸ºâªk

§Ú¦³»s§@¤@­Ó½d¨Ò°ÝÃD ¬¡­¶Ã¯1.rar (12.48 KB)

§ÚªººÃ°Ý¬Omidb¡Blenb¹ï­^¼Æ¬°¦ó¤]¬OÂù¦r¤¸
¦³¿ìªkÅý­^¼Æºâ³æ¦r¤¸¡A¤¤¤åºâÂù¦r¤¸ªº¤èªk¶Ü?
lionliu

¦^´_ 23# ML089
ÁÂÁÂmlª©¥L¤jªº´£¿ô¡A Åý§Úªº¸ê®Æ¤ººa§ó³q¶¶¡C§Ú¦A¥J²Óªº¬ã¨s¤@¤U¡C
lionliu

TOP

¥»©«³Ì«á¥Ñ ML089 ©ó 2016-1-24 23:16 ½s¿è

¦^´_ 20# lionliu
­ì©l³Æµù¬O¥HCHAR(13)&CHAR(10)µ²§À¡A­Y­n­«·s¤À¹j¬°20¦r¤¸®É¡ACHAR(13)&CHAR(10)µ²§À¥Î "," ¨Ó´À¥N·|¤ñ¦n¡C


¤@¡B±Ä¥Î¨ç¼Æ¤½¦¡¤èªk
¦WºÙ¤½¦¡
find_text =MIDB(STR,LOOKUP(999,IF({1,0},1,FINDB(INDIRECT("R[-1]C",),STR)+LENB(INDIRECT("R[-1]C",)))),{19;20})
STR =SUBSTITUTE(!$A$2,CHAR(13)&CHAR(10),",")

C6¤½¦¡
C6 =IF(AND(ROW(A1)>1,INDIRECT("R[-1]C",)=""),"",LOOKUP(,0/FINDB(find_text,STR),find_text))

¤½¦¡¨ä¥LÀ³¥Î®É»Ý­n­×§ï ¦WºÙ¤¤ªº $A$2¡A¨ä¥L¤£»Ý­n³B²z¡C


¤G¡B±Ä¥ÎVBA¤èªk
­É¥Î­ã¤jªºVBA­×§ï¦p¤U

Sub ºI¨ú¦r¦ê()
    Dim Arr
    Arr = SPL(Replace([A2], Chr(13) & Chr(10), ","), 20)
    Arr = Split(Arr, Chr(10))
    [H6].Resize(UBound(Arr)) = Application.Transpose(Arr)
End Sub

Function SPL(ByVal xS$, xL%)
    If xS = "" Then Exit Function
    nL = IIf(InStr(xS, xMidB(xS, 1, 20)), 20, 19)
    SPL = xMidB(xS, 1, nL) & Chr(10) & SPL(xMidB(xS, nL + 1, 9999), xL) '»¼¦^³B²z
End Function

Function xMidB(ByVal str As String, start, length) As String
    xMidB = StrConv(MidB(StrConv(str, vbFromUnicode), start, length), vbUnicode)
End Function

Function xLenB(ByVal str As String)
    xLenB = LenB(StrConv(str, vbFromUnicode))
End Function

¤T¡B±Ä¥Î¦Û­q¨ç¼Æ¤Î¦Û°Ê´«¦C¤è¦¡
=SPL(SUBSTITUTE($A$2,CHAR(13)&CHAR(10),","),20)
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 21# ­ã´£³¡ªL
ÁÂÁ­ã¤j
À°§Ú§â³o§xÂZ§Ú«Ü¤[ªº°ÝÃD¸Ñ¨M¤F
¡A§Ú¦A¥J²Óªº¬ã¨s¤@©w­n·dÀ´¥L¡C
lionliu

TOP

¦^´_ 20# lionliu


½d¨ÒÀɪº¡e¨ç¼Æ¡f©Î¡eVBA¡f¨âªk¡A³£¦³¤¤¤å¦r¡e±¼¦r¡f°ÝÃD¡A
¡­¢°¢´µ{¦¡µy­×¦p¤U¡G
Sub ºI¨ú¦r¦ê()
Dim Arr
Arr = SPT_Str(Replace([A2], Chr(10), ""), 20)¡@
Arr = Split(Arr, Chr(10))
[B6].Resize(UBound(Arr) + 1) = Application.Transpose(Arr)
End Sub

¡e¦Û­q¨ç¼Æ¡fFunction SPT_Str(xString$, xLength%)¡@¤£ÅÜ¡I

§¹¥þ¤£·|¦³¡e±¼¦r¡þ®t¦r¡f°ÝÃD¡ã¡ã¡ã

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

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

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

«ö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

·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

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD