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

[µo°Ý] ¤½¦¡µ{¦¡½X¤Æ

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-25 16:27 ½s¿è

¦^´_ 7# singo1232001
¤½¦¡µ{¦¡½X¤Æ_singo1232001_V1.rar (99.52 KB) =>¥i«ö²M°£Áä´ú¸Õ
99%OK¤F!
¥u®t¦C20
x0 = Format((x0 + s.Cells(i + 1, j + 12)) Mod 49, "00") '< --§Ñ¤F¥[00
½Ð¦A¥[¤W¦p¤U±ø¥ó»Ý¨D :
·í¾l¼Æ=0®É¡Aµø¦P=49
EX: E10=19,00
¥¿½TÀ³¬°~
E10=19,49
ÁÂÁ±z

TOP

¦^´_ 6# ziv976688

¤½¦¡µ{¦¡½X¤Æ_singo1232001.zip (117.49 KB)

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-25 09:08 ½s¿è

¦^´_ 4# ML089
´ú¸Õ¦¨¥\
µ{¦¡½X¥[µù¸Ñ~¨ü¯q¨}¦h
ÁÂÁª©¥Dªº­@¤ß«ü¾Éº~¤@¦Aªº¼ö¤ßÀ°¦£~·P®¦

TOP

¦^´_  singo1232001
singo1232001 µoªí©ó 2021-7-24 23:43

¤½¦¡µ{¦¡½X¤Æ_singo1232001.rar (85.97 KB)
´ú¸Õµ²ªG :µª®×³£¬O FALSE
½Ð¦A­×¥¿~ÁÂÁ±z

TOP

¦^´_ 1# ziv976688
Sub ¾l¼Æµn¿ý()
    Dim xS As Worksheet, xV As Range, xD, SP
    Tm = Timer
    For Each xS In Sheets(Array("·Ç2¶i3", "·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))    '¨úªí®æ
        For Each xV In xS.Range("V2:AB" & xS.[B65536].End(xlUp).Row)    '¨úÀx¦s®æ
            xD = ""
            For Each SP In Split(xV, ",")    '¤ÀÂ÷¦r¦ê
                SP = (SP + xV.Offset(, -9)) Mod 49: If SP = 0 Then SP = 49 'V2+M2 mod 49
                xD = xD & "," & Format(SP, "00")
            Next
            xV.Offset(30, -18) = Mid(xD, 2, 99) '´ú¸Õ¥Î ¦ì¸m¤U²¾30®æ
            'xV.Offset(, -18) = Mid(xD, 2, 99) '¥¿½T¦ì¸m
        Next
    Next
End Sub
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 2# singo1232001
  1. Sub allsheet()   '<--°õ¦æ³o­Ó
  2. Dim s As Worksheet
  3. For Each s In Worksheets
  4. If s.Name <> "DATA" Then Call ¾l¼Æµn¿ý(s.Name)
  5. Next
  6. End Sub

  7. Sub ¾l¼Æµn¿ý(sN)
  8. Set s = Sheets(sN)
  9. n = s.Columns("v:ab").Find("*", , -4163, , 1, 2).Row
  10. Dim ar
  11. ReDim ar(1 To n, 1 To 7)

  12. For i = 1 To n
  13. For j = 1 To 7
  14. x = s.Cells(i + 1, j + 21)
  15. If x <> "" Then
  16. x = Split(x, ",")
  17.     For Each x0 In x
  18.     x0 = Format((x0 + s.Cells(i + 1, j + 12)) Mod 49,"00") <--§Ñ¤F¥[00
  19.     If ar(i, j) <> "" Then ar(i, j) = ar(i, j) & "," & x0
  20.     If ar(i, j) = "" Then ar(i, j) = x0
  21.     Next
  22. End If
  23. Next
  24. Next
  25. s.[d2].Resize(n, 7) = ar
  26. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-24 23:12 ½s¿è

¦^´_ 1# ziv976688
  1. Sub allsheet()   '<--°õ¦æ³o­Ó
  2. Dim s As Worksheet
  3. For Each s In Worksheets
  4. If s.Name <> "DATA" Then Call ¾l¼Æµn¿ý(s.Name)
  5. Next
  6. End Sub

  7. Sub ¾l¼Æµn¿ý(sN)
  8. Set s = Sheets(sN)
  9. n = s.Columns("v:ab").Find("*", , -4163, , 1, 2).Row
  10. Dim ar
  11. ReDim ar(1 To n, 1 To 7)

  12. For i = 1 To n
  13. For j = 1 To 7
  14. x = s.Cells(i + 1, j + 21)
  15. If x <> "" Then
  16. x = Split(x, ",")
  17.     For Each x0 In x
  18.     x0 = (x0 + s.Cells(i + 1, j + 12)) Mod 49
  19.     If ar(i, j) <> "" Then ar(i, j) = ar(i, j) & "," & x0
  20.     If ar(i, j) = "" Then ar(i, j) = x0
  21.     Next
  22. End If
  23. Next
  24. Next
  25. s.[d2].Resize(n, 7) = ar
  26. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD