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

[µo°Ý] (¤w¸Ñ¨M)¯B°Ê°Ï°ìªº§@·~

[µo°Ý] (¤w¸Ñ¨M)¯B°Ê°Ï°ìªº§@·~

¥»©«³Ì«á¥Ñ freeffly ©ó 2012-2-22 17:05 ½s¿è

§Ú·Q­n°Ý¤@¤U¦pªþ¥[Àɨº¼Ë§Úªºsum¨º¦U³¡¥÷­n«ç»ò³]?
¦]¬°¨C¦U¤ë¾ã²z¥X¨Óªº°Ï°ì³£¤£¤@¼Ë
©Ò¥H¨S¿ìªk©T©w°Ï¶¡
­ì¥»·Q¨ì¤U­±ªº¤è¦¡
¥i¬O¤£¥i¦æ
n ÁöµM¬O¹ïªº
¥i¯à§ÚÁٯʭþ¦U³¡¥÷
½Ð¤j¤jÀ°§Ú¬Ý¤@¤U
ÁÂÁÂ


Sub Macro1()
'
' Macro1 Macro
' User ¦b 2011/3/2 ¿ý»sªº¥¨¶°
'
    Dim ½d³ò As Range, n As Integer
    Set ½d³ò = Range("A" & Range("A65536").End(xlUp).Row)
    i = ½d³ò.CurrentRegion.Rows.Count - 1
    n = i * -1
     Range("H" & Range("A65536").End(xlUp).Row + 1) = "=sum(R[-1]C:R[n]C)"   
End Sub

°ÝÃD.rar (9.9 KB)

¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

¦^´_ 1# freeffly

¬Ý°_¨ÓÀ³¸Ó¬O¹ïI/OÄæ¦ì°µ¤À²Õ¤p­p
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 1# freeffly
  1. Sub EX()
  2.     Dim R As Range, i As Integer
  3.     For Each R In Sheet3.Range("G5:G" & Rows.Count).SpecialCells(xlCellTypeConstants).Areas
  4.         R.Cells(R.Count + 1, 1) = "¤p­p"
  5.         For i = 2 To 4
  6.              R.Cells(R.Count + 1, i) = "=sum(" & R.Offset(, i - 1).Address & ")"
  7.         Next
  8.     Next
  9. End Sub
½Æ»s¥N½X

TOP

§Ú¥u·Q¹ï¤U­±¨º¶ô°Ï°ì°µ¤p­pªº°Ê§@
¤£¹L³o¦U¤èªk¤]¬O§Ú·Qª¾¹Dªº
ÁÂÁÂ

¦pªG¥u·Q¹ï³Ì¤U­±ªº°Ï°ì°µ¤p­p°Ê§@
­n°µ­þ¤@¦U­×§ï©O?
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

mrow = [g:g].Find("o", , , 1).Row
[g65536].End(3)(2).Resize(, 4) = Array("¤p­p", "=sum(r" & mrow & "c:r[-1]c)", "=sum(r" & mrow & "c:r[-1]c)", "=rc[-2]/rc[-1]")

TOP

¦^´_ 3# GBKEE


    Range("G5:G" & Rows.Count) ¥i¥H¥ÎColumns("G:G")¨ú¥N¶Ü ³o¨â¦U¤è¦¡¦³­þ¸Ì¤£¦P¶Ü?
    sum(" & R.Offset(, i - 1).Address & ")³oºØ¥Îªk§Ú¤£·|­C¥i¥H¸Ñ»¡¤@¤U¶Ü
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 5# oobird
§Úªº¸ê®Æ°ò¥»¤W¬O­pºâ"o"
¦ý¬O²Ä¤@¶ô°Ï°ì¤]¦³¥i¯à§t¦³"o"ªº³¡¥÷(¤£¦C¤J­pºâªº³¡¥÷)
©Ò¥H§Ú­ì¥»·Qªº¤è¦¡¬O±q²Ä¤G¶ô°Ï°ì¥h­pºâ ¨Ã¥B­pºâ²Ä¤G¶ô°Ï°ìªº¦C¼Æ
¤£¹LÁÙ¬O±q¦U¦ì¤j¤jªº¤è¦¡¬Ý¨ì¦Û¤v¨S¥Î¹Lªº¤è¦¡
¥i¥H°Ý¤@¤UEnd(3)(2).Resize(, 4) ³o¦U¬O¤°»ò·N«ä¶Ü?
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-3-3 14:39 ½s¿è
¦^´_  GBKEE
Range("G5:G" & Rows.Count) ¥i¥H¥ÎColumns("G:G")¨ú¥N¶Ü ³o¨â¦U¤è¦¡¦³­þ¸Ì¤£¦P¶Ü?
...
freeffly µoªí©ó 2011/3/3 12:17

¬O¥i¥H¥ÎColumns("G:G")¨Ó¨ú¥Nªº,¦ý¦pg1:g3¦³¼Æ¦r ·|¥¢±¼·Ç½T©Ê
End(3)(2).Resize(, 4)=>.End(xlUp).Cells(2, 1).Resize(1, 4)

TOP

°Ï¶ô¬J¥HªÅ¥Õ¦C°Ï¹j
r = [A65536].End(xlUp).End(xlUp).Row
[A65536].End(xlUp).Offset(1, 6).Resize(, 4) = Array("¤p­p", "=SUM(R" & r & "C:R[-1]C)", "=SUM(R" & r & "C:R[-1]C)", "=RC[-2]/RC[-1]")
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 9# Hsieh


    ¬Oªº§Ú­n­pºâªº°Ï¶ô¤w¸g¥ÎªÅ¥Õ¦C°Ï¹j
     ©Ò¥H¬O¤j¤jªºÂ²³æ¤è¦¡
     ¤£¹L¦A³o¸Ì¬Ý¨ì«Ü¦h¤£¤@¼Ëªº³B²z¤è¦¡
     ¯u¬OÁÙ¦³ªº¾Ç
     ÁÂÁ³á
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

        ÀR«ä¦Û¦b : ¯¸¦b¥b¸ô¡A¤ñ¨«¨ì¥Ø¼Ð§ó¨¯­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD