问题描述
Rt,生成excel时候,需要在sheet1里面设置公式获取计算sheet2中某列的值的个数,公式为=COUNTIF(sheet2!D:D,"A")先生成sheet2然后生成sheet1,但是会报出Warning:Couldnotfindnamedcellsheet2whenparsingformula=COUNTIF(sheet2!D:D,"A")incellIndex!C3的错误,请高手指点!由于代码繁杂不便于全部黏贴于此,见谅。FormulaA=newFormula(2,row,"=COUNTIF("+ism.getChapter().toUpperCase()+"!D:D,"A")",wcf);
时间: 2024-10-30 00:01:03