我在用office365 溢出功能写函数的时候,发现,有些编写特别复杂的公式在插入很多行或者列的时候,公式计算结果会发生变化,公式中引用我也找不到具体问题在哪,这种情况只在公式本身及其复杂的时候才会出现;复杂程度类似下面这种:
这些截图中我只是在每个区域的前2x4区域内有内容,其他的内容是自动溢出的,但是我搞不明白,为啥一旦插入超过一百多列以后,公式有些就会出现问题。
具体的公式内容:
单元格BO151:35
单元格BO151:5
单元格BO151:
=IFERROR(IF(MAX(IF(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1))="",0,1)*(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1)))-MIN(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1))))+1))=0,CHAR(45),ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(MAX(IF(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1))="",0,1)*(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1)))-MIN(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1))))+1))=0,CHAR(45),MAX(IF(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1))="",0,1)*(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1)))-MIN(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1))))+1))),COLUMN(),4,1)),"")
单元格BO152:
=IFERROR(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1)))-MIN(ROW(INDIRECT(ADDRESS(ROW()+1,COLUMN(),4,1)&CHAR(58)&ADDRESS(ROW()+IF(ISERROR(VALUE(BN151))=FALSE,VALUE(BN151),1)*IF(COUNT(ROW(INDIRECT(BN151)))>1,COUNT(ROW(INDIRECT(BN151))),1)*IF(COUNT(COLUMN(INDIRECT(BN151)))>1,COUNT(COLUMN(INDIRECT(BN151))),1),COLUMN(),4,1))))+1,"")
单元格BP151:
=IFERROR(IF(MAX(IF(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1))="",0,1)*(COLUMN(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1)))-MIN(COLUMN(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1))))+1))=0,CHAR(45),ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(MAX(IF(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1))="",0,1)*(COLUMN(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1)))-MIN(COLUMN(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1))))+1))=0,CHAR(45),MAX(IF(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1))="",0,1)*(COLUMN(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1)))-MIN(COLUMN(INDIRECT(ADDRESS(ROW(),COLUMN()+1,4,1)&CHAR(58)&ADDRESS(ROW(),COLUMN()+IF(ISERROR(VALUE(BN152))=FALSE,VALUE(BN152),1)*IF(COUNT(ROW(INDIRECT(BN152)))>1,COUNT(ROW(INDIRECT(BN152))),1)*IF(COUNT(COLUMN(INDIRECT(BN152)))>1,COUNT(COLUMN(INDIRECT(BN152))),1),4,1))))+1))),4,1)),"")
单元格BP152:
=IFERROR(ADDRESS(MIN(ROW(INDIRECT(BO151)))+MIN(IF(MMULT(IF(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))="",0,1),TRANSPOSE(IF(COLUMN(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))>0,1,0)))=0,"",ROW(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151)))+MIN(IF(MMULT(TRANSPOSE(IF(ROW(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))>0,1,0)),IF(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))="",0,1))=0,"",COLUMN(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))-MIN(COLUMN(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))))+1))-1,4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))-MIN(ROW(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))))+1))-1,MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MIN(ROW(INDIRECT(BO151)))+MAX(IF(MMULT(IF(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))="",0,1),TRANSPOSE(IF(COLUMN(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))>0,1,0)))=0,"",ROW(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))-MIN(ROW(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))))+1))-1,MIN(COLUMN(INDIRECT(BP151)))+MAX(IF(MMULT(TRANSPOSE(IF(ROW(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))>0,1,0)),IF(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))="",0,1))=0,"",COLUMN(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1)))-MIN(COLUMN(INDIRECT(ADDRESS(MIN(ROW(INDIRECT(BO151))),MIN(COLUMN(INDIRECT(BP151))),4,1)&CHAR(58)&ADDRESS(MAX(ROW(INDIRECT(BO151))),MAX(COLUMN(INDIRECT(BP151))),4,1))))+1))-1,4,1),"")
单元格BQ151:
=TRANSPOSE(ROW(INDIRECT(ADDRESS(1,1,4,1)&CHAR(58)&ADDRESS(BN152,1,4,1)))-MIN(ROW(INDIRECT(ADDRESS(1,1,4,1)&CHAR(58)&ADDRESS(BN152,1,4,1))))+1)
|