- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¥»©«³Ì«á¥Ñ ML089 ©ó 2016-1-24 23:16 ½s¿è
¦^´_ 20# lionliu
ì©l³Æµù¬O¥HCHAR(13)&CHAR(10)µ²§À¡AYn«·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) |
|