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

[µo°Ý] ·j´M³Ì«á¤@¦C³£¦³¬Û¦P¼Æ¦rªº²Õ¦X¡C

¦^´_ 10# ziv976688




¥H¤W 1 ~ 8 ªº
        StrRng =
        Nrange =
        num    =
        RrngA  =
        CrngA  =
        RrngB  =
        CrngB  =
        RrngC  =
        CrngC  =
        Order  =
        Number =
        Ncount =
¯à§_¤@¤@§iª¾¡H

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2017-1-9 16:43 ½s¿è

¦^´_ 13# c_c_lai
¤£¦n·N«ä¡C±z¥i¯à»~¸Ñ¹Ï¥Üªº°t¸m»P»¡©ú¤F¡F
­«·s»¡©ú¦p¤U:  

    StrRng = "1"
    Nrange = "28"
    num = "15"
    RrngA = "21-24"
    CrngA = "1-2"
    RrngB = "18-21"
    CrngB = "1-2"
    Order = ""
    Number = "3,11,21-26,43,49"
    Ncount = "2-3"

¯à§_´N¥H¦¹¹Ï¥Ü¡A ¦A±N¥¦¸àÄÀ¤@¤U (A²Õ¦X¡BB²Õ¦X¡B°ò·Ç¦Cªº­q©w)¡H
EX¡J
·í¨úRrngA=¨ä¤¤ªº²Ä24´Á¡FCrngA=¨ä¤¤ªº1¡FRrngB=¨ä¤¤ªº²Ä20´Á¡FCrngB=¨ä¤¤ªº1®É¡F
«h¨ä
²Ä24´Á¤§²Ä3¦ì(DÄæ)¶}21(=RrngA_CrngA=A°ò·Ç²Õ¦X)¡F©¹¤U4´Á=¶}¼ú´Á¡C
²Ä20´Á¤§²Ä5¦ì(FÄæ)¶}30(=RrngB_CrngB=B°ò·Ç²Õ¦X)¡F©¹¤U8´Á=¶}¼ú´Á¡C
²Ä24´Á¤§²Ä3¦ì(DÄæ)¶}21)¥B¨ä©¹¤W4´Áªº²Ä20´Á¤§²Ä5¦ì(FÄæ)¶}30(=RrngA_CrngA +RrngB_CrngB=A°ò·Ç²Õ¦X*B°ò·Ç²Õ¦X)¡F©¹¤U4´Á=¶}¼ú´Á¡C

·í¥Ñ²Ä24´Á(A°ò·Ç²Õ¦X)©¹¤W·j´M¡J
²Ä1¦¸¥X²{²Ä3¦ì(DÄæ)¶}21ªº´Á¼Æ¬°22´Á(²Ä1­ÓA²Õ¦XÅçÃÒª©)¡F©¹¤U4´Á=26´Á¡A¶}03,11,42,45,46,49,21
²Ä2¦¸¥X²{²Ä3¦ì(DÄæ)¶}21ªº´Á¼Æ¬°20´Á(²Ä2­ÓA²Õ¦XÅçÃÒª©)¡F©¹¤U4´Á=24´Á¡A¶}11,17,21,26,43,49,03
½Ð¨£¹Ï¥Ü1

·í¥Ñ²Ä20´Á(B°ò·Ç²Õ¦X)©¹¤W·j´M¡J
²Ä1¦¸¥X²{²Ä5¦ì(FÄæ)¶}30ªº´Á¼Æ¬°18´Á(²Ä1­ÓB²Õ¦XÅçÃÒª©)¡F©¹¤U8´Á=26´Á¡A¶}03,11,42,45,46,49,21
²Ä2¦¸¥X²{²Ä5¦ì(FÄæ)¶}30ªº´Á¼Æ¬°16´Á(²Ä2­ÓB²Õ¦XÅçÃÒª©)¡F©¹¤U8´Á=24´Á¡A¶}03,11,42,45,46,49,21
½Ð¨£¹Ï¥Ü2

·í¥Ñ²Ä24´Á(A°ò·Ç²Õ¦X)©¹¤W·j´M¡J
²Ä1¦¸¥X²{²Ä3¦ì(DÄæ)¶}21¥B¨ä©¹¤W4´Áªº²Ä5¦ì(FÄæ)¶}30ªº´Á¼Æ¬°22,18(²Ä1­ÓA²Õ¦X*B²Õ¦XÅçÃÒª©)¡F©¹¤U4´Á=26´Á¡A¶}03,11,42,45,46,49,21
²Ä2¦¸¥X²{²Ä3¦ì(DÄæ)¶}21¥B¨ä©¹¤W4´Áªº²Ä5¦ì(FÄæ)¶}30ªº´Á¼Æ¬°20,16(²Ä2­ÓA²Õ¦X*B²Õ¦XÅçÃÒª©)¡F©¹¤U4´Á=24´Á¡A¶}11,17,21,26,43,49,03
½Ð¨£¹Ï¥Ü3

¨Ì¾ÚÅÞ¿è±ø¥ó¡J·í¦U²Õ¦Xªº²Ä1­Ó¨ì²Än­Ó¤§¦UÅçÃÒª©³£¦³¥X²{¥ô1­Ó(§t)¥H¤Wªº¬Û¦P«ü©w¸¹½X«h¦¨¥ß~~
¦]¬°¥»¨Ò¡J¦U²Õ¦Xªº²Ä1­Ó©M²Ä2­Ó¤§¦UÅçÃÒª©³£¦³¥X²{03,11,21,49¡A©Ò¥H²Å¦Xn=2ªºÅÞ¿è±ø¥ó¡J¥»¨Ò¦¨¥ß¡C
½Ð¨£¶}¼úª©&3­Ó²Õ¦XªºÅçÃÒª©©Ô¥­¹Ï»¡


®ÄªGÀɮתº»Ý¨D¡J½Ð¸Ô¨£Sheet1

P.S.
A°ò·Ç²Õ¦X©MB°ò·Ç²Õ¦X©MA°ò·Ç²Õ¦X*B°ò·Ç²Õ¦Xªº¦UÅçÃÒª©¤£¬O¤@©w­n¦P¬°¤@­Ó²Õ¦X~~~
¥»¨ÒA°ò·Ç²Õ¦X©MB°ò·Ç²Õ¦X©MA°ò·Ç²Õ¦X*B°ò·Ç²Õ¦Xªº¦UÅçÃÒª©¦P¬°¤@­Ó²Õ¦X~~¯ÂÄÝ¥©¦X¡C

½Ð­«·sÀ˵ø¤ñ¹ï¨ä¥L½d¨Ò¡F¦p¦³¤£¸Ñªº¦a¤è¡A©|½Ð¤£§[§iª¾¡CÁÂÁÂ!

TOP

¦^´_ 12# ziv976688
  1.     Nrange = "28"
  2.     RrngA = "22-26"
  3.     CrngA = "1-2"   

  4.     RrngB = "20-24"
  5.     CrngB = "1-2"   
  6.     Number = "3,11,21-26,43,49"
½Æ»s¥N½X
³o¼Ëªºµ{¦¡½X»P¹Ï¥Üªº»¡©ú¹ïºÙ¶Ü¡H
¯à§_´N¥H¦¹¹Ï¥Ü¡A ¦A±N¥¦¸àÄÀ¤@¤U (A²Õ¦X¡BB²Õ¦X¡B°ò·Ç¦Cªº­q©w)¡H

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2017-1-9 12:54 ½s¿è

EX:6#´N¬O¥H²Ä20´Á¬°A°ò·Ç´Á¼Æ¡A¥t¥H²Ä15´Á¬°B°ò·Ç´Á¼Æ¡F«hA°ò·Ç´Á¼Æ*B°ò·Ç´Á¼Æ=20*15
¦]¬°ÀɮצWºÙ¤£¯à¥H²Å¸¹"*"ªí¥Ü¡A¥u¦n¥H"+"´À¥N¡C
­×¥¿µ§»~~~~
EX:6#´N¬O¥H²Ä24´Á¬°A°ò·Ç´Á¼Æ¡A¥t¥H²Ä20´Á¬°B°ò·Ç´Á¼Æ¡F«hA°ò·Ç´Á¼Æ*B°ò·Ç´Á¼Æ=24*20
¦]¬°ÀɮצWºÙ¤£¯à¥H²Å¸¹"*"ªí¥Ü¡A¥u¦n¥H"+"´À¥N¡C

TOP

¦^´_ 9# c_c_lai

¬O«ü22´Á¨ì26´Á¤§¶¡¡A21¥X²{4¦¸¡F11¥X²{3¦¸¡F02¥X²{2¦¸¡C
¦U´Á¼Æ»P´Á¼Æ¤§¶¡ªº¬Y¸¹½X¦@¥X²{´X¦¸¡A»P¥»ÃDªºÅÞ¿è±ø¥ó©M»Ý¨DµLÃö¡C



¦Ü©ó
(¤@) «ü©w¸¹½Xªº½d³ò
     ¬O«ü "A°ò·Ç´Á¼Æ21´Á¨ì24´Á" ªº ²Ä 24 ´Á¦æ¤¤¡A¦³¥X²{ "«ü©w¸¹½X"¡H


¶ñ¤JNumber InputBox¸Ìªº¸¹½X
¬O«ü¦U²Õ¦X(§YA²Õ¦X,B²Õ¦X,A*B²Õ¦X)ªº³Ì«á¤@¦C¥²¶·¦P®É¥X²{¥ô¤@­Ó(§t)¥H¤Wªº¸¹½X¡C
EX:6#ªºSheet1!¦C22
A²Õ¦X©MB²Õ¦X©MA²Õ¦X*B²Õ¦Xªº³Ì«á¤@¦C³£¦³¦P®É¥X²{03,11,21,49ªº4­Ó«ü©w¸¹½X¡C

(¤G) A°ò·Ç´Á¼Æ*B°ò·Ç´Á¼Æ¤ñ¹ïªº´Á¼Æ
     ¦³21*18,21*19,21*20¡F
     22*18,22*19,22*20,22*21¡F23*18,23*19,23*20,23*21,23*22¡F
     24*18,24*19,24*20,24*21,24*22,24*23
     ¤£¤Ó©ú¥Õ¡A21*18 ¡A . . . . .  µ¥µ¥¬O¦ó¸q¡H


21*18 ´N¬O¥H²Ä21´Á¬°A°ò·Ç´Á¼Æ¡A¥t¥H²Ä18´Á¬°B°ò·Ç´Á¼Æ
EX:6#´N¬O¥H²Ä20´Á¬°A°ò·Ç´Á¼Æ¡A¥t¥H²Ä15´Á¬°B°ò·Ç´Á¼Æ¡F«hA°ò·Ç´Á¼Æ*B°ò·Ç´Á¼Æ=20*15
¦]¬°ÀɮצWºÙ¤£¯à¥H²Å¸¹"*"ªí¥Ü¡A¥u¦n¥H"+"´À¥N¡C

TOP

¦A¸É¥R:
CrngA=1-2¡Fªí¥ÜA²Õ¦X°ò·Ç´Á¼Æ ªº7­ÓÄæ¦ì¥ô¨ú¨ä¤¤ªº1­ÓÄæ¦ì©M¥ô¨ú¨ä¤¤ªº2­ÓÄæ¦ìªº¤£­«½Æ²Õ¦X¡C
§Y1,2,3,4,5,6,7©M12.13,14,15,16,17,23,24,25,26,27,34,35,36,37,45,46,47,56,57,67µ¥¦@28­Ó¦PÄæ¦P¸¹ªº²Õ¦X¡C

CrngA=1-3¡Fªí¥ÜA²Õ¦X°ò·Ç´Á¼Æ ªº7­ÓÄæ¦ì¥ô¨ú¨ä¤¤ªº1­ÓÄæ¦ì©M¥ô¨ú¨ä¤¤ªº2­ÓÄæ¦ì©M¥ô¨ú¨ä¤¤ªº3­ÓÄæ¦ìªº¤£­«½Æ²Õ¦X¡C
§Y1,2,3,4,5,6,7©M12.13,14,15,16,17,23,24,25,26,27,34,35,36,37,45,46,47,56,57,67¡F123,124,125,126,127,134,135,136,137,145,146,147,156,157,167¡F234,235,236,237,...567¡Fµ¥¦@63­Ó¦PÄæ¦P¸¹ªº²Õ¦X¡C
¨ä¾l1-4,1-6,2-3,2-4,2-5,2-6,....,5-6,1,2,3,4,5,6Ãþ±À¡C

CrngB=1-2¡Fªí¥ÜB²Õ¦X°ò·Ç´Á¼Æ ªº7­ÓÄæ¦ì¥ô¨ú¨ä¤¤ªº1­ÓÄæ¦ì©M¥ô¨ú¨ä¤¤ªº2­ÓÄæ¦ìªº¤£­«½Æ²Õ¦X¡C
§Y1,2,3,4,5,6,7©M12.13,14,15,16,17,23,24,25,26,27,34,35,36,37,45,46,47,56,57,67µ¥¦@28­Ó¦PÄæ¦P¸¹ªº²Õ¦X¡C

CrngA=1-3¡Fªí¥ÜA²Õ¦X°ò·Ç´Á¼Æ ªº7­ÓÄæ¦ì¥ô¨ú¨ä¤¤ªº1­ÓÄæ¦ì©M¥ô¨ú¨ä¤¤ªº2­ÓÄæ¦ì©M¥ô¨ú¨ä¤¤ªº3­ÓÄæ¦ìªº¤£­«½Æ²Õ¦X¡C
§Y1,2,3,4,5,6,7©M12.13,14,15,16,17,23,24,25,26,27,34,35,36,37,45,46,47,56,57,67¡F123,124,125,126,127,134,135,136,137,145,146,147,156,157,167¡F234,235,236,237,...567¡Fµ¥¦@63­Ó¦PÄæ¦P¸¹ªº²Õ¦X¡C
¨ä¾l1-4,1-6,2-3,2-4,2-5,2-6,....,5-6,1,2,3,4,5,6Ãþ±À¡C

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2017-1-9 11:12 ½s¿è

¦^´_ 8# ziv976688
¬O«ü22´Á¨ì26´Á¤§¶¡¡A21¥X²{4¦¸¡F11¥X²{3¦¸¡F02¥X²{2¦¸¡C

¦Ü©ó
(¤@) «ü©w¸¹½Xªº½d³ò
     ¬O«ü "A°ò·Ç´Á¼Æ21´Á¨ì24´Á" ªº ²Ä 24 ´Á¦æ¤¤¡A¦³¥X²{ "«ü©w¸¹½X"¡H

(¤G) A°ò·Ç´Á¼Æ*B°ò·Ç´Á¼Æ¤ñ¹ïªº´Á¼Æ
     ¦³21*18,21*19,21*20¡F
     22*18,22*19,22*20,22*21¡F23*18,23*19,23*20,23*21,23*22¡F
     24*18,24*19,24*20,24*21,24*22,24*23
     ¤£¤Ó©ú¥Õ¡A21*18 ¡A . . . . .  µ¥µ¥¬O¦ó¸q¡H

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2017-1-9 10:56 ½s¿è

¦^´_ 7# c_c_lai
±z¬O»¡«ü©w¸¹½Xªº½d³ò¶Ü?
Number InputBox  «ü©w¸¹½Xªº½d³ò¬O±q01~49§@¥ô·N¿ï¾Ü:
EX:1,3,5´N¬O¦pªG¦U²Õ¦X(§YA²Õ¦X,B²Õ¦X,A*B²Õ¦X)ªº³Ì«á¤@¦C³£¦³Åã¥Ü01©Î03©Î05ªº¥ô¤@­Ó(§t)¥H¤Wªº«ü©w¸¹½X§Y¦¨¥ß¡C
EX:1-3,10-15´N¬O¦pªG¦U²Õ¦Xªº³Ì«á¤@¦C³£¦³Åã¥Ü01©Î02©Î03©Î10©Î11©Î12©Î13©Î14©Î15ªº¥ô¤@­Ó(§t)¥H¤Wªº«ü©w¸¹½X§Y¦¨¥ß¡C
EX:10-15,23,38,47-49´N¬O¦pªG¦U²Õ¦Xªº³Ì«á¤@¦C³£¦³Åã¥Ü11©Î12©Î13©Î14©Î15©Î23©Î38©Î47©Î48©Î49ªº¥ô¤@­Ó(§t)¥H¤Wªº«ü©w¸¹½X§Y¦¨¥ß¡C
EX:1-49´N¬O¦pªG¦U²Õ¦Xªº³Ì«á¤@¦C³£¦³Åã¥Ü01~49ªº¥ô¤@­Ó(§t)¥H¤Wªº«ü©w¸¹½X§Y¦¨¥ß¡C
©Ò¥H~
½d¨Ò¥DÀÉ(BASE_T-1(MF))ªº«ü©w¸¹½X(Number) = "3,11,21-26,43,49"
§Y¬O¦pªG¦U²Õ¦Xªº³Ì«á¤@¦C³£¦³Åã¥Ü03©Î11©Î21©Î22©Î23©Î24©Î25©Î26©Î43©Î49ªº¥ô¤@­Ó(§t)¥H¤Wªº«ü©w¸¹½X§Y¦¨¥ß¡C

ÁÙ¬O±z¬O»¡¤ñ¹ïªº°ò·Ç´Á¼Æ½d³ò¶Ü?
RrngA = "21-24"  «üA°ò·Ç´Á¼Æ21´Á¨ì24´Á
RrngB = "18-21" «üB°ò·Ç´Á¼Æ18´Á¨ì21´Á
RrngA>RrngB ¤~°õ¦æ¡F©Ò¥H
A²Õ¦X°ò·Ç´Á¼Æ  21´Á, 22´Á, 23´Á, 24´Á
B²Õ¦X°ò·Ç´Á¼Æ 18´Á,19´Á, 20´Á, 21´Á
A²Õ¦X°ò·Ç´Á¼Æ*B²Õ¦X°ò·Ç´Á¼Æªº¤ñ¹ï´Á¼Æ¦³21*18,21*19,21*20¡F22*18,22*19,22*20,22*21¡F23*18,23*19,23*20,23*21,23*22¡F24*18,24*19,24*20,24*21,24*22,24*23

=============================================================================================================
   '  22 ~ 26  ¡G  21 (4)¡B11 (3)¡B2 (2)¡B26 (2)¡B 38 (2)¡B 43 (2)¡B 46 (2)
    '  20 ~ 24  ¡G  21 (4)¡B2 (3)¡B12 (2)¡B14 (2)¡B 30 (2)¡B 46 (2)¡B 17 (1)
    '  45 ~ 51  ¡G  11 (3)¡B34 (2)¡B6 (2)¡B41 (2)¡B 49 (2)¡B 22 (2)¡B 30 (2)
¤£¤ÓÀ´ 21 (4)¡B11 (3)¡B2 (2)¤¤ªº (4),(3),(2)ªº·N«ä?
¬O«ü22´Á¨ì26´Á¤§¶¡¡A21¥X²{4¦¸¡F11¥X²{3¦¸¡F02¥X²{2¦¸?

´Á¶¡¬Y¸¹½X¥X²{´X¦¸»P»Ý¨DµLÃö^^

TOP

¦^´_ 6# ziv976688
    '  22 ~ 26  ¡G  21 (4)¡B11 (3)¡B2 (2)¡B26 (2)¡B 38 (2)¡B 43 (2)¡B 46 (2)
    '  20 ~ 24  ¡G  21 (4)¡B2 (3)¡B12 (2)¡B14 (2)¡B 30 (2)¡B 46 (2)¡B 17 (1)
    '  45 ~ 51  ¡G  11 (3)¡B34 (2)¡B6 (2)¡B41 (2)¡B 49 (2)¡B 22 (2)¡B 30 (2)
³o¤TºØ²Õ¦X¡A¸ò§A­nªº¼Æ¾Ú¦³©Ò®t¶Z¶Ü¡H

TOP

¦^´_ 4# c_c_lai
¬Ý³o¼Ë¦æ¤£¦æ~~~~






¥H¤W¬°1¬P_1¬P_2¦¸ªº¹Ï¥Ü~~
¹Ï¥Ü1~3=·j´MÅ޿誺¤À¸Ñ»¡©ú¡C
©Ô¥­¹Ï»¡=¶}¼úª©&3­Ó ²Õ¦XªºÅçÃÒª©ªº¹ïÀ³´Á¼Æ©Ô¥­»ô«áªº¹Ï¥Ü©M­«ÂI»¡©ú¡C
Sheet1=¬°  I_28´Á_15_24-3+20-5_2¦¸_3,11,21,49 ®ÄªGÀɮתº¤º®e©M¤u§@ªí®æ¦¡¡C

¨ä¾l 1_1¬P_3¦¸¡F 1_2¬P_2¦¸¡F 1¬P_2¬P_3¦¸¡F 2¬P_1¬P_2¦¸¡F2¬P_1¬P_3¦¸¡F2¬P_2¬P_2¦¸¡F2¬P_2¬P_3¦¸
±¡¸Ô¨£¤W¶Ç½d¨Ò¡C

PS:BASE_T-1(MF)ªºDATA¶}¼úªí¬°¼ÒÀÀ¸ê®Æ¡C

TOP

        ÀR«ä¦Û¦b : ¤f»¡¤@¥y¦n¸Ü¡A¦p¤f¥X½¬ªá¡F¤f»¡¤@¥yÃa¸Ü¦p¤f¦R¬r³D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD