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

½Ð±Ð ¤½¦¡_¸õÄæ¨Ã¥B²Å¦X±ø¥ó¤~¥[Á`

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2020-8-24 18:44 ½s¿è

¤£µM¥Î¤½¦¡??
AC13:
=SUMIF($AG$10:$GW$10,"*",AG13:GW13)-SUMIF($AG$10:$GW$10,"«e¸m*",AG13:GW13)
©Î
=SUMPRODUCT(--(LEFT($AG$10:$GW$10&"«e¸m",2)<>"«e¸m"),AG13:GW13)

¥k©Ô3®æ, ¤U©Ô

­pºâ¦ì§}¥k©Ô®É, ¬O²¾¦ìªº, ¦Û¦æ°Ñ°u~~

TOP

¦^´_ 11# Andy2483

Dim Arr, Brr, R&, C&, i&, j&, k%, xArea As Range
R = Cells(Rows.Count, "d").End(xlUp).Row
MsgBox R & "(DÄæ³Ì«á¤@¦æ)"
C = Cells(12, Columns.Count).End(xlToLeft).Column
MsgBox C & "(³Ì¥k¤@Äæ)--¦ì§}:" & Cells(12, C).Address
Set xArea = Range(Cells(R, "AG"), Cells(10, C))
MsgBox "¸ê®Æ½d³ò:" & xArea.Address
'Arr = Range(Cells(R, "AG"), Cells(

TOP

¦^´_ 9# ­ã´£³¡ªL


Arr = Range(Cells(R, "AG"), Cells(10, C))
³o¦æ¬O³]©w¸ê®Æ½d³ò! ¤£À´
Cells(R, "AG") ¬O10
Cells(10, C) ¬O0
Arr = Range(10, 0)
¬°¤°»ò??
½Ð¦A«ü¾É
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 9# ­ã´£³¡ªL


    ÁÂÁ«e½ú«ü¾É
1.³o°}¦C¤èªk¥uÀ´¥Ö¤ò,¤]»Ý­n¾Ç²ß! §Ú·|Âdzo©«¾Ç·|¥L
2.­ì¥»·Qªk¬O¥ÎVBA¤U¤½¦¡¦bACÄæ ¤U¨ê±o¨ì¥[Á`­È
2.1.©w¸q¸ê®Æ½d³ò AG10:???  :¬O»{¬°¤U¤½¦¡¥[¨ì³Ì«áIVÄæ ªÅ®æ¤]¤£¼vÅT,¦Ó¥BÄæ¦ì¼W´î¾÷²v«Ü°ª
2.2.¥Î¤U¤½¦¡ªº¤èªk¤]¤£Â²³æ
ÁÂÁ«ü¾É
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 8# Andy2483

¦³¬Ý¨ìÁôÂÃÄæ,
Sub TEST()
Dim Arr, Brr, R&, C&, i&, j&, k%
R = Cells(Rows.Count, "d").End(xlUp).Row '³Ì«á¤@¦æ
C = Cells(12, Columns.Count).End(xlToLeft).Column '³Ì«á¤@Äæ
Arr = Range(Cells(R, "AG"), Cells(10, C)) '©w¸q¸ê®Æ½d³ò AG10:???
ReDim Brr(1 To UBound(Arr) - 3, 1 To 3) '³]ªÅ°}¦C
For i = 4 To UBound(Arr)
For j = 1 To UBound(Arr, 2) Step 4
    If Left(Arr(1, j), 2) = "«e¸m" Then GoTo j01
    For k = 1 To 3
        Brr(i - 3, k) = Brr(i - 3, k) + Arr(i, j + k - 1)
    Next k
j01: Next j
Next i
[AC13].Resize(UBound(Brr), 3) = Brr
End Sub


'===================================

TOP

¦^´_ 7# ­ã´£³¡ªL

1. If Left(Cells(10, i), 2) <> "«e¸m" Then
   ¬O! ¦ý¬O¤£ª¾¦p¦ó¥[¨ì¤U¦C¤½¦¡¸Ì,©Î¨ä¥L¤èªk
AC13 =SUMPRODUCT((MOD(COLUMN(AG:IV),4)=1)*AG13:IV13)

2.¨C3Ä欰¤@­Ó¸s²Õ, STEP  3 ¤~¹ï§a!
   ¹ï¤£°_!  ¦³¤@Äæ¬O³Æ¥ÎÄæ ÁôÂð_¨Ó¤F
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

­Y¥u¤ñ¹ï«e¨â¦r, ¤]¥i:
If Left(Cells(10, i), 2) <> "«e¸m" Then

¨C3Ä欰¤@­Ó¸s²Õ, STEP  3 ¤~¹ï§a!

TOP

¦^´_ 2# ­ã´£³¡ªL
«e½ú¦n
¤â¾÷§¹¦¨½d¨Ò¤W¶Ç
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¤â¾÷¸Õ¤W¶Ç½d¨ÒÀÉ

ºÞ²zªí_20200824_2.zip (57.54 KB)

¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 2# ­ã´£³¡ªL


    ¤W¶Ç¥¢±Ñ!
ºÃ¦ü­­¨î¤W¶Ç ¦^®a¦A³B¸Ì
ÁÂÁ«ü¾É
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD