ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
楼主: qlz110

[Excel 函数与公式] [开_81] 不信难不倒你了

[复制链接]

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-2-14 15:19 | 显示全部楼层
以下是引用lg_cai在2006-2-14 10:44:03的发言:

这样行吗



这个按我的要求是正确的。也是我今天想出来的另外两种的解法中的一种,可以得分,虽然不是内存数组,但我的要求不没有说是结果必须是内存数组。我今天想的的另一个解法要用两个函数,结果是内存数组,但不用条件格式。我原来的解法是一个函数,结果是内存数组。不过解法跟楼主相似,只是找函数的问题了。再给一些时间给大家得分的机会。如果有人找出,我就不用上传了,啊啊。版主也可试试啊,因为我没有上传答案。

[此贴子已经被作者于2006-2-14 15:21:37编辑过]

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-2-14 16:24 | 显示全部楼层
以下是引用zhxbsc在2006-2-14 11:14:58的发言:

只用一个函数?

期待中。。。。。。

考虑到有一些朋友急于知道结果,我还是公布我的解法吧,谢谢大家参与,谢谢参与做题的三位朋友,谢谢apolloh版主,并请视三位朋友答题情况酌情给分。

aqzmSbwJ.rar (4.67 KB, 下载次数: 72)


TA的精华主题

TA的得分主题

发表于 2006-2-14 22:05 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册

呵呵,没看前面的答案,如果要用常量数组,是可以直接生成内存数组的,而且不用条件格式,因为该空的单元格是公式产生的空单元格(""),不是数字0:

=T(OFFSET($A$1,,{6,6,6,6,6,6,8,6,6,6,6,6,6,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,6,6,6,6,6,8,6,6,6,6,6,6,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,6,6,6,6,6,8,6,6,6,6,6,6,8,7}))

={"旺","旺","旺","旺","旺","旺","","旺","旺","旺","旺","旺","旺","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","旺","旺","旺","旺","旺","","旺","旺","旺","旺","旺","旺","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","旺","旺","旺","旺","旺","","旺","旺","旺","旺","旺","旺","","!"}

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-2-14 22:45 | 显示全部楼层
以下是引用gvntw在2006-2-14 22:05:03的发言:

呵呵,没看前面的答案,如果要用常量数组,是可以直接生成内存数组的,而且不用条件格式,因为该空的单元格是公式产生的空单元格(""),不是数字0:

=T(OFFSET($A$1,,{6,6,6,6,6,6,8,6,6,6,6,6,6,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,6,6,6,6,6,8,6,6,6,6,6,6,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,8,6,8,6,8,8,6,8,6,8,6,8,8,7;6,6,6,6,6,6,8,6,6,6,6,6,6,8,7}))

={"旺","旺","旺","旺","旺","旺","","旺","旺","旺","旺","旺","旺","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","旺","旺","旺","旺","旺","","旺","旺","旺","旺","旺","旺","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","","旺","","旺","","","旺","","旺","","旺","","","!";"旺","旺","旺","旺","旺","旺","","旺","旺","旺","旺","旺","旺","","!"}

呵呵,gvntw版主思路与我的最后一个答案的思路想到一块了,可以得分。  

TA的精华主题

TA的得分主题

发表于 2006-2-15 11:44 | 显示全部楼层

是不是有点过了呢?用offset和t当然有想到.可如何构建这个数组?也许是我想得太复杂了.我认为这有点剑走偏锋的意思了.

其实这个数组的构建还是比较有意思的.它不能一气呵成,我是用两个数组相减得到的.而这两个数组又是各用两个一维数组相乘得到的.用(ROW(1:7)>0)*(MOD(COLUMN($A:$O)-1,7)>0)可以构建7X15的,且1,8,15列全为0,如果只想再利用MOD(ROW(1:7)-1,3)>0,使得行之间产生变化,是不能实现的,因为它是一维的,一旦它为0,则结果的某一行全为0,而不是象题中那样间隔为0.为此需要用另一个数组相减.由于作者已经认为用常数数组就可以了,所以也没有上传的必要了.

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-2-15 12:30 | 显示全部楼层
以下是引用shuyee在2006-2-15 11:44:36的发言:

是不是有点过了呢?用offset和t当然有想到.可如何构建这个数组?也许是我想得太复杂了.我认为这有点剑走偏锋的意思了.

其实这个数组的构建还是比较有意思的.它不能一气呵成,我是用两个数组相减得到的.而这两个数组又是各用两个一维数组相乘得到的.用(ROW(1:7)>0)*(MOD(COLUMN($A:$O)-1,7)>0)可以构建7X15的,且1,8,15列全为0,如果只想再利用MOD(ROW(1:7)-1,3)>0,使得行之间产生变化,是不能实现的,因为它是一维的,一旦它为0,则结果的某一行全为0,而不是象题中那样间隔为0.为此需要用另一个数组相减.由于作者已经认为用常数数组就可以了,所以也没有上传的必要了.

还是上传给大家学习学习吧。

我出题时没想太复杂,只想新年伊始,通过函数搞两个吉利字,对大家进行祝福祝福,深入的应用要大家挖掘的。

TA的精华主题

TA的得分主题

发表于 2006-3-2 16:05 | 显示全部楼层

这两个算不算?

iqin0ohO.rar (3.33 KB, 下载次数: 23)

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-3-2 21:08 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
以下是引用rongjun在2006-3-2 16:05:28的发言:

这两个算不算?



这两个都算,结果都是内存数组,谢谢rongjun。以后在构成内存数组时就能多想到两种办法了,呵呵。

[此贴子已经被作者于2006-3-2 21:09:15编辑过]

TA的精华主题

TA的得分主题

发表于 2006-3-6 11:27 | 显示全部楼层

最直接简单的办法用一个"常数数组"来处理,具体操作:

1在任意单元格中输入如图文字;

D:\My Documents\My Pictures\enter.jpg

2以此单元格为首单元格,向右和下方选择包含首单元格在内的15列7行的区域;

3定位编辑栏在{旺...}前输入=号,将光标放在=号同时按Shift+Ctrl+Enter键.

TA的精华主题

TA的得分主题

发表于 2006-3-6 14:46 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册

一个数组公式搞定

J1=IF(((ABS(ABS(ABS(COLUMN()-16.5)-3.5)*(ABS(ABS(ABS(COLUMN()-16.5)-3.5))-2))+ABS(ABS(ROW()-4)-1.5)-0.5))*(ABS(COLUMN()-19.5)-3.5)*((ROW()=6)+(COLUMN()=24)-2),INDEX($F$1:$H$1,ROUNDUP((COLUMN()-9)/7,0)),"")

D6xNja4o.rar (2.85 KB, 下载次数: 23)


[此贴子已经被作者于2006-3-6 14:54:33编辑过]
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-12-23 14:48 , Processed in 0.047034 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表