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

[µo°Ý] ¨ç¼Æ¨Ï¥ÎVBA¼gªk

[µo°Ý] ¨ç¼Æ¨Ï¥ÎVBA¼gªk

½Ð°Ý¦U¦ì¤j¤j

³Ìªñ»Ý­n­pºâ¶µ¥Ø­Ó¼Æ

¦]¬°2003¨S¦³²¾°£­«½Æ¡A¨Ï¥Î²¾°£­«½Æ¥i¯à·|¦³¬Û®e©Êªº°ÝÃD

GOOGLE¬d¸ß¨ì­pºâ¶µ¥Ø­Ó¼Æªº¤èªk¦p¤U(¤£¹L§Ú¬Ý¤£À´³oÅ޿謰¦ó@@)
  1. =SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10))
½Æ»s¥N½X
EX:
        A
       456
       123
       123
       789
       123
       789
       456
       000
       123
       000
¨Ï¥Î¥H¤W¤èªk¥i±o¨ì4


¦ý¦]¬°§Ú·Q¨Ï¥Î¦bVBA»yªk¤¤

­×¥¿¦p¤U
  1. Application.SUMPRODUCT(1/Application.COUNTIF(range("A1:A10"),range("A1:A10")))
½Æ»s¥N½X
¦ý¬O·|¥X²{«¬ºA¤£²Å

¤£ª¾¸Ó¦p¦ó­×¥¿¡A¤~¯à¨Ï¥Î¦bVBA¤¤

P.S. §Ú¤£·Q¥ÎFormulaR1C1¿ý»s¥¨¶°¥X¨Óªº¤è¦¡

·Ð½Ð¦U¦ì¸Ñ´b

ÁÂÁ¡I¡I¡I
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

¥Î Evaluate

Application.Evaluate("SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10))")

TOP

worksheetfunction.SUMPRODUCT

TOP

¦^´_ 3# ¹q·xÄl

¼Ó¥D¥Îªº¬O°}¦C¤½¦¡, ©Ò¥H¥Î worksheetfunction ¤£¾A¥Î

TOP

¦^´_ 4# diolin

·PÁÂdiolin¤Î¹q·xÄlªº¨ó§U

²Ä¤@¦¸ª¾¹DEvaluate¤ÎWorksheetfunctionªº§@ªk

¯à§_³Ò·Ð¤j¤j²­n»¡©ú¤@¤U³o¨âªÌªº¥Î³~©O???

ÁÂÁ¡I¡I¡I
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

TOP

¦^´_ 5# li_hsien

worksheetfunction ÅU¦W«ä¸q, ´N¬O¤u§@ªíªº¨ç¼Æ, ¤]´N¬O¥­±`¦b¼gªº¤½¦¡, ¤j³¡¥÷³£¥i¥H¥Î
§A¥Î application.¨ç¼Æ ¨ä¹ê¤]¥i¥H, ¦ý¥Îworksheetfunction ·|§óª½Ä±

Evaluate ´N¬O§â¹Bºâ«á­±ªºªF¦è, §A¥i¥H·Q¦¨´N¹³¼g¦b cell ¸Ì¤@¼Ë

TOP

¦^´_ 6# diolin

¤S¦h¾Ç¨ì¤F¤@ÂIªF¦è¤F¡I¡I¡I

§Ú¦A¸Õ¸Õ

·PÁÂdiolin«ü±Ð
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

TOP

        ÀR«ä¦Û¦b : ¤ß¤¤±`¦sµ½¸Ñ¡B¥]®e¡B·P«ä¡Bª¾¨¬¡B±¤ºÖ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD