|
楼主,不好意思,因当天赶时间,没有仔细审阅函数式,上面二式有些错误,现给予更正:
正确的表达应该是:
在Sheet2表的A2中输入=INDIRECT(ADDRESS(ROW(A1)*2,COLUMN(),1,FALSE,"[例子.xls]Sheet1"),0)
在Sheet3表的A2中输入=INDIRECT(ADDRESS(ROW(A1)*2+1,COLUMN(),1,FALSE,"[例子.xls]Sheet1"),0)
然后分别横拖、竖拖,要拖多少行或多少列随自己。
实验后发现Sheet1表中没有数据的两式显示出来的都为“0”,影响版面美观,再给予改善:
在Sheet2表的A2中输入:
=IF(INDIRECT(ADDRESS(ROW(A1)*2,COLUMN(),1,FALSE,"[例子.xls]Sheet1"),0)=0,"",INDIRECT(ADDRESS(ROW(A1)*2,COLUMN(),1,FALSE,"[例子.xls]Sheet1"),0))
在Sheet3表的A2中输入:
=IF(INDIRECT(ADDRESS(ROW(A1)*2+1,COLUMN(),1,FALSE,"[例子.xls]Sheet1"),0)=0,"",INDIRECT(ADDRESS(ROW(A1)*2+1,COLUMN(),1,FALSE,"[例子.xls]Sheet1"),0))
然后再分别横拖、竖拖。
|
|