介绍几个全新的超级函数,都来认识一下
小伙伴们好啊,今天继续和大家分享几个全新的超能函数。目前这些函数只在参加了Office 预览体验计划的用户版本中可以使用,相信不久大家就可以使用了。
SEQUENCE
=SEQUENCE(行数,[列数],[起始值],[步长])
显示行:=SEQUENCE(9)
显示列:=SEQUENCE(,9)
改起始值:=SEQUENCE(9,,6)
改步长:=SEQUENCE(9,,,3)
出矩形:=SEQUENCE(3,4)
再把四个参数都用上:=SEQUENCE(3,4,9,8)
好吧,这有什么用?
嗯……有被一转多困惑过的童鞋吗?
按原来的写法,用MOD(COLUMN(D1),4)+ROW(A1)*4-3,这玩意,看看就头晕,而Sequence,人家,好嘛,就两个参数搞定。
UNIQUE
之前,一直不建议大家去除重复项用函数来解决,是因为公式太复杂了。
现在:
=UNIQUE(A3:B14)
=UNIQUE(数据源,[按行/按列],[唯一值出现次数])
特别说明一下第三个参数:
下图中A列,“甲”和“乙”出现了两次,其他都只出现一次,第三个参数为0或缺省时,把所有重复去掉,“甲”和“乙”自然也在其中;
第三个参数为1时,只提取唯一出现过的值,出现过重复的“甲”和“乙”也就不在其中了。
排序函数SORT
之前,一直不建议大家排序用函数来解决,是因为太复杂了。
有时间写这么复杂的公式,不如直接按个升序排列的按钮了,是不是?
现在:=SORT(A3:C14,3)
=SORT(数据源,[排序列/行],[升序/降序],[按行/列排序])
但这还不是全部,还有一个多列排序。
排序方式函数SORTBY
之前,单一列排序都不建议大家用公式,更不用说多列排序了,是因为公式太复杂了。
现在:
=SORTBY(A3:C14,A3:A14,,B3:B14,)
=SORTBY(数据源,排序列1,[升序/降序],[排序列2],[升序/降序]...[排序列126],[升序/降序])
{"weixin":{"label":"微信","name":"weixin","selected":true,"value":true,"sortid":"1","shareid":"weixin","sharetitle":"分享到微信","event":"shareToWeiXin","lang":"shareWeb_WeiXin"},"copy":{"label":"复制网址","name":"copy","selected":true,"value":true,"sortid":"2","shareid":"copy","sharetitle":"复制网址","event":"copy_url","lang":"shareWeb_Copy"},"qq":{"label":"QQ好友","name":"qq","selected":true,"value":false,"sortid":"1","shareid":"qq","sharetitle":"分享到QQ","event":"shareToQQ","lang":"shareWeb_QQ"},"sina_weibo":{"label":"新浪微博","name":"sina_weibo","selected":true,"value":true,"sortid":"4","shareid":"sina_weibo","sharetitle":"分享到新浪微博","event":"shareToSinaWB","lang":"shareWeb_SinaWeiBo"},"qq_zone":{"label":"QQ空间","name":"qq_zone","selected":true,"value":true,"sortid":"5","shareid":"qq_zone","sharetitle":"分享到QQ空间","event":"shareToQzone","lang":"shareWeb_QQZone"},"renren":{"label":"人人网","name":"renren","selected":true,"value":true,"sortid":"7","shareid":"renren","sharetitle":"分享到人人网","event":"shareToRenren","lang":"shareWeb_RenRen"},"douban":{"label":"豆瓣网","name":"douban","selected":true,"value":true,"sortid":"8","shareid":"douban","sharetitle":"分享到豆瓣网","event":"shareToDouban","lang":"shareWeb_DouBan"},"baidu_tieba":{"label":"百度贴吧","name":"baidu_tieba","selected":true,"value":true,"sortid":"10","shareid":"baidu_tieba","sharetitle":"分享到百度贴吧","event":"shareToTieba","lang":"shareWeb_TieBa"},"Facebook":{"label":"Facebook","name":"Facebook","selected":true,"value":true,"sortid":"11","shareid":"Facebook","sharetitle":"分享到FaceBook","event":"shareToFacebook","lang":"shareWeb_Facebook"},"Twitter":{"label":"Twitter","name":"Twitter","selected":true,"value":true,"sortid":"12","shareid":"Twitter","sharetitle":"分享到Twitter","event":"shareToTwitter","lang":"shareWeb_Twitter"},"LinkedIn":{"label":"LinkedIn","name":"LinkedIn","selected":true,"value":true,"sortid":"13","shareid":"LinkedIn","sharetitle":"分享到linkedIn","event":"shareToLinkedin","lang":"shareWeb_Linkedin"},"whatsapp":{"label":"whatsapp","name":"whatsapp","selected":true,"value":true,"sortid":"15","shareid":"whatsapp","sharetitle":"分享到whatsapp","event":"shareToWhatsapp","lang":"shareWeb_whatsapp"},"line":{"label":"line","name":"line","selected":true,"value":true,"sortid":"15","shareid":"line","sharetitle":"分享到line","event":"shareToLine","lang":"shareWeb_line"},"qq_weibo":{"label":"腾讯微博","name":"qq_weibo","selected":true,"value":true,"sortid":"3","shareid":"qq_weibo","sharetitle":"分享到腾讯微博","event":"shareToQQwb","lang":"shareWeb_QQWeiBo"},"peopleBlog":{"label":"人民微博","name":"propleBlog","selected":true,"value":true,"sortid":"14","shareid":"propleBlog","sharetitle":"分享到人民微博","event":"shareToPeopleBlog","lang":"shareWeb_peopleBlog"}}