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

±ý¨D¨â­Ó«D³sÄò°Ï¶¡ªº¡A½Ð¦U¦ì¤j¤jÀ°¦£¤@¤U¡AÁÂÁ±z~~

±ý¨D¨â­Ó«D³sÄò°Ï¶¡ªº¡A½Ð¦U¦ì¤j¤jÀ°¦£¤@¤U¡AÁÂÁ±z~~

±ý¨D¨â­Ó«D³sÄò°Ï¶¡ªº¡y¥­§¡­È¡z¡A¨ä¤¤§t¡uªÅ¥Õ­È¡v¤Î¡u0­È¡v¡A³o¨âÃþ³£¤£­n­pºâ¡A½Ð¦U¦ì¤j¤jÀ°¦£¤@¤U¡AÁÂÁ±z~~
±ý¨D¨â­Ó«D³sÄò°Ï¶¡ªº¡y¥­§¡­È¡z¡A¨ä¤¤§t¡uªÅ¥Õ­È¡v¤Î¡u0­È¡v¡A³o¨âÃþ³£¤£­n­pºâ.zip (16.2 KB)
peter460191

¦^´_ 1# peter460191


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾Ç½m²ßVBA¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò
°õ¦æµ²ªG:


Option Explicit
Sub TEST()
Dim xU As Range, xA, N&, xR As Range, V
Set xU = Union([B1:B20], [B23:B32])
For Each xR In xU
   If Val(xR) <> 0 Then N = N + 1: V = V + Val(xR)
Next
If N > 0 Then MsgBox V / N: [B36] = V / N
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 2# Andy2483

«D±`ÁÂÁ¤j¤j±zªº«ü¾É~~
¦³µL¥Î¤@¯ëªº¤½¦¡¸Ñªk?
ÁÂÁ±z~
peter460191

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-1-19 10:30 ½s¿è

¦^´_ 3# peter460191


    ÁÂÁ«e½ú¦^´_,½Ð°Ñ¦Ò¥H¤U³sµ²©«
https://forum.twbts.com/viewthre ... =%A5%AD%A7%A1%AD%C8
https://forum.twbts.com/viewthre ... =%A5%AD%A7%A1%AD%C8
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

°}¦C¤½¦¡(¤TÁä)
=AVERAGEA(IF(1-ISERR(0/A1:A35/B1:B35),B1:B35))

TOP

¦^´_ 4# Andy2483

ÁÂÁ§A~~
§Ú¨Ó¬ã¨s¬Ý¬Ý
peter460191

TOP

¦^´_ 5# ­ã´£³¡ªL

ÁÂÁ ­ã´£³¡ªL ª©¥D ,¥i¥H­pºâ¤F,¦ý¤£¬O«Ü¤F¸Ñ,»ÝªáÂI®É¶¡¨Ó¬ã¨s¬ã¨s~
«D±`ÁÂÁ±zªº¤À¨É!
peter460191

TOP

¦^´_ 7# peter460191

¥Î¨âÄæ­pºâ¦¡//¹ï·Ó°}¦C¤½¦¡
Xl0000201.rar (17.47 KB)

¥t, À³¨Ï¥ÎAVERAGE¤~¹ï

TOP

¦^´_ 8# ­ã´£³¡ªL

¦nªº,ÁÂÁ±z!
§Ú¦A¨Ó¬Ý¬Ý¬ã¨s¬ã¨s.
peter460191

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD