|
发表于 2018-3-5 21:06
来自手机
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
本帖最后由 lss001 于 2018-3-5 21:26 编辑
=IF(OR(COLUMN(B1)>COUNTA($A$2:$A$11),ROW(A1)>COUNTA($B$2:$B$11)*COUNTA($C$2:$C$11)*COUNTA($D$2:$D$11)*COUNTA($E$2:$E$11)),"",OFFSET(INDIRECT("A"&COLUMN(B1)),,)&OFFSET($B$2,INT((ROW(A1)-1)/(COUNTA($C$2:$C$11)*COUNTA($D$2:$D$11)*COUNTA($E$2:$E$11))),)&OFFSET($C$2,INT((ROW(A1)-1)/(COUNTA($D$2:$D$11)*COUNTA($E$2:$E$11)))-INT((ROW(A1)-1)/(COUNTA($C$2:$C$11)*COUNTA($D$2:$D$11)*COUNTA($E$2:$E$11)))*COUNTA($C$2:$C$11),)&OFFSET($D$2,INT((ROW(A1)-1)/COUNTA($E$2:$E$11))-INT((ROW(A1)-1)/(COUNTA($D$2:$D$11)*COUNTA($E$2:$E$11)))*COUNTA($D$2:$D$11),)&OFFSET($E$2,MOD((ROW(A1))+COUNTA($E$2:$E$11)-1,COUNTA($E$2:$E$11)),))
既然不想改公式,那么以上G2公式应先右拉至P2后下拉至G10001:P10001
即如果A2:E11如有数据变动,G2:P10001才能自动调整范围!
如果A2:E11全部都有数据,总共会有100000组
每列将会有100000/10=10000组
|
评分
-
1
查看全部评分
-
|