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

[µo°Ý] ²Î­p«ü©w°Ï°ì²Ö¿n1¼Æ¦¸°ÝÃD

[µo°Ý] ²Î­p«ü©w°Ï°ì²Ö¿n1¼Æ¦¸°ÝÃD

²Î­p«ü©w°Ï°ì²Ö¿n1¼Æ¦¸°ÝÃD
¦pªþ©Ò¥Ü

²Î­p²Ö¿n1¼Æ¦¸°ÝÃD.rar (2.95 KB)

¦^´_ 2# Hsieh


    ­º¥ý·PÁ¶W¯Åª©¥Dªº¸Ñµª,°O±o¥[¤J·|­û¦Ü¤µ¤w¸gµo°Ý¬ù6¦¸,
   ¤]¾Ç·|«Ü¦h,¬°¼W¶i½×¾Â«~½è,¤µ¤é¤w¶×´Ú¦¨ÃÙ§U·|­û(¨â¦~)
   ³Ì«á½Ð¶W¯Åª©¥D¥i¥HÀ°¦£¥H¤Uªº¸Ñµª..ÁÂÁÂ
©Î¨Ï¥Î¨ä¥L¤è¦¡¸Ñµª

²Î­p«ü©w°Ï°ì²Ö¿n1¼Æ¦¸¦h­¶°ÝÃD
http://forum.twbts.com/thread-4336-1-1.html

TOP

¸Õ¸Õ¦Û©w¸q¨ç¼Æ
  1. Function MyCount(Rng As Range, cnt%) As Long
  2. Set d = CreateObject("Scripting.Dictionary")
  3. Set d1 = CreateObject("Scripting.Dictionary")

  4. For i = 1 To Rng.Count
  5.    If Rng(i) = 0 Then d(i) = i
  6. Next
  7. For i = 1 To Rng.Count
  8.    If d.exists(i) = False Then
  9.    k = k + 1
  10.    Else
  11.    d1(k) = d1(k) + 1: k = 0
  12.    End If
  13.    If i = Rng.Count Then d1(k) = d1(k) + 1
  14. Next
  15. MyCount = d1(cnt)
  16. End Function
½Æ»s¥N½X
B5=mycount($I5:$AB5,B$4)¦V¤U¦V¥k½Æ»s
²Î­p²Ö¿n1¼Æ¦¸°ÝÃD.rar (11.97 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD