How to rewrite excel formulas in a readable manner?

前端 未结 9 2564
萌比男神i
萌比男神i 2021-02-13 02:53

I have an Excel file with formulas in this manner:

=IF(OR(ISERROR(G16),ISERROR(G17)),X16,IF(OR(G16=\"xxx\",G16=\"yyy\",G16=\"zzz\"),Y16,IF(G16=\"333\",\"N\\A\",IF(

9条回答
  •  时光说笑
    2021-02-13 03:14

    A combination of helper columns and named ranges would make that formula quite simple.

    In the following image you can see how named ranges can unclutter a formula:

    Notice that "prices" is name for range A2:A7 and "inflated_prices" is name for B2:B7.

    Notice also that names are intelligent: sum(prices) will sum the whole range, whereas =+prices*2 in B2 resolves to =+A2*2, =+prices*2 in B3 resolves to =+A3*2 and so on.

    enter image description here

提交回复
热议问题