Board logo

¼ÐÃD: [µo°Ý] ¤½¦¡µ{¦¡½X¤Æ [¥´¦L¥»­¶]

§@ªÌ: ziv976688    ®É¶¡: 2021-7-24 00:57     ¼ÐÃD: ¤½¦¡µ{¦¡½X¤Æ

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-24 01:07 ½s¿è

¤£¦n·N«ä¡AÀµ½Ð¦U¦ì¤j¤j«ü¾É©MÀ°¦£~
½Ð±N¤U¦C¤½¦¡µ{¦¡½X¤Æ¡C
ÁÂÁ¡I
[attach]33735[/attach]
Sheets("·Ç2¶i3")!D2ªº­ì¤½¦¡
=LEFT(TEXT(SUM(TEXT(MOD(M2+(0&TRIM(MID(SUBSTITUTE(V2,",","         "),1+{0,1,2,3,4}*9,9))),49),"[=0]!49")*10^{8,6,4,2,0}),"00!,00!,00!,00!,00"),IF(V2="",0,2+3*(LEN(V2)-LEN(SUBSTITUTE(V2,",",)))))
¥k©Ô¨ìJ2¡A¦A¤U©Ô¨ì.Range("J" & .[B2].End(xldown).row - 1) ¶ñº¡

Module 1
¤å¦r»¡©ú¡G
³Æµù¡G
1_­n¬Û¥[ªº2­Ó¥Ø¼ÐÀx¦s®æ=M:S©MV:AB¤G­Ó°Ï¬q¤§¦P¦Cµ¥Äæ¶Z(¶¡¹j8Äæ)ªº¦UÀx¦s®æ¡C
2_VB2:AB" & .[B2].End(xldown).row - 1) = ""ªºÀx¦s®æ¤£­pºâ(²¤¹L)¡C
3_¾l¼Æ=0®É¡Aµø¦P=49¡C   
4_¦³Åã¥Ü2­Ó(§t)¥H¤W®É¡A«h¥H","²Å¸¹°Ï¹j¡C
¹ê¨Ò»¡©ú¡G
Sheets("·Ç2¶i3")
·íV2<>""®É¡A«hD2=(M2ªº­È+V2ªº­È)/49 =>¨ú¾l¼Æ
EX¡GD2 =MOD(11+8,49)=19
EX¡GD2 =MOD(11+27,49)=38
§YD2=19,38
¡G
¡G
·íAA2<>""®É¡A«hI2=(R2ªº­È+AA2ªº­È)/49 =>¨ú¾l¼Æ
EX¡GI2 =MOD(42+30,49)=23
§YI2=23
¡G
¡G
·íW13<>""®É¡A«hE13=(N13ªº­È+W13ªº­È)/49 =>¨ú¾l¼Æ
EX¡GE13 =MOD(04+0,49)=04
EX¡GE13 =MOD(04+45,49)=49
§YE13=04,49
¡G
¡G
·íAB26<>""®É¡A«hJ26=(S26ªº­È+AB26ªº­È)/49 =>¨ú¾l¼Æ
EX¡GJ26=MOD(02+9,49)=11
§YJ26= 11

¨ä¾l¡KSheets("·Ç3¶i4")~ Sheets("·Ç7¶i8")¡KÃþ±À¡C
§@ªÌ: singo1232001    ®É¶¡: 2021-7-24 22:58

¥»©«³Ì«á¥Ñ 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

§@ªÌ: singo1232001    ®É¶¡: 2021-7-24 23:43

¦^´_ 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

§@ªÌ: ML089    ®É¶¡: 2021-7-25 05:22

¦^´_ 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
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 09:04

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

[attach]33742[/attach]
´ú¸Õµ²ªG :µª®×³£¬O FALSE
½Ð¦A­×¥¿~ÁÂÁ±z
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 09:07

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

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

¦^´_ 6# ziv976688
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 16:03

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

¦^´_ 7# singo1232001
[attach]33745[/attach] =>¥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
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 16:11

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

¦^´_ 4# ML089
[attach]33746[/attach] =>¥i«ö²M°£Áä´ú¸Õ
¤£¦n·N«ä¡A¥i§_½Ðª©¥D½ç¥¿~
¼Ð¥Ü©³¦â
Module 5
' If xR > 0 And xR = xS.Range("M" & xS.[B65536].End(xlUp).Row, "S" & xS.[B65536].End(xlUp).Row) Then xR.Interior.ColorIndex = 8  '¼Ð¥ÜÂÅ©³¦â
¦C7

=·íA4:A52<>""ªº¬YÀx¦s®æ¤§­È~
¦³Åã¥Ü¦bM:S¦³¼Æ¦r¤§³Ì«á¤@¦Cªº¥ô¤@­ÓÀx¦s®æ®É¡A
«hAÄ檺¸Ó­È¤§Àx¦s®æ¼Ð¥ÜÂÅ©³¦â¡C

' If Val(SP) > 0 And Val(SP) = xS.Range("M" & xS.[B65536].End(xlUp).Row, "S" & xS.[B65536].End(xlUp).Row) Then xD(Val(SP)).Interior.ColorIndex = 8 '¼Ð¥ÜÂÅ©³¦â
¦C12

=·íxS.Range("D2:J" & xS.[B65536].End(xlUp).Row - 1) <>""ªº¬YÀx¦s®æ¤§¥ô1­Ó­È~
¦³Åã¥Ü¦bM:S³Ì«á¤@¦Cªº¥ô¤@­ÓÀx¦s®æ®É¡A
«hxS.Range("D2:J" & xS.[B65536].End(xlUp).Row - 1)ªº¸Ó­È¤§Àx¦s®æ¼Ð¥ÜÂÅ©³¦â¡C

½Ð°Ý¡G
Module 5ªº¦C7©M¦C12¤§µ{¦¡½X­n¦p¦ó­×¥¿ ?
ÁÂÁ±z
§@ªÌ: ML089    ®É¶¡: 2021-7-25 17:23

¥»©«³Ì«á¥Ñ ML089 ©ó 2021-7-25 17:25 ½s¿è

¦^´_ 9# ziv976688

Sub ¼Ð¥Ü©³¦â()
    Dim  xS As Worksheet, xR As Range, SP, r
   
    For Each xS In Sheets(Array("·Ç2¶i3", "·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))    '¨úªí®æ
        r = xS.[B65536].End(xlUp).Row
        For Each xR In xS.Range("A4:A" & xS.[A65536].End(xlUp).Row)    '¨úÀx¦s®æ
            'xR.Interior.ColorIndex = 0 '²M©³¦â
            If Not xS.Range("M2:S" & r).Find(xR) Is Nothing Then xR.Interior.ColorIndex = 8  '¼Ð¥ÜÂÅ©³¦â
        Next

        For Each xR In xS.Range("D2:J" & r - 1)    '¨úÀx¦s®æ
            'xR.Interior.ColorIndex = 0 '²M©³¦â
            For Each SP In Split(xR, ",")    '¤À¶}¼Æ¦r
                If Not xS.Range("M2:S" & r).Find(Val(SP)) Is Nothing Then xR.Interior.ColorIndex = 8: Exit For    '¼Ð¥ÜÂÅ©³¦â
            Next
        Next
    Next
End Sub
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 17:41

¦^´_ 10# ML089
[attach]33747[/attach]  =>¥i«ö²M°£Áä´ú¸Õ
ª©¥D :
±z¬O¤£¬O»~¸Ñ»Ý¨Dªº·N«ä¤F
If Not....Is Nothing.....
Åܦ¨<>""ªºÀx¦s®æ¥þ³¡¼Ð¥ÜÂŦâ
½Ð½ç¥¿!ÁÂÁ±z
§@ªÌ: n7822123    ®É¶¡: 2021-7-25 17:53

¦^´_ 11# ziv976688

¥ÎMatch °µªk¼gµ¹§A

Sub ¼Ð¥Ü©³¦â_Ex()
Dim Arr, Shs$, Num, Sh As Worksheet, Rg As Range
Shs = "·Ç2¶i3 ·Ç3¶i4 ·Ç4¶i5 ·Ç5¶i6 ·Ç6¶i7 ·Ç7¶i8"
For Each Sh In Sheets(Split(Shs)): With Sh
  Arr = .[M2].End(4).Resize(, 7)
  Arr = Application.Transpose(Application.Transpose(Arr))  'Âà¤@ºû
  For Each Rg In Union(.Range("A4:A52"), .Range("D2:J" & .[B65536].End(xlUp).Row - 1))
    Rg.Interior.ColorIndex = 0                           '²M©³¦â
    For Each Num In Split(Rg, ",")
      K = Application.Match(--Num, Arr, 0)                     '-- Âà¼Æ¦r¤ñ¹ï
      If Not IsError(K) Then Rg.Interior.ColorIndex = 8  '¼Ð¥ÜÂÅ©³¦â
    Next Num
  Next Rg
End With: Next Sh
End Sub

§@ªÌ: n7822123    ®É¶¡: 2021-7-25 17:58

¥»©«³Ì«á¥Ñ n7822123 ©ó 2021-7-25 18:00 ½s¿è

¦^´_ 1# ziv976688

°w¹ï1¼Ó»Ý¨D~~ª©¥D¤w§¹¦¨¡A¦AÀA¤W²Kªá¤@¤U~~

¬Ý§Aªº§Ç¸¹±q 1853~1878¡A­Y¼Æ¦C¦h

¥Î°}¦C¹Bºâ¡A³t«×À³¸Ó·|§Ö¤@¨Ç

¯Â¼Æ­È¤~¥i¥H³o¼Ë°µ¡A§ïÅÜÀx¦s®æÃC¦âÔ£ªº¡A¥ÎÀx¦s®æ´N¦n~


Sub ¾l¼Æ()
Dim Arr(1 To 2), Brr, Sh As Worksheet, Shs$
Shs = "·Ç2¶i3 ·Ç3¶i4 ·Ç4¶i5 ·Ç5¶i6 ·Ç6¶i7 ·Ç7¶i8"
For Each Sh In Sheets(Split(Shs)): With Sh
  Rn& = .[B2].End(4).Row - 1: ReDim Brr(1 To Rn, 1 To 7)
  Arr(1) = .[M2].Resize(Rn, 7): Arr(2) = .[V2].Resize(Rn, 7)
  For R = 1 To Rn: For C = 1 To 7
    For Each Num In Split(Arr(2)(R, C), ",")
      ¾l¼Æ = (Arr(1)(R, C) + Num - 1) Mod 49 + 1
      Brr(R, C) = Brr(R, C) & "," & Format(¾l¼Æ, "00")
    Next Num
    Brr(R, C) = Mid(Brr(R, C), 2)
  Next C: Next R
  .[D30].Resize(Rn, 7) = Brr   '´ú¸Õ¥Î
  '.[D2].Resize(Rn, 7) = Brr     '¥¿½T¦ì¸m
End With: Next Sh
End Sub

§@ªÌ: ML089    ®É¶¡: 2021-7-25 18:46

¦^´_ 11# ziv976688
¬O³Ì«á¤@¦C¸ê®Æ¡A§Ú¬Ý¿ù¤F¡A­×¥¿¦p¤U
Sub ¼Ð¥Ü©³¦â_ML089()
    Dim xD As Object, xS As Worksheet, xR As Range, SP, r
    Set xD = CreateObject("Scripting.Dictionary")
    For Each xS In Sheets(Array("·Ç2¶i3", "·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))    '¨úªí®æ
        r = xS.[B65536].End(xlUp).Row
        For Each xR In xS.Range("A4:A" & xS.[A65536].End(xlUp).Row)    '¨úÀx¦s®æ
            xR.Interior.ColorIndex = 0 '²M©³¦â
            'If xR > 0 And xR = xS.Range("M" & xS.[B65536].End(xlUp).Row, "S" & xS.[B65536].End(xlUp).Row) Then xR.Interior.ColorIndex = 8  '¼Ð¥ÜÂÅ©³¦â
            If Not xS.Range("M" & r, "S" & r).Find(xR, LookAt:=xlWhole) Is Nothing Then xR.Interior.ColorIndex = 8  '¼Ð¥ÜÂÅ©³¦â
        Next

        For Each xR In xS.Range("D2:J" & r - 1)    '¨úÀx¦s®æ
            xR.Interior.ColorIndex = 0 '²M©³¦â
            For Each SP In Split(xR, ",")    '¤À¶}¼Æ¦r
                'If Val(SP) > 0 And Val(SP) = xS.Range("M" & xS.[B65536].End(xlUp).Row, "S" & xS.[B65536].End(xlUp).Row) Then xD(Val(SP)).Interior.ColorIndex = 8 '¼Ð¥ÜÂÅ©³¦â
                If Not xS.Range("M" & r, "S" & r).Find(Val(SP), LookAt:=xlWhole) Is Nothing Then xR.Interior.ColorIndex = 8: Exit For     '¼Ð¥ÜÂÅ©³¦â
            Next
        Next
    Next
End Sub
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 19:37

¦^´_ 12# n7822123
´ú¸Õ¦¨¥\
ÁÂÁ±zªºÀ°¦£©M«ü¾É~·P®¦
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 19:45

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

¦^´_ 13# n7822123
´ú¸Õ¦¨¥\
ÁÂÁ±zªºÀ°¦£©M«ü¾É~·P®¦

¤£¦n·N«ä¡A½Ð±Ð¤@¤U :
  ¦C8
  For Each Num In Split(Arr(2)(R, C), ",")
      ¾l¼Æ = (Arr(1)(R, C) + Num - 1) Mod 49 + 1
½Ð°Ý :
Num¬O«ü¶ñ¤J±±¨î½cªº´Á¶Z¼Æ  Num = "25" ¶Ü?
ÁÙ¬O¥u¬OÅÜ¼Æ ?
ÁÂÁ±z
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 20:04

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

¦^´_ 14# ML089
´ú¸Õ¦¨¥\
ÁÂÁ±zªºÀ°¦£©M«ü¾É~·P®¦

½Ð±Ð¤@¤U :
Module 3  ¾l¼Æµn¿ý
°õ¦æ°_¨Ó·|¥d¥dªº~´å¼Ð¤@­È¸õ
¦pªG§âDATA!VB½s¿è¾¹ªº¦C47  Call ¾l¼Æµn¿ý ÂI¬°µù¸Ñ~
´å¼Ð´N¥¿±`¤£¸õ¤F¡C
½Ð°Ý :
³o¬O¤°»ò­ì¦] ?
¬O¤£¬O§Úªº¹q¸£¦³°ÝÃD ?
[attach]33748[/attach]
ÁÂÁ±z
§@ªÌ: singo1232001    ®É¶¡: 2021-7-25 20:21

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-25 20:29 ½s¿è

¦^´_ 17# ziv976688
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 20:31

¦^´_ 18# singo1232001
´ú¸Õ¦¨¥\
ÁÂÁ±zªºÀ°¦£©M«ü¾É~·P®¦
§@ªÌ: singo1232001    ®É¶¡: 2021-7-25 21:22

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-25 21:34 ½s¿è
¦^´_  n7822123
´ú¸Õ¦¨¥\
ÁÂÁ±zªºÀ°¦£©M«ü¾É~·P®¦

¤£¦n·N«ä¡A½Ð±Ð¤@¤U :
  ¦C ...
ziv976688 µoªí©ó 2021-7-25 19:45


¤£¦n·N«ä¡A½Ð±Ð¤@¤U :
  ¦C8
  For Each Num In Split(Arr(2)(R, C), ",")
      ¾l¼Æ = (Arr(1)(R, C) + Num - 1) Mod 49 + 1
½Ð°Ý :
Num¬O«ü¶ñ¤J±±¨î½cªº´Á¶Z¼Æ  Num = "25" ¶Ü?
ÁÙ¬O¥u¬OÅÜ¼Æ ?
ÁÂÁ±z
'------------------------------------------
À°¦£¸ÑŪ¤@¤U
³o¬q¬OÁY¼g
»Ý­n¥ý©î¤À
¨Ã¥B¥ý±qsplitªº°ò¦¹B¥Î¤è¦¡ ¥ý¾Ç
x=Split(Arr(2)(R, C), ",")
­n¥ý¤F¸Ñ³o¬qªº·N«ä
´N¥²¶·¥ý¤F¸Ñ
Arr(2)(R, C)
¤S¬O¬Æ»ò·N«ä
Arr(1) ¸òarr(2)
§A´N·Q¹³¦¨ ¨â­ÓµêÀÀªº¤u§@ªí (¹ê»Ú¦WºÙ "°}¦C")
©Ò¥H
Arr(2)(R,C)
´N¥Nªí¦b²Ä¤G±iµêÀÀ¤u§@ªíªº ¬Y­ÓÀx¦s®æ¦]¬°¦³R¦CCÄæ­È
¦]¬°¦b°}¦C¤¤ ³B²z³t«×¤ñ¸û§Ö ¤]¤ñ¸û³æ¯Â
¨Ì·Ó·Ç2¶i3¤u§@ªí[V2]¶×¤J·í«eArr(2)µêÀÀ¤u§@ªíªº¦ì¸m
³Ì²× ´N¯à¨ú±o¤@²Õ¦r¦ê ¤ñ¦p "8,27"
¦ì¸mÀ³¸Ó¬OArr(2)°}¦Cªº(0,0)

¨º»ò§Ú­Ì¦^¨ì
x=Split(Arr(2)(R, C), ",")
·N«ä´N¬O
x=Split("8,27", ",")
³o¬O¤@ºØ§Aµ¹¥L¤À¹j­È ¦o´NÀ°§A¨Ì·Ó¤À¹j­È ¤Á¤Àªº¨ç¼Æ ¨Ã¥B·|­Ó§O¦s©ñ
¦p¤Wªº·N«ä
§Ú±N8,27 ¨Ì·Ó","²Å¸¹ ¤Á¤À
³Ì«á§Ú·|±o¨ì
8 »P27¨â­Ó­È  
¤À§O©ñ¦b
x(0)  <-¸Ì­±¬O8
x(1)  <-¸Ì­±¬O27
ªºùØ­±
¦pªG§Aµ¹¥Lªº¦r¦ê¬O5,4,3,2
¨º»ò§A´N·|±o¨ì
x(0) <-¸Ì­±¬O5
x(1) <-¸Ì­±¬O4
x(2) <-¸Ì­±¬O3
x(3) <-¸Ì­±¬O2

¦p¤W­z ¦pªG·Q­n¨ú±ox(1)¸ê®Æ
§Ú­Ì´N¥i¥H
y=x(1)
¨º»òyªº­È´N¬O4

±µµÛÁ¿
°j°é¤À¨âºØ
for i = 1 to 4  ³o¥Nªí³o¦^°é¬O 1 2 3 4
¥t¤@ºØ¬O
for each a In x
³o·§©À¤£¦Pªº¦a¤è«Ü²³æ

°²³] ²{¦b­±«e¦³40­Ó¤jÀY§L ¥L­Ì¬OA¯Z
²Ä¤@ºØ´N¬O §A»¡1¸¹ ¥L¥X¨Ó1¸¹
¦Ó¥B §A¥²¶·½T»{¸Ì­±¦³¦h¤Ö¤H ¤~¤£·|º|³ø ©ÎªÌ¦h³ø
²Ä¤GºØ«h¬O §A»¡ A¯Z³ø¼Æ
³oºØ¤è¦¡ ´N¤£¥Îª¾¹D³o¯Z¦³¦h¤Ö¤H¦s¦b
¤]´N¬O ´N±q·í«eªº¶¶¦ì²Ä¤@­Ó ¨ì³Ì«á¤@­Ó ¤@­Ó¤@­Ó¦Û¤v¯¸¥X¨Ó

³o¼Ë§Ú­Ì´N¯à¤F¸Ñ²Ä¤@¬q
  For Each Num In Split("8,27", ",")

§Ú­Ì­n¸Ì­±ªº 8,27 ½ü¬y¯¸¶i¥hNum¸Ì­±
¤è«K§Ú­Ì«áÄò¨Ï¥Î

·í8¶i¥hNum¤§«á
      ¾l¼Æ = (Arr(1)(R, C) + Num - 1) Mod 49 + 1
§Ú­ÌÄ~Äò°õ¦æ¤W­±³o¬q
Arr(1)(R,C) ¬O¤u§@ªí¤WM2ªº¦ì¸m ¤]´N¬O11
³Ì«á´NÅܦ¨
¾l¼Æ = (11+8-1) mod 49 +1
³Ì«áµª®×
¾l¼Æ= 18+1

µM«á ¦b¶i¦æ¤U¤@­Ó 27¯¸¥X¨Ó
¾l¼Æ = (11+27-1) mod 49 +1
¾l¼Æ= 38
³Ì«á¦A§â 19¸ò38µ²¦X¤@°_
´N·|Åܦ¨
19,38
§@ªÌ: n7822123    ®É¶¡: 2021-7-25 21:22

¦^´_ 16# ziv976688


   ¬OÀx¦s®æ¸Ì­±ªº¼Æ¦r³á~~Num¥u¬O­ÓÅܼƦWºÙ¦Ó¤w
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 22:04

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

¦^´_ 20# singo1232001
ÁÂÁÂS¤j±zªº¸Ô²Ó»¡©ú~
§Ú¬ãŪ«á~¦³°ÝÃD¦A¦V±z½Ð±Ð¡C
ÁÂÁ±z
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 22:05

¦^´_ 21# n7822123
ÁÂÁÂn¤j±zªº¦^ÂÐ~ÁA¸Ñ¤F
§@ªÌ: ML089    ®É¶¡: 2021-7-25 23:11

¦^´_ 17# ziv976688

§Ú°õ¦æ¬OÁÙ¦n4.5¬í§¹¦¨¡A·íµM§ï¬°°}¦C

·Ç7¶i8 ªº V2:AB2 ¸ê®Æ¦³»~¡A§A­×§ï«á¦b°õ¦æ¬Ý¬Ý
§@ªÌ: ML089    ®É¶¡: 2021-7-25 23:37

¦^´_ 17# ziv976688

°ÝÃD1¡GDATA!VB ¤U¦C©ñ¸m¦ì¸mÀ³¸Ó¦b °j°é¤§¥~
    For s = 1 To 6   '6­Ó¤u§@ªí
        Shrr = Array("·Ç2¶i3", "·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8")
.
.
    NEXT
            'Call °Ñ¼Æµn¿ý
            Call ¾l¼Æµn¿ý
            Call ¾l¼Æ¦U¨ú1
            Call ¼Ð¥Ü©³¦â

    °ÝÃD2¡G "·Ç7¶i8" °µ¥X¨Óªº¸ê®Æ¦³»~¡A§A¦A¬d¬Ý¬Ý
§@ªÌ: ziv976688    ®É¶¡: 2021-7-25 23:59

¦^´_ 25# ML089
§ÚÁÙ¨S¦³ª`·N¨ì·Ç7¶i8 ªº V2:AB2 ¸ê®Æ¦³»~
§ï¬°°}¦C.....­×§ï«á¦b°õ¦æ¬Ý¬Ý~
4¼Óªº¶Q¸Ñ¨S¦³¬Ý¨ì­×§ïªº¦a¤è¡C
½Ð±Ð±z : À³¸Ó«ç»ò§ï?
ÁÂÁ±z
PS : ¤£¬O§Úªº¹q¸£¦³°ÝÃD´NOK¤F~´X¬í³£¨S¦³Ãö«Y

DATA!VB ¤U¦C©ñ¸m¦ì¸mÀ³¸Ó¦b °j°é¤§¥~
¨ºª©­±ªº³]©w¤£´N¥¢®Ä¤F

§Ú¦Û¤v¥ý¬ã²ß¤@¤U
¤£¦n·N«ä¨Æ¨Æ³Â·Ð±z¡C
©ú¤Ñ¦A»¡!
±ß¦w!
§@ªÌ: ML089    ®É¶¡: 2021-7-26 09:04

¦^´_ 26# ziv976688

ª©­±ªº³]©w¡AÀ³¸Ó¬O©ñ¨ì³Ì«á­±¡A¶¶§Ç¦p¤U

¸ê®Æ
­pºâ
±Æª©
¦C¦L
§@ªÌ: ziv976688    ®É¶¡: 2021-7-26 13:04

¦^´_ 13# n7822123
[attach]33762[/attach]
¤£¦n·N«ä¡A¥i§_½Ð±zÀ°§Ú¬Ý¤@¤U~
¥u°õ¦æ"¼Ð¥Ü©³¦â"«ÜOK(¤£¨ì2¬í)¡A
¦ý¦pªG¦A¥[¤W"¾l¼Æµn¿ý"~ ´ú¸ÕN¦¸¡A«o³£­n¶]30¬í¤W¤U~
¬°¤°»ò·|¶]ªº³o»ò²§±`ªººC ?
¬O2003ª©¥»ªºÃö«Y¶Ü?
¯à§ïµ½¶Ü?
ÁÂÁ±z
§@ªÌ: ziv976688    ®É¶¡: 2021-7-26 14:24

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-26 14:26 ½s¿è

¦^´_ 27# ML089
[attach]33763[/attach]
ªá¤F¥b¤Ñ~±N±z©Ò½ç±Ðªº¸ÑµªÀÉ¡A¥þ³¡ÀË´ú§¹²¦~
³ø§i¦p¤U¡G
1_±zªº­Ó§O¸ÑµªÀÉ => ¥þ³¡OK

2_¥H³Ì«á§¹¦¨ªºÀÉ®×(¼Ð¥Ü©³¦â_ML089_C1)´ú¸Õ~
Call °Ñ¼Æµn¿ý©MCall ¾l¼Æµn¿ý => °õ¦æ¡A
'Call ¾l¼Æ¦U¨ú1 => ¤£°õ¦æ => ²£¥ÍA2=""®É¡A¤]·|¼Ð¥ÜÂÅ©³¦â(¥u¦³"·Ç2¶i3"¥¿±`)

3_¥H³Ì«á§¹¦¨ªºÀÉ®×(¼Ð¥Ü©³¦â_ML089_C1)´ú¸Õ~
Call °Ñ¼Æµn¿ý©MCall ¾l¼Æµn¿ý©MCall ¾l¼Æ¦U¨ú1 => ¥þ³¡°õ¦æ¡A
"·Ç5¶i6"ªº¼ÐÃD¦C·|²¾¨ì²Ä4¦C =>½Ð¥ý±NDATA!VBªº¦C59¡A§ï¬°°õ¦æª¬ºA¡A
µM«á«ö°õ¦æÁä~´ú¸Õµ²ªG¡C
¦pªG­n­«·s´ú¸Õ~½Ð«ö²M°£Áä§Y¥i¡C

4_°õ¦æ¼Ò²Õµ{¦¡½XÀ³©ñ¸m¦bDATA!VB~
For s = 1 To 6   '6­Ó¤u§@ªí
¡G
NEXT
            Call °Ñ¼Æµn¿ý
            Call ¾l¼Æµn¿ý
            Call ¾l¼Æ¦U¨ú1
            Call ¼Ð¥Ü©³¦â
§ÚÁÙ·Q¤£¥X«ç»ò¸Ñ¨Mª©­±³]©w¥¢®Äªº°ÝÃD

¥H¤W   Àµ½Ð±z½ç±Ð¬O©¯¡I  ÁÂÁ±z
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2021-7-26 14:47

Sub ¾l¼Æµn¿ý()
Dim xS As Worksheet, R&, Arr, Brr, A
For Each xS In Sheets(Array("·Ç2¶i3", "·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
    R = xS.[b65536].End(xlUp).Row - 1
    Arr = xS.[m2:ab2].Resize(R)
    ReDim Brr(1 To R, 1 To 7)
    For i = 1 To R
    For j = 1 To 7
        For Each A In Split(Arr(i, j + 9), ",")
            Brr(i, j) = Brr(i, j) & "," & Format((Arr(i, j) + Val(A)) Mod 49, "00;;49")
        Next A
        Brr(i, j) = Mid(Brr(i, j), 2)
    Next j
    Next i
    xS.[d2].Resize(R, 7) = Brr
Next xS
End Sub
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2021-7-26 14:47

Sub ¼Ð¥Ü©³¦â()
Dim xS As Worksheet, R&, Arr, A, xD, xU As Range, N&
Set xD = CreateObject("Scripting.Dictionary")
For Each xS In Sheets(Array("·Ç2¶i3", "·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
    R = xS.[b65536].End(xlUp).Row
    xS.[d2].Resize(R, 7).Interior.ColorIndex = xlNone
    Set xU = xS.[c2]
    For j = 1 To 7:   xD(Val(xS.Cells(R, j + 12))) = 1: Next j
    Arr = xS.[d1].Resize(R, 7)
    For i = 2 To R:  For j = 1 To 7
        For Each A In Split(Arr(i, j), ",")
            If xD(Val(A)) > 0 Then Set xU = Union(xS.Cells(i, j + 3), xU): Exit For
        Next A
    Next j: Next i
    '-------------------------------
    R = xS.[a65536].End(xlUp).Row
    xS.[a4].Resize(R).Interior.ColorIndex = xlNone
    Arr = xS.[a1].Resize(R)
    For i = 4 To R
        If xD(Val(Arr(i, 1))) > 0 Then Set xU = Union(xS.Cells(i, 1), xU)
    Next i
    xU.Interior.ColorIndex = 8
    xS.[c2].Interior.ColorIndex = xlNone
    xD.RemoveAll: N = 0
Next xS
End Sub
§@ªÌ: ziv976688    ®É¶¡: 2021-7-26 15:17

¦^´_ 31# ­ã´£³¡ªL
ª©¥D :
§Ú¥»¨Ó¬O·Q¬ã²ß¦U¦ì¤j¤jªº»yªk¡A©Ò¥H°w¹ï¦U¤Hªº»yªk¡A§Ú¦³¤£ÁA¸Ñªº¦a¤èÀWÀWµo°Ý~µ¹¤j®a²K³Â·Ð¤F~©êºp!

·PÁ±z±N³o¤G¬qµ{¦¡¸É»ô¡C
±z¤Ó¼F®`¤F~¥þÀÉ°õ¦æ®É¶¡¤£¨ì2¬í

¸U¤À·PÁ±zªº«ü¾É©MÀ°¦£
§@ªÌ: ML089    ®É¶¡: 2021-7-26 20:57

¦^´_ 29# ziv976688

¥ý¦^ÂаÝÃD 2
±Æ§Ç¿ù»~­×¥¿¡AxD.Count = 1®É¡A±Æ§Ç½d³òÅܦ¨¾ã­Óªí®æ³y¦¨¿ù»~

Sub ¾l¼Æ¦U¨ú1()
Dim xD As Object, xS As Worksheet, xR As Range, SP
   
    Set xD = CreateObject("Scripting.Dictionary")
    For Each xS In Sheets(Split("·Ç2¶i3 ·Ç3¶i4 ·Ç4¶i5 ·Ç5¶i6 ·Ç6¶i7 ·Ç7¶i8")) '¨úªí®æ
            For Each xR In xS.Range("D2:J" & xS.[B65536].End(xlUp).Row) '¨úÀx¦s®æ
            For Each SP In Split(xR, ",") '¤À¶}¼Æ¦r
                If Val(SP) > 0 Then xD(Val(SP)) = "" '¦r¨å²Õ¦X
            Next
        Next
        xS.[A2:A110].ClearContents '²M°£Àx¦s®æ¤º®e
        xS.[a2] = xD.Count & "­Ó": xS.[A3] = "¸¹½X"
        N = xD.Count: If N = 0 Then Exit For
        With xS.[A4].Resize(N)
            .Value = Application.Transpose(xD.keys)
            '±Æ§Ç¿ù»~­×¥¿¡AxD.Count = 1®É¡A±Æ§Ç½d³òÅܦ¨¾ã­Óªí®æ³y¦¨¿ù»~
            If N > 1 Then .Sort key1:=.Item(1), Order1:=xlAscending, Header:=xlNo
            xD.RemoveAll
        End With
    Next
End Sub
§@ªÌ: ziv976688    ®É¶¡: 2021-7-26 23:09

¦^´_ 33# ML089
ª©¥D :
¾l¼Æ¦U¨ú1´ú¸Õ¦¨¥\
ÁÂÁ±z­@¤ß«ü¾É~·P®¦
±zªº¥[µù~Åý§Ú¨ü¯q¨}¦h
§@ªÌ: ziv976688    ®É¶¡: 2021-7-27 05:57

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

¦^´_ 33# ML089
ª©¥D :
§Ú·Q±zªº"¼Ð¥Ü©³¦â"¤§µ{¦¡½XÀ³¸Ó¬O¥¿¸Ñ~
¦]¬°§Úµo²{Bug¥X¦b¦C12 xS.[a2] = xD.Count & "­Ó"¡A
¥¦·|Åý"·Ç6¶i7"ªºA2Åã¥Ü0­Ó¡A¦ý"·Ç7¶i8"ªºA2«oÅã¥Ü""¡A¥B¼Ð¥ÜÂÅ©³¦â¡F
¦pªG§Ú¦b¦C20´¡¤J xS.[a2] = Application.Count(xS.[A4:A52]) & "­Ó" ´ú¸Õ~
"·Ç7¶i8"ªºA2¤§ÂŦâ¼Ð¥Ü´N·|®ø¥¢¡C¦ýÁÙ¬OÅã¥Ü""(¤£¬OÅã¥Ü0­Ó)~
¥i¨£´¡¤J¦C20¤]¤£¬O§¹¥þ¥Í®Ä(¥¿½T)~¬O¤°»ò¦]?§Ú¤]¤£À´¡C
¦]¬°µ{¦¡ªº¬yµ{Ãö«Y¡A§Ú¬J¤£¯à²¾°£¦C12¡A¤]¤£ª¾¹D«ç»ò­×¥¿?
©Ò¥H¤S¤W¨Ó½Ð±Ð
¥H¤W¥u¬O§Ú­Ó¤Hªº¤@ÂI·Qªk¡A¶È¨Ñ±z°Ñ¦Ò~BUGªº²q´ú¹ï©Î¤£¹ï¡A§Ú¨S¦³«H¤ß^^"

¯u¤£¦n·N«ä¡A¦]¬°·Q¬ã²ß¶Q»yªk¡A¤@¦Aµ¹±z²K³Â·Ð~©|½Ð±z¨£½Ì
VBAÁÙ¯u¤£©ö¾Ç¡A¥u¬O¤@­Ó¼Æ­È­Ó¼Æ²Î­pªº¤p°ÝÃD~´N¦Ò­Ë§Ú¤F

§@ªÌ: ML089    ®É¶¡: 2021-7-27 10:34

¦^´_ 26# ziv976688

­×§ïDATA¸Ìªº ¥Dµ{¦¡¡A±N¸ê®Æ½Æ»s»P®æ¦¡¤Æ§@·~¤ÀÂ÷¡A
­ì¥ý¸ê®Æ½Æ»s¤w¸g¬O§¹¾ã§@·~µ{§Ç¡A©ñ¦b®æ¦¡¤Æ§@·~¤º¦b¨C­Óªí®æ¤S­«½Æ°µ6¦¸
ÀɮװѦҦp¤U

    [attach]33768[/attach]
§@ªÌ: ML089    ®É¶¡: 2021-7-27 11:24

¦^´_ 35# ziv976688
§Ú·Q±zªº"¼Ð¥Ü©³¦â"¤§µ{¦¡½XÀ³¸Ó¬O¥¿¸Ñ~
¦]¬°§Úµo²{Bug¥X¦b¦C12 xS.[a2] = xD.Count & "­Ó"¡A
¥¦·|Åý"·Ç6¶i7"ªºA2Åã¥Ü0­Ó¡A¦ý"·Ç7¶i8"ªºA2«oÅã¥Ü""¡A¥B¼Ð¥ÜÂÅ©³¦â¡F
¦pªG§Ú¦b¦C20´¡¤J xS.[a2] = Application.Count(xS.[A4:A52]) & "­Ó" ´ú¸Õ~
"·Ç7¶i8"ªºA2¤§ÂŦâ¼Ð¥Ü´N·|®ø¥¢¡C¦ýÁÙ¬OÅã¥Ü""(¤£¬OÅã¥Ü0­Ó)~
¥i¨£´¡¤J¦C20¤]¤£¬O§¹¥þ¥Í®Ä(¥¿½T)~¬O¤°»ò¦]?§Ú¤]¤£À´¡C
¦]¬°µ{¦¡ªº¬yµ{Ãö«Y¡A§Ú¬J¤£¯à²¾°£¦C12¡A¤]¤£ª¾¹D«ç»ò­×¥¿?


¾l¼Æ¦U¨ú1 ¦³ÂIBUG¡AxD.count=0®É¤£À³¸ÓEXIT FOR¡A¾É­P«á­±ªí®æ¨S¦³³B²z
Sub ¾l¼Æ¦U¨ú1()
    Dim xD As Object, xS As Worksheet, xR As Range, SP, N
    Tm = Timer
    Set xD = CreateObject("Scripting.Dictionary")
    For Each xS In Sheets(Split("·Ç2¶i3 ·Ç3¶i4 ·Ç4¶i5 ·Ç5¶i6 ·Ç6¶i7 ·Ç7¶i8"))    '¨úªí®æ
        For Each xR In xS.Range("D2:J" & xS.[B65536].End(xlUp).Row)    '¨úÀx¦s®æ
            For Each SP In Split(xR, ",")    '¤À¶}¼Æ¦r
                If Val(SP) > 0 Then xD(Val(SP)) = ""    '¦r¨å²Õ¦X
            Next
        Next
        N = xD.Count
        xS.[A2:A110].ClearContents    '²M°£Àx¦s®æ¤º®e
        xS.[A2] = IIf(N = 0, "", N & "­Ó")
        xS.[A3] = "¸¹½X"
        
        If N > 1 Then    'xD.Count > 1®É¡A¤~»Ý­n±Æ§Ç¡A¤£µM·|¿ù
            With xS.[A4].Resize(N)
                .Value = Application.Transpose(xD.keys)
                .Sort key1:=.Item(1), Order1:=xlAscending, Header:=xlNo
            End With
        End If
        xD.RemoveAll
    Next
    Debug.Print Format(Timer - Tm, "0.00¬í") & " ¾l¼Æ¦U¨ú1"
End Sub

®æ¦¡¤Æ³¡¤À¯à»Ý­n¦b·L½Õ
§@ªÌ: ziv976688    ®É¶¡: 2021-7-27 16:35

¦^´_ 37# ML089
xS.[A2] = IIf(N = 0, "", N & "­Ó")
µ{¦¡½X¨S¦³¿ù~
¬°¤°»ò"·Ç6¶i7"©M "·Ç7¶i8"ªºA2¤£¤@­P ?
¶i7ªºA2=0­Ó¡F¶i8ªºA2="" =>¤£¬OA2³£=""
½Ð½ç±Ð!ÁÂÁ±z
§@ªÌ: ziv976688    ®É¶¡: 2021-7-27 17:45

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

¦^´_ 37# ML089
ª©¥D:
¥þ³¡OK¤F~¶]§¹¤£¨ì2¬í~
ÁÂÁ±z±N¥þ³¡ªºµ{¦¡½X(§t©³¦â¼Ð¥Ü)­«·s¾ã²z~·P®¦

PS :38¼Óªº¦^ÂнФ£­n²z·|~§Ú¨S¦³±N36¼Óªº½d¨ÒÀÉ¡A¦A§ï¶K¤W37¼Óªº¶Q¸Ñ¡C
¦A¦¸·PÁ±z¦h¤é¨Óªº¼ö¤ßÀ°¦£©M­@¤ß«ü¾É~±z¨¯­W¤F
§@ªÌ: ML089    ®É¶¡: 2021-7-27 17:47

¦^´_  ML089
xS.[A2] = IIf(N = 0, "", N & "­Ó")
µ{¦¡½X¨S¦³¿ù~
¬°¤°»ò"·Ç6¶i7"©M "·Ç7¶i8"ªºA2¤£¤@­P ...
ziv976688 µoªí©ó 2021-7-27 16:35



  ¤§«eµ{¦¡¿ù»~¬O ¦]¬°«á­±¦³¦¹µ{§Ç EXIT FOR¡A
·í "·Ç6¶i7" [A2] = "" : EXIT FOR ´N¸õÂ÷FOR °j°é¡A"·Ç7¶i8"¨S¦³³Q°õ¦æ¨ì©Ò¥H¬O ªÅ®æ(¤@¯ëµø¬°0)
§@ªÌ: ziv976688    ®É¶¡: 2021-7-27 18:06

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

¦^´_ 40# ML089
¤£¦n·N«ä¡A¬O§Ú¨S¦³ª`·N¨ì­n±N36¼Óªº¶Q½d¨ÒÀÉ¡A¦A¶K¤W37¼Óªº¶Q¸Ñ
·PÁ±z
§@ªÌ: n7822123    ®É¶¡: 2021-7-28 04:04

¦^´_ 28# ziv976688

¼Ð¥Ü©³¦â¡B¾l¼Æµn¤J ³£¤w¸g¬O¶]¦U­Ó¤u§@ªí¤F

§A¦n¹³¤S§â³o¨â­Ó¼g¦b¥Dµ{¦¡ªºFor °j°é¸Ì­±¡A°õ¦æ¤FN¦¸¤@¼Ëªº¾Þ§@~

§@ªÌ: ziv976688    ®É¶¡: 2021-7-28 06:07

¦^´_ 42# n7822123
¦hÁ´£¿ô~§Ú¦AÀˬd¬Ý¬Ý¡C
ÁÂÁ±z
§@ªÌ: ziv976688    ®É¶¡: 2021-7-28 06:15

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

¦^´_ 4# ML089
[attach]33773[/attach]   =>¥i«ö²M°£Áä~­«·s´ú¸Õ¡C
ª©¥D : ±z¦n !
½Ð±Ð±z~
Module 3
¥ý§â¦C7 SP = (SP + xV.Offset(, -9)) Mod 49: If SP = 0 Then SP = 49  'V2+M2 mod 49
½Õ¾ã¬°SP = (xV.Offset(, -9) + SP) Mod 49: If SP = 0 Then SP = 49  'M2+V2 mod 49
¥H§Q§@»Ý¨D»¡©ú¡C

»Ý¨D¡G
·Q±NSP = (xV.Offset(, -9) + SP) Mod 49: If SP = 0 Then SP = 49  'M2+V2 mod 49
§ï¬°SP = (xV.Offset(, -9) - SP) Mod 49: If SP = 0 Then SP = 49  'M2-V2 mod 49
µM«á¦³¤GºØ¤è¦¡ªº­pºâª¬ªp :
A¦¡ : ·í -SP¤§«áªº®t­È=­t¼Æ®É¡A«hSP¦Û°ÊÂର¥¿¼Æ(§Y¦p=µ´¹ï­È)
¥H¨ç¦¡§@²³æ»¡©ú~
EX : ·Ç2¶i3!........·Ç7¶i8!ªºD2=
=IF((V2<>"")*OR(IF(MOD(ABS(M2-V2),49),MOD(ABS(M2-V2),49),49)=($M$27:$S$27)),IF(MOD(ABS(M2-V2),49),MOD(ABS(M2-V2),49),49),"")
¥k©Ô¦A¤U©Ô¶ñº¡
EX :ªºA¦¡_Ans (·Ç2¶i3!)¡F¡K¡K.¨ä¾lÃþ±À¡C

B¦¡ : ·í-SP¤§«áªº®t­È=­t¼Æ®É¡A«hSP¦Û°Ê¦A+49Âର¥¿¼Æ(§Y¦p=¤@¯ëªº¨ç¼Æ­pºâ)
¥H¨ç¦¡§@²³æ»¡©ú~
EX : ·Ç2¶i3!........·Ç7¶i8!ªºD2=
=IF((V2<>"")*OR(IF(MOD(M2-V2,49),MOD(M2-V2,49),49)=($M$27:$S$27)),IF(MOD(M2-V2,49),MOD(M2-V2,49),49),"")
EX :  B¦¡_Ans (·Ç2¶i3!)¡F¡K¡K.¨ä¾lÃþ±À¡C  

¥H¤W ¤GºØªº­pºâ¤è¦¡¤§µ{¦¡½X~Àµ½Ð«ü¾É¡C
ÁÂÁ±z^^

§@ªÌ: ziv976688    ®É¶¡: 2021-7-28 06:51

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-28 06:53 ½s¿è

¦^´_ 30# ­ã´£³¡ªL
[attach]33774[/attach]    =>¥i«ö²M°£Áä~­«·s´ú¸Õ¡C
ª©¥D : ±z¦n !
½Ð±Ð±z~
Module 3
»Ý¨D¡G
·Q±N¦C10  Brr(i, j) = Brr(i, j) & "," & Format((Arr(i, j) + Val(A)) Mod 49, "00;;49")
§ï¬° Brr(i, j) = Brr(i, j) & "," & Format((Arr(i, j) - Val(A)) Mod 49, "00;;49")
µM«á¦³¤GºØ¤è¦¡ªº­pºâª¬ªp :
A¦¡ : ·í- Val(A)¤§«áªº®t­È=­t¼Æ®É¡A«hBrr(i, j)¦Û°ÊÂର[colorBlue]=¥¿¼Æ(§Y¦p=µ´¹ï­È)
¥H¨ç¦¡§@²³æ»¡©ú~
EX : ·Ç2¶i3!........·Ç7¶i8!ªºD2=
=IF((V2<>"")*OR(IF(MOD(ABS(M2-V2),49),MOD(ABS(M2-V2),49),49)=($M$27:$S$27)),IF(MOD(ABS(M2-V2),49),MOD(ABS(M2-V2),49),49),"")
¥k©Ô¦A¤U©Ô¶ñº¡
EX :A¦¡_Ans (·Ç2¶i3!)¡F¡K¡K.¨ä¾lÃþ±À¡C

B¦¡ : ·í- Val(A)¤§«áªº®t­È=­t¼Æ®É¡A«hBrr(i, j)¦Û°Ê¦A+49Âର¥¿¼Æ(§Y¦p=¤@¯ëªº¨ç¼Æ­pºâ)
¥H¨ç¦¡§@²³æ»¡©ú~
EX : ·Ç2¶i3!........·Ç7¶i8!ªºD2=
=IF((V2<>"")*OR(IF(MOD(M2-V2,49),MOD(M2-V2,49),49)=($M$27:$S$27)),IF(MOD(M2-V2,49),MOD(M2-V2,49),49),"")
EX :  B¦¡_Ans (·Ç2¶i3!)¡F¡K¡K.¨ä¾lÃþ±À¡C  

¥H¤W ¤GºØªº­pºâ¤è¦¡¤§µ{¦¡½X~Àµ½Ð«ü¾É¡C
ÁÂÁ±z^^

§@ªÌ: ML089    ®É¶¡: 2021-7-28 11:01

¦^´_ 44# ziv976688

SP = (xV.Offset(, -9) - SP) Mod 49: If SP = 0 Then SP = 49  'M2-V2 mod 49

A¦¡ : ·í -SP¤§«áªº®t­È=­t¼Æ®É¡A«hSP¦Û°ÊÂର¥¿¼Æ(§Y¦p=µ´¹ï­È)
SP = ABS(xV.Offset(, -9) - SP) Mod 49: If SP = 0 Then SP = 49  'M2-V2 mod 49


B¦¡ : ·í-SP¤§«áªº®t­È=­t¼Æ®É¡A«hSP¦Û°Ê¦A+49Âର¥¿¼Æ(§Y¦p=¤@¯ëªº¨ç¼Æ­pºâ)
SP = (xV.Offset(, -9) - SP + 49) Mod 49: If SP = 0 Then SP = 49  'M2-V2 mod 49
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2021-7-28 11:45

¦^´_ 45# ziv976688

1)
Brr(i, j) = Brr(i, j) & "," & Format(ABS((Arr(i, j) - Val(A)) Mod 49), "00;;49")

2)
V= (Arr(i, j) - Val(A)) Mod 49
IF V<0 THEN V=V+49
Brr(i, j) = Brr(i, j) & "," & Format(V, "00;;49")
§@ªÌ: ziv976688    ®É¶¡: 2021-7-28 12:26

¦^´_ 46# ML089
¦^´_ 47# ­ã´£³¡ªL
¤G¦ìª©¥D :
¤£¦n·N«ä¡A¤½¦¡¼g¿ù¤F  
´ú¸Õ¦¨¥\
ÁÂÁ¤G¦ìª©¥DªºÀ°¦£©M«ü¾É~·P®¦
§@ªÌ: ML089    ®É¶¡: 2021-7-28 12:56

¦^´_ 48# ziv976688


B¦¡ : ·í-SP¤§«áªº®t­È=­t¼Æ®É¡A«hSP¦Û°Ê¦A+49Âର¥¿¼Æ(§Y¦p=¤@¯ëªº¨ç¼Æ­pºâ)
SP = (xV.Offset(, -9) - SP + 49) Mod 49: If SP = 0 Then SP = 49  'M2-V2 mod 49

­Y¬O
11-90 = -79¡A¦A+49Åܦ¨ -30 ¡AÁÙ¬O­t¼Æ«ç»ò¿ì?
§@ªÌ: ziv976688    ®É¶¡: 2021-7-28 14:03

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-28 14:13 ½s¿è

¦^´_ 49# ML089
ª©¥D :
ÁÂÁ±zªº´£¿ô

For Each SP In Split(xV, ",")
:
:
Next
xV¤£¬O¤w­­¨î¦b0 To 48¤F¶Ü?
ÁÙ¬O§Ú¤S¿ù¤F
¦pªG§Ú¤S»~¸Ñµ{¦¡½Xªº·N²[~Àµ½Ð½ç¥¿¡C
ÁÂÁ±z

­ã¤jªº°Ñ¼Æµn¿ý(Module 2)
Sub °Ñ¼Æµn¿ý()
    Dim xS As Worksheet, xD, Arr(6), Brr, R&, i&, j%, k%, x%, N%, T$
    Set xD = CreateObject("Scripting.Dictionary")
    For Each xS In Sheets(Array("·Ç2¶i3", "·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
        xD.RemoveAll
        R = xS.[ac65536].End(xlUp).Row - 1
        N = N + 1: If R < 1 Then GoTo s01
        ReDim Brr(1 To R - 1, 1 To 7)
        For k = 0 To N
            Arr(k) = xS.[ae2].Cells(1, k * 9 + 1).Resize(R, 7)
            For j = 1 To 7
                xD(Arr(k)(R, j) & "|" & k) = 1
            Next j
        Next k
        '--------------------------------------
        For i = 1 To R - 1
            For j = 1 To 7
                For x = 0 To 48
                    For k = 0 To N
                       ' T = (Arr(k)(i, j) + x) Mod 49 & "|" & k
                        V = (Arr(k)(i, j) - x) Mod 49
                        If V < 0 Then V = V + 49
                        T = V & "|" & k
                        If xD(T) = 0 Then GoTo x001
                    Next k
                    Brr(i, j) = Brr(i, j) & IIf(Brr(i, j) = "", "", ",") & x
x001:                     Next x
            Next j
        Next i
        '-------------------------------------
        With xS.[v2].Resize(R - 1, 7) 'µn¿ý¦ì¸m
            .NumberFormatLocal = "@"
            .Value = Brr
        End With
s01:         Next
End Sub
§@ªÌ: ziv976688    ®É¶¡: 2021-7-28 14:32

¦^´_ 42# n7822123
¤w­×¥¿~
­×¥¿«á°õ¦æ¥¿±`(¤£¨ì2¬í)
ÁÂÁ±zªº«ü¾É©MÀ°¦£~·P®¦
§@ªÌ: ML089    ®É¶¡: 2021-7-28 15:50

¦^´_ 50# ziv976688

¤F¸Ñ¡A¼Æ¦r­Y¬O0~48´N¨S¦³°ÝÃD
¦]¬°¤§«e¼g¤½¦¡¦³°Ý¹L§A¡A¼Æ¦r¬O§_±±¨î¦b99¥H¤U¡A©Ò¥H¦³ÂI»~·|¡C
§@ªÌ: ziv976688    ®É¶¡: 2021-7-29 00:30

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-29 00:40 ½s¿è

¦^´_ 52# ML089
ª©¥D :
·PÁ±zªºÃö¤ß
¨º®É­Ô~¬O´£°ÝA4:A52=D2:J26ªº¾l¼Æ¦U¨ú1
±z­n½T©wAÄæ¬O§_¬°³Ì¦h¬O2¦ì¼Æªº¾ã¼Æ?

¨S¦³±z­@¤ßªºÀ°§Ú±Nµ{¦¡½X¬yµ{¥þ³¡­«·s¾ã²z¡A
§Ú¬OµLªk¶¶§Q§¹¦¨¥»¦¸¦U¤À©î¶µªº°ÝÃD»Ý¨D~·P®¦
§@ªÌ: ziv976688    ®É¶¡: 2021-7-29 02:32

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-29 02:50 ½s¿è

¦^´_ 13# n7822123
½Ð±Ð±z :
¦C9 ¾l¼Æ = (Arr(1)(R, C) + Num - 1) Mod 49 + 1  '¥[ºâMod(M2+V2,49)

¦pªG±N¶Qµ{¦¡½X§ï¬°´îºâ¡A¨Ã±N¨ä®t­ÈÂରµ´¹ï­È¡A¨Ï¨ä³£¬°¥¿¼Æ
¾l¼Æ = (Abs(Arr(1)(R, C) - Num) - 1) Mod 49 + 1    '´îºâMod(ABS(M2-V2),49)
¦ý³o¼Ë§ï~·|¦³¤@­Ó¤pBug : ·í¾l¼Æ=0 ®É¡A¤£·|¦Û°ÊÂର49
¥²¶·¦A¥[  If ¾l¼Æ = 0 Then ¾l¼Æ = 49

½Ð°Ý :¥H¶Q­ìµ{¦¡½X­n±N®t­È§ï¬°µ´¹ï­Èªº¥¿½T»yªk ?
ÁÂÁ±z
§@ªÌ: ziv976688    ®É¶¡: 2021-7-29 03:41

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-29 03:45 ½s¿è

¦^´_ 37# ML089
[attach]33777[/attach]
ª©¥D :
¤£¦n·N«ä¡A¤S¦³¤@­Ó¤pBug~
·Ç5¶i6!A4=""
A4À³¸Ó=46 ¡C
Àµ½Ð±z½ç¥¿~ÁÂÁ±z
§@ªÌ: ML089    ®É¶¡: 2021-7-29 13:51

¥»©«³Ì«á¥Ñ ML089 ©ó 2021-7-29 13:54 ½s¿è

¦^´_ 55# ziv976688

¯u¤£¦n·N«ä¡A¤pBUG¤£Â_¡C
Sub ¾l¼Æ¦U¨ú1()
    Dim xD As Object, xS As Worksheet, xR As Range, SP, N
    Set xD = CreateObject("Scripting.Dictionary")
   
    For Each xS In Sheets(Split("·Ç2¶i3 ·Ç3¶i4 ·Ç4¶i5 ·Ç5¶i6 ·Ç6¶i7 ·Ç7¶i8"))    '¨úªí®æ
        For Each xR In xS.Range("D2:J" & xS.[B65536].End(xlUp).Row)    '¨úÀx¦s®æ
            For Each SP In Split(xR, ",")    '¤À¶}¼Æ¦r
                If Val(SP) > 0 Then xD(Val(SP)) = ""    '¦r¨å²Õ¦X
            Next
        Next
        N = xD.Count
        xS.[A2:A110].ClearContents    '²M°£Àx¦s®æ¤º®e
        xS.[A2] = IIf(N = 0, "", N & "­Ó")
        xS.[A3] = "¸¹½X"
       If N > 0 Then
            With xS.[A4].Resize(N)
                .Value = Application.Transpose(xD.keys)
                'N > 1®É¤~»Ý­n±Æ§Ç¡A¤£µM·|¿ù
                If N > 1 Then .Sort key1:=.Item(1), Order1:=xlAscending, Header:=xlNo
            End With
        End If
        xD.RemoveAll
    Next
End Sub
§@ªÌ: ziv976688    ®É¶¡: 2021-7-29 14:47

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-29 15:14 ½s¿è

¦^´_ 56# ML089
¯u¤£¦n·N«ä¡A¤pBUG¤£Â_¡C

ª©¥D :
±z¤£­n³o»ò»¡¡A±zÄ@·N«ü¾É¡A§Ú¤w¸g¬O·P¿E¤£ºÉ¤F

­n¤£¬O±z¤£¹½¨ä·Ðªº­×¥¿ Bug¡A§Ú¤]¨S¾÷·|¾Ç·|¥¿½Tªº»yªk~
¨Ò¦p³o¤@¦¸ªºBug¡A§Ú¬O¥J²ÓªººÝ¸Ô¾ã½gµ{¦¡½X¡A¦ý´N¬OÁ@¤£¥X Bug¬O¦b­þ¸Ì?
¤]´¿¸Õ±NN>1§ï¬°N>=1¡A¦ý¥¢±Ñ¤F~
µ²ªG¬O±NN>0©MN>1¤À§O§PÂ_´N¥i¥H¸Ñ¨M¡C

ÁÂÁ±zªº­@¤ß«ü¾É©MÀ°¦£~·P®¦

PS : 54¼Ó~ If ¾l¼Æ = 0 Then ¾l¼Æ = 49 ªº»yªk¤]¬O¦V±z¾Ç²ß¨Óªº




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)