excel VBA自定义函数怎么进行数组计算

1个回答

写回答

Jiana

2025-12-09 01:26

+ 关注

function F(rng as range) as Stringif *.count 5 then F=Err:exit functiondim a(4) as double,b as integerdim cel as rangefor each cel in rng a(b)=val(*.value) b=b+1nextF = a(0) + a(1)*a(2) + a(3) + a(4)end function追答 : F =round( a(0) + a(1)*a(2) + a(3) + a(4),2)

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号