找回密码
 立即注册

QQ登录

只需一步,快速开始

zheng_hq

银牌会员

151

主题

391

帖子

2227

积分

银牌会员

积分
2227

活字格认证

zheng_hq
银牌会员   /  发表于:2011-11-15 10:37  /   查看:11543  /  回复:12
在excel里面使用的frequency函数
=MAX(FREQUENCY(IF(G4:G723=0,ROW(G4:G723)),IF(G4:G723=0,,ROW(G4:G723))))

如何在spread里面写呢

12 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2011-11-15 18:30:00
沙发

回复 1# zheng_hq 的帖子

你好,关于公式设置问题,可以参见->公式指南,里面有详细的说明。
回复 使用道具 举报
zheng_hq
银牌会员   /  发表于:2011-11-15 20:41:00
板凳
公式指南里 没有这样的 复合函数 介绍
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2011-11-16 10:44:00
地板

回复 3# zheng_hq 的帖子

回复 使用道具 举报
zheng_hq
银牌会员   /  发表于:2011-11-16 11:08:00
5#
clubfarpoint论坛给出了一个例子
但我的无法调试,只能看见代码

11846838599811.zip (15.02 KB, 下载次数: 532)
回复 使用道具 举报
zheng_hq
银牌会员   /  发表于:2011-11-16 11:09:00
6#

Manpreet KAur

Hello,

Most of the functions used by you are array functions which are computed in a different way in Excel, however they cannot be computed in the same way in Spread. Spread has same functions which accept array as a parameter and even return an array, however the array returned is not displayed directly in Spread as is the case in Excel. In Spread if you want to display this array you would need to access each element of the Array and display it using the Index function, which is meant to return an element in an array. However in the formula specified by you, you are simply passing the arrays returned by functions as parameters to functions and finally return a single value so this can be done directly using the same formula. But the formula specified by you is not working even in Excel at my end, the issue is with the parameters passed to the Frequency function. So, I just changed these parameters to two cell ranges in the sheet and it made the formula to work in both Excel ads well as Spread. The formula used by me was :

                                                                        =MAX(FREQUENCY(ROW(A1:A10),ROW(B1:B4)))

So, in case you want to return a single value from a formula, you can apply the formula directly as you do in Excel and if you want to return an array then you would need to take the help of the Index function. I am attaching a sample depicting how I used the above formula and the Index function, kindly have a look at the same. Hope it will help you. Please let me know if you have any queries further.

Thanks,

Manpreet KAur.
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2011-11-16 11:21:00
7#

回复 6# zheng_hq 的帖子

你好,为什么调试不了呢,错误提示信息是什么?用你本机的 Spread 程序集替换 Demo 中的 Spread 程序集试下。
回复 使用道具 举报
zheng_hq
银牌会员   /  发表于:2011-11-16 12:57:00
8#

是这些错误,无法调试

11910280468791.png

11910287506878.png
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2011-11-16 13:07:00
9#
从信息上看是程序集引用错误,先删除提示中的程序集,再把你本机的 Spread 程序集引用的工程中,在进调试。

png

png
回复 使用道具 举报
zheng_hq
银牌会员   /  发表于:2011-11-16 13:16:00
10#
INDEX(FREQUENCY(A1:A10,B1:B4),1,1)
里面的参数是什么意思呢?
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部