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

½Ð°ÝÃö©óTRUE­Ó¼Æ§PÂ_ªº°ÝÃD¡H

¦^´_ 1# tku0216
¥i§ï¥ÎSUMPRODUCT
  1. Sub auto_count()
  2.     a = [a1].End(xlDown).Row
  3.     For i = 2 To a
  4.         Cells(i, "c").FormulaR1C1 = "=if(OR(left(rc[-1],3)=""¦pªþ¹Ï"",left(rc[-1],3)=""½Ð°Ñ·Ó""),""TRUE"",""FALSE"")"
  5.     Next
  6.     'Cells(a + 1, "c").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,TRUE)"
  7.     Cells(a + 1, "c").FormulaR1C1 = "=SUMPRODUCT((r[" & 1 - a & "]c:r[-1]c=""TRUE"")*1)"
  8.     Cells(a + 1, "d").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µA"")"
  9.     Cells(a + 1, "e").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µB"")"
  10.     Cells(a + 1, "f").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µC"")"
  11.     Cells(a + 1, "g").FormulaR1C1 = "=countif(r[" & 1 - a & "]c:r[-1]c,""¿ï¶µD"")"
  12.       For i = 2 To a
  13.         Cells(i, "i").FormulaR1C1 = "=if(isblank(rc[1]),"""",if(len(rc[1])>1,2,1))"
  14.       Next
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# tku0216
¤u§@ªí¨ç¼Æ  SUMPRODUCT ¶Ç¦^¦U°}¦C¤¤©Ò¦³¹ïÀ³¤¸¯À­¼¿nªºÁ`©M¡C
=SUMPRODUCT((C2:C11=TRUE)*1)
°}¦C: C2:C11=TRUE  ¦³TRUE  *1 -> ©Ò¦³¹ïÀ³¤¸¯À­¼¿nªºÁ`©M

TOP

        ÀR«ä¦Û¦b : ¤£­n¤p¬Ý¦Û¤v¡A¦]¬°¤H¦³µL­­ªº¥i¯à¡C
ªð¦^¦Cªí ¤W¤@¥DÃD