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

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

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

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

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-1-18 11:39 ½s¿è

¦^´_ 1# peter460191


    ¹Ï¤ùµLªkÅã¥Ü
Option Explicit
Sub TEST()
Dim xU As Range, xA, N&, xR As Range, V
Set xU = Union([R6:R9, R13:R17], Range([S6], [S65536].End(3)))
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
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 2# Andy2483

ÁÂÁ°Õ!
peter460191

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD