How to add comment inside complex excel formula

前端 未结 3 1293
甜味超标
甜味超标 2021-01-03 22:20

Is it possible to add a comment within the cell of an excel formula? I have an exceedingly long expression inside a cell that could better understood if I can comment withi

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-03 22:55

    The N() comment function does not have to be the last portion of the function. So this is a workable solution:

    =+C6+N("description of C6 variable") +C7+N("C7 info") +C8+N("C8 info")

    While not required, for improved readability I use params to indicate the comment refers to several elements. For this example the first comment just refers to "q13" cell while the next two comments refer to the calculation between the "(...)"

    =+AA435 * q13+N(bonus multiplier) +(c435*$d$4/a435)+N("profit scaled by area") +(p24*$q$5 + w12*3)+N("blah...")

    I always prefer to break up long complex formulas into a single simple consolidation formula that adds together hidden columns of intermediate formulas.

提交回复
热议问题