Tag: 注释

在Excel中清洁代码?

作为一名前程序员,我喜欢清洁,可维护和文档化的代码。 作为一名项目经理,我不得不不时地做出复杂的卓越,并且想用我编写程序的方式来写“干净”的公式。 (How)我可以将“注释”添加到(多行)公式中吗? (如何)我可以“命名”一个(细胞相关)公式并重用它? (例如用参数写成vb(甚至f#)函数) 例1:而不是 =IF(AND(L$11+(L$13-1)*7>=$C15;L$11+(L$13-1)*7<$D15);VLOOKUP($A15;RessourcePlan;12+$E15;WRONG);0) 我想写: // check if this columns (L) date is inbetween startdate (Col C) and enddate (Col D) =IF (AND(L$11+(L$13-1)*7>=$C15;L$11+(L$13-1)*7<$D15); // then select the the utilisation (12+E15) for the resp. team from the resource plan VLOOKUP($A15;RessourcePlan;12+$E15;WRONG); // else default to 0 0 ) //ENDIF 而不是example1,我可能会写一个用户定义函数(UDF) Function Utilization(thisDate As Date, […]