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

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

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

¦^´_ 22# Andy2483


[«e¸m]MAX ¬O­n¤À§O±q ¨C­Ó«~¸¹(¦C)  [«e¸m]¬q¸Ì(¼Ð·Ç.¹ê»Ú.»~®t) ¦U¨ú³Ì¤j   

__¨ú[¼Ð·Ç]³Ì¤j, ¦P®É±N¸Ó³Ì¤j[¼Ð·Ç]¦P²Õªº[¹ê»Ú¤Î»~®t], ¤@°_¶ñ¤J???
   ÁÙ¬O¤T­Ó¤À§O¨ú³Ì¤j???

¼Ð·Ç 100  ¹ê»Ú 120 »~®t -20 (­t¼Æ--«ç¤ñ¸û)
¼Ð·Ç 110  ¹ê»Ú 100 »~®t 10

¨ú: ¼Ð·Ç 110  ¹ê»Ú 120 »~®t 10 ???

TOP

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


1) ¨C¦¸µo©«³£¥u´£¨Ñ²¤Æª©, ·íµM±o¤£¨ì¥¿½T¸Ñµª, °£«D§A¯uªº¤w¥i¦Û¤v­×§ïµ{¦¡©Î¤½¦¡
¾á¤ß½d¨Ò¤Ó²V¶Ã!«e½ú­Ì¤£²z! ½Õ¾A¤¤

2) ¥H³oª©¥»¨Ó¬Ý, ¥[Á`±ø¥ó[¨ø¼Ò]~[¬[¼Ò]~[½Õ²£], ³£¦b²Ä11¦C, ­Yµ{¦¡¨S­×§ï, ·íµM¤£¥¿½T
     ¥t¥~,[«e¸m]MAX-- ¤S­n¦p¦ó¨ú???
¤£À´©Ò¥H¦A°Ý,[«e¸m]MAX ¬O­n¤À§O±q ¨C­Ó«~¸¹(¦C)  [«e¸m]¬q¸Ì(¼Ð·Ç.¹ê»Ú.»~®t) ¦U¨ú³Ì¤j ¦pSHEET("¬yµ{¶µ¥Ø").[K46]

3) ¨Ì¾Ú¤W¤è4­Ó±ø¥ó, ¥[Á`ªº¦ì¦b¦bQ~AFÄæ, ©Ò¥HBrrªºÄæ¼ÆÀ³Åܦ¨ 1 to 16 ¦Ó¤£¬O 1 to 3
½d¨Ò¦³§ï

4) k = 1 to 3 ³o¬O©T©wªº, ¥¦·|ÀH j ­ÈÅܤÆ----j + k
¥H¬°Äæ¦ìÂX¤j¤F ´N¸Ó¸òµÛÅÜ ¤£À´ ½Ð¦A«ü¾É

¦Û¤v¦A¬Ý¬Ý­ì¨Óµ{¦¡¨C¤@¦æ, ­Y¯à¤@¤@²z¸Ñ, ¦A¨Ó»¡ÂX¼W»Ý¨D~~
·Pı¦Û¤v¦³²z¸Ñ ´N§ï§ï¬Ý ^_^

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

TOP

¦^´_ 20# Andy2483


1) ¨C¦¸µo©«³£¥u´£¨Ñ²¤Æª©, ·íµM±o¤£¨ì¥¿½T¸Ñµª, °£«D§A¯uªº¤w¥i¦Û¤v­×§ïµ{¦¡©Î¤½¦¡
2) ¥H³oª©¥»¨Ó¬Ý, ¥[Á`±ø¥ó[¨ø¼Ò]~[¬[¼Ò]~[½Õ²£], ³£¦b²Ä11¦C, ­Yµ{¦¡¨S­×§ï, ·íµM¤£¥¿½T
     ¥t¥~,[«e¸m]MAX-- ¤S­n¦p¦ó¨ú???
3) ¨Ì¾Ú¤W¤è4­Ó±ø¥ó, ¥[Á`ªº¦ì¦b¦bQ~AFÄæ, ©Ò¥HBrrªºÄæ¼ÆÀ³Åܦ¨ 1 to 16 ¦Ó¤£¬O 1 to 3
4) k = 1 to 3 ³o¬O©T©wªº, ¥¦·|ÀH j ­ÈÅܤÆ----j + k

¦Û¤v¦A¬Ý¬Ý­ì¨Óµ{¦¡¨C¤@¦æ, ­Y¯à¤@¤@²z¸Ñ, ¦A¨Ó»¡ÂX¼W»Ý¨D~~

TOP

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


    ·d¤£À´ ­þ¸Ì¿ù
¤À¶µ¤ñÁ`©M¤j

½d¨Ò_20200826.zip (310 KB)

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

TOP

¦^´_ 18# Andy2483


    ÁÙ¨S¦³´ú¸Õ ¦ýÀ³¸Ó¦³®t
¦]¬°¤Ö§PÂ_ «e¸m «Ü¦h¦¸
´Nª½±µ¸õ¨ì j01
¼·ªÅ¦A´ú¸Õ ¾Ç²ß
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

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


    ¹ï¤£°_ !
§Ñ¤F°Ý°j°é¤è¦¡¤£¦P°õ¦æ®Ä²v¦³®t§O¶Ü?
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

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


«e½úªº°j°é¤ñ¸ûÃø ,´«­Ó¨¤«×¤ñ¸û¬Ý±oÀ´
¥i¯à¸ò¤ß¹Ò¦³Ãö§a
±zµL¨pªº§âÀ´ªº¶Ç±Âµ¹§Ú­Ì ¦¨´N§Ú­Ì
Andy¥uÀ´±o±µ¨ü«e½úªº«ü¾É ¼Wªø¦Û¤v
ÁÂÁÂ
For k = 1 To 3
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
        Brr(i - 3, k) = Brr(i - 3, k) + Arr(i, j + k - 1)
j01: Next j
Next i
Next k
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

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


ÁÙ¨S¦³¥ÎPC´ú¸Õ
¥Hµ²ªG¤Ï±À¸Ì­±µ{½Xªº·N¸q ¤j·§¤F¸Ñ
1.¨â­Ó®e¾¹ Arr¸Ë­ì¨Óªº¸ê®Æ Brr¸Ë¦^°éªºµ²ªG
UBound(Arr¡^¬O«üArrªºÁa¦V°}¦C¼Æ
UBound(Arr, 2¡^¬O«üArrªº¾î¦V°}¦C¼Æ
2. Arr = Range(Cells(R, "AG"), Cells(10, C))¬O¤Ï¹ï¨¤©w¸q½d³ò¶Ü¡H
¨S¬Ý¹L ´N·W¤F
ÁÂÁ«ü¾É
©ú¦­¥X®t ¼·ªÅÄ~Äò¬ã²ß ÁÙ¦³¤½¦¡ª©©O ¯u´Á«Ý
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

Sub TEST2()
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([A1], Cells(R, C))
ReDim Brr(1 To UBound(Arr) - 12, 1 To 3)
For i = 13 To UBound(Arr)
For j = [AG1].Column To UBound(Arr, 2) Step 4
    If Left(Arr(10, j), 2) = "«e¸m" Then GoTo j01
    For k = 1 To 3
        Brr(i - 12, k) = Brr(i - 12, k) + Arr(i, j + k - 1)
    Next k
j01: Next j
Next i
[AC13].Resize(UBound(Brr), 3) = Brr
End Sub

§ï¦¨³o¼Ë¬O§_¸û©ö²z¸Ñ?
Cells(R, C) ´N¬O¸ê®Æ°Ï³Ì¥k/³Ì¤U¤@®æ
Range([A1], Cells(R, C)) ±qa1¦V¤U/¦V¥kªº°Ï°ì



==================================

TOP

VBA¤¤ªº°}¦C¥Îªk, ­n¦­ÂI¤F¸Ñ,
³Ì¦n¤]²z¸Ñ¦r¨å¥Îªk,
¦r¨å+°}¦C, ¥i³B²z«Ü¦hºØ¸ê®Æªº³B²z¤Î²Î­p¹Bºâ»Ý¨D,
§_«hÀHµÛ¸ê®Æ¶V¦h, ´N¶V¤£¦n³B²z~~

TOP

        ÀR«ä¦Û¦b : ¬O«D·í±Ð¨|¡AÆg¬ü§@ĵ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD