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

¤£¦P¯Å§O¥[Á`°ÝÃD

¤£¦P¯Å§O¥[Á`°ÝÃD

·Q½Ð±Ð¦U¦ì..

¦pªG¦³´X²Õ¼Æ¦r,  >2000¥i¥H¦¨¬°¿W¥ß¤@­Óª÷ÃB, ¦pªG¤£°÷´N¥[Á`.

½Ð¬Ý¹Ï¤ù¤Îªþ¥ó¤ñ¸û²M·¡..

½Ð¦n¤ß¤HÀ°¦£

><

19-10-2023 17-35-41excel.jpg (80.28 KB)

excel

19-10-2023 17-35-41excel.jpg

excel level commission.zip (6.89 KB)

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-10-20 12:57 ½s¿è

¦^´_ 1# jomeow


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹©«½m²ßVBA°}¦C,½m²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

Option Explicit
Sub TEST()
Dim Brr, Crr, v&, Q%, i&, j%, R&, c%, M&, A%, K&
K = 2000: Brr = Range([A1], ActiveSheet.UsedRange.Offset(1, 0))
ReDim Crr(1 To UBound(Brr), 1 To UBound(Brr, 2))
For j = 2 To UBound(Brr, 2)
   c = c + 1: R = 0: Q = 0
   If Brr(2, j) Like "BM *" = False Then Exit For
   If Brr(3, j) = "" Then GoTo j01
   For i = 3 To UBound(Brr)
      v = v + Val(Brr(i, j)): A = A + 1
      If Trim(Brr(i + 1, j)) = "" Then Q = 1
      If (v = K And A > 1) + (v > K) + (Q = 1 And v > 0) < 0 Then
         R = R + 1: Crr(R, c) = v: v = 0: A = 0
      End If
      If Q = 1 Then Exit For
   Next
   If M < R Then M = R
j01: Next
If M = 0 Then Exit Sub
[J:Z].ClearContents
[J1].Resize(M, c - 1) = Crr
Erase Brr, Crr
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

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

TOP

¦p¹Ï//µ²ªG¬O¤°»ò???
xx001.gif

TOP

¦^´_ 3# hcm19522


©êºp,, ¤p©f¤Ó²Â... §Ú¥Î¤F§Aªº¤½¦¡, ¦ý­pºâ¤£¦¨¥\.. ¨S¼Æ¦r¥X²{..><

½Ð¦A«ü±Ð§Ú¥i¥H¶Ü

TOP

¦^´_ 2# Andy2483

§A«Ü¼F®`!!!!!!!!

¦¨¥\¤F!!!!!!!

§Ú¥Î§Aªºvba... ¯uªº¥i¥H±o¨ì§Ú·Q­nªºµ²ªG!!!!!!

·PÁ¤j¤jªº¥X¤âÀ°§U!!!!

m(_ _)m

TOP

¥»©«³Ì«á¥Ñ jomeow ©ó 2023-10-24 11:21 ½s¿è

¦^´_ 2# Andy2483

¤j¤j.. §Ú¥i¤£¥i¥H°T®§§A¶Ü?

©ÎªÌ§A°T®§§Ú¥i¥H¶Ü?

¦]¬°.. §Ú·Q§â§Aªºvbaªºµ²ªGªº¦ì¸m, §ï¨ì§Ú²{¦bexcelªº¦ì¸m.. ¥i¥H¦A¦V§A½Ð±Ð¶Ü?

¥ýÁÂÁ³á!

TOP

¦^´_ 7# jomeow


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

TOP

¦^´_ 2# Andy2483


½ÐÀ°¦£¬Ýªþ¥ó.. ¦]¬°§Ú·Q§âµ²ªG³£©ñ¦b calculation³o¤@­¶...
comm Calculator-sample.zip (17.09 KB)
¥ýÁÂÁ§AÀ°¦£!!

TOP

¦^´_ 8# Andy2483


¥ýÁÂÁ§AÀ°¦£..

§Ú¤W¸ü¤F¤å¥ó¤F...

TOP

        ÀR«ä¦Û¦b : °µ¸Ó°µªº¨Æ¬O´¼¼z¡A°µ¤£¸Ó°µªº¨Æ¬O·Mè¡C
ªð¦^¦Cªí ¤W¤@¥DÃD