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

[µo°Ý] ¸ê®Æ½Æ¼Æ¦^¶Ç

[µo°Ý] ¸ê®Æ½Æ¼Æ¦^¶Ç

½Ð°Ý«e½ú­Ì
¦³¬Æ»ò¤èªk, ¥i¦æ,
Ãö©ó¸ê®Æ½Æ¼Æ¦^¶Ç

¥Ñ©ó¶À¦â°Ï¶ô¨C¤@®æ³£¦³¨ç¦¡¡A
¶À¦â°Ï¶ô¦³¸ê®ÆÅã¥Ü®É¡A¡@
«h¶i¦æ¸ê®Æ¦^¶Ç¡A

¥Ñ©ó¶À¦â°Ï¶ôÅã¥Ü®É¡A¥i¯à·|¦³¦hµ§©Î³æ³æ¤@µ§¸ê®Æ
¦pªG¥u¦³¥X²{¤@µ§¸ê°TÅã¥Ü¡A«hÅã¥Ü³æ¤@¸ê°T
¦pªG¦³½Æ¼Æ¥H¤W¸ê°TÅã¥Ü¡A¡@«h¨Ï¥Î¦X¨Ö¦³¥X²{ªº¸ê®Æ
Åã¥Ü¤èªk
¥Ñ¥ª¦Ü¥k¶i¦æ¤ñ¹ï

¥i³z¹L¤@¯ë¨ç¦¡¶i¦æ¶Ü¡A¡@
·QÅý¸ê°T¶i¦æ§Y®É§ó·s¡D

¦pªG¬O³z¹L¢ä¢Ð¢Ï¡A¡@¥i¯à´NµLªk§Y®É§ó·s¤F

¥H¤U¬°¥Ü·N¹Ï


ªþÀÉ
EXCEL_°ÝÃD.rar (9.4 KB)

google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2018-8-10 12:13 ½s¿è

¦^´_ 14# sun19860126


¨S¦³Àɮ׬ݡA¥u¯à²qµÛ¼g¡ã¡ã
Sub fourFATNOcombine()
Dim Arr, Brr, Vrr, i&, j&, T$
Arr = Range(Cells(3, 146), Cells(2000, 245))¡@'²Ä¢°¢³¢µÄæ¦Ü¢±¢³¢´Äæ½d³ò
Brr = Range(Cells(3, 2), Cells(2000, 2))¡@'²Ä¢±Äæ¡]¢ÐÄæ¡^
ReDim Vrr(1 To UBound(Arr), 0)¡@'©w¸q¤@­ÓªÅ°}¦C
For i = 1 To UBound(Arr)¡@
¡@¡@If Brr(i, 1) = "" Then GoTo 101¡@'¦pªG¢ÐÄ欰ªÅ¡A²¤¹L¦¹¦æ
¡@¡@For j = 1 To UBound(Arr, 2)
¡@¡@¡@¡@If Arr(i, j) <> "" Then T = T & "/" & Arr(i, j)
¡@¡@Next j
¡@¡@Vrr(i, 0) = Mid(T, 2): T = ""
101: Next i
Cells(3, 9).Resize(UBound(Vrr)) = Vrr
End Sub

TOP

·PÁ¼ӤW~§Ú­è¦n¦³»Pµo¤åªÌÃþ¦ü»Ý¨D
©Ò¥H´N¥Î¦P¼Ë¼gªk¦A§ó§ï¡A¥u¬OÄæ¦ì»Ý¨DÅܤj
Sub fourFATNOcombine()

' fourFATNOcombine ¥¨¶°
'
Dim Out As Variant
For n = 3 To 2000
If Cells(n, 2) <> "" Then
Out = Array(Cells(n, 146), Cells(n, 245))
***¤W­±³o¤@¬q§Ú­n±q146Äæ¦Y¸ê®Æ¨ì245Äæ¡A¤gªk·Ò¿û¦ü¥GµLªk¸Ñ
ub = UBound(Out)
For i = 0 To ub
If Out(i) <> "" Then: OutAll = OutAll & "/" &

Out(i)
Next
Cells(n, 9) = Mid(OutAll, 2, 999)
OutAll = ""
End If
Next

TOP

¦^´_ 12# sun19860126


±N¸ê®Æ½d³ò©ñ¨ì¦Û­q¨ç¼Æªº¤½¦¡¤¤§Y¥i,
°£«D»Ý¨D¤£¦P, ¥i¤W¶Ç½d¨Ò¨Ã¥[»¡©ú³W«h!

TOP

½Ð°Ý¦pªG¦P¼Ëª¬ºA¡AÄæ¦ì«Ü¦h¨ì100-200Äæ
­n«ç»ò§ï·|¤ñ¸û¦n? ÁÂÁ¤j¤j

TOP

­Y¥u¦³¨º´X®æ??
=SUBSTITUTE(TRIM(C5&" "&D5&" "&E5&" "&F5&" "&G5&" "&H5&" "&I5&" "&J5&" "&K5)," ",",")

©Î¥Î¦Û­q¨ç¼Æ
Function NumTxt(ARR) As String
Dim A, T$
For Each A In ARR
    T = Trim(T & " " & A)
Next
NumTxt = Replace(T, " ", ",")
End Function

¤½¦¡:=NumTxt(C5:K5)

TOP

¦^´_ 9# s13983037
VBA¦Û¤v©w¸q¨ç¦¡¡AÁÙ¬O¯à§Y®É§ó·s
¼Ò²Õ¤¤¿é¤J
  1. Public Function MyJoin(source As Range, delimiter As String, Optional ignoreEmpty = True) As String
  2.     For Each x In source
  3.         If Not ignoreEmpty Or Len(x) > 0 Then
  4.             MyJoin = MyJoin & IIf(Len(MyJoin) = 0, "", delimiter) & x.Text
  5.         End If
  6.     Next
  7. End Function
½Æ»s¥N½X
M5¶ñ¤J =MyJoin(C5:K5, ",", TRUE)
²Ä¤@­Ó°Ñ¼Æ¬Oµ²¦Xªº½d³ò¡A²Ä¤G°Ñ¼Æ¬O­n¨Ï¥Îªº¤À¹j²Å¸¹¡A²Ä¤T°Ñ¼Æ¬O¥Î¨Ó¿ï¾Ü¬O§_­n©¿²¤ªÅ¥Õ¡C
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 8# faye59


    ÁÂÁÂ, ¤F¸Ñ, §Ú¦b¦Û¤v­×§ï¤@¤U, ´N®t¤£¦h¤F
   ·PÁÂ^^

TOP

¦^´_ 6# s13983037
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2. If Intersect(Target, [B5:K14]) Is Nothing Then Exit Sub
  3.     ex
  4. End Sub
½Æ»s¥N½X
  1. Sub ex()
  2. Dim Out As Variant
  3. For n = 5 To 16
  4. Out = Array(Cells(n, 3), Cells(n, 4), Cells(n, 5), Cells(n, 6), Cells(n, 7), Cells(n, 8), Cells(n, 9), Cells(n, 10), Cells(n, 11))
  5. ub = UBound(Out)
  6. For i = 0 To ub
  7. If Out(i) <> "" Then: OutAll = OutAll & "." & Out(i)
  8. Next
  9. Cells(n, 13) = Mid(OutAll, 2, 99)
  10. OutAll = ""
  11. Next
  12. End Sub
½Æ»s¥N½X
¤@¤À§V¤O¡A¤@¤À¦¬Ã¬¡C
µo°ÝÃD«e¥i¥H¥ý·j¯Á¤º¤å¬O§_¦³¬ÛÃö½d¨Ò¡C

TOP

        ÀR«ä¦Û¦b : ¤Ó¶§¥ú¤j¡B¤÷¥À®¦¤j¡B§g¤l¶q¤j¡A¤p¤H®ð¤j¡C
ªð¦^¦Cªí ¤W¤@¥DÃD