How to rewrite excel formulas in a readable manner?

前端 未结 9 2579
萌比男神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:22

    FormulaDesk only works on windows.

    In addition to FormulaDesk above:

    Here's a link to FastExcel's current Beta 3. But they seem to have been around for over a decade. $29 bucks. I think windows only. The site is unclear.

    http://fastexcel.wordpress.com/2014/04/28/making-sense-of-complex-formulas-an-indenting-viewer-editer/

    Similar functionality from Precision Calc. $12 Has an Nagware free version if you only need this now and then. Windows only.

    http://precisioncalc.com/tf/what_is_the_formulator.html

    0 讨论(0)
  • 2021-02-13 03:27

    You can simplify your formula substantially while still keeping a single formula. You are repeating almost the same expression 4 times with the HEX2DEC/VLOOKUP part, that can be reduced to a single instance if you recognise that this

    =IF(formula<0,0,formula)

    .....is equivalent to

    =MAX(0,formula)

    [for numeric results of formula]

    and if you nest your IF(D17="".....expression within the main formula, i.e. this version

    =IF(ISERROR(G16&G17),X16,IF(OR(G16={"xxx","yyy","zzz"}), Y16,IF(G16="333","N\A",IF(G17="333",Z16,MAX(0,(HEX2DEC(IF(D17="",W$10,W17))-HEX2DEC(W16))/VLOOKUP(F16,$M$36:$N$41,2,0))))))

    0 讨论(0)
  • 2021-02-13 03:35

    FormulaDesk is a free Excel add-in that makes complex formulas more readable and easier to understand without having to rewrite them. It makes creating, editing, debugging and understanding formulas much easier. It has two modes: 'Edit View' and 'Explore View', which can be toggled.

    • The ‘Edit’ view is an enhanced formula editor, with Intellisense etc. It formats as you type, vertically offsetting nested elements for clarity and understandability.

    • The ‘Explore’ view presents the formula in a simple nested/rolled-up way, with the simplest top-level view of your formula first, but allowing you to drill-down to nested expressions. This enables you to quickly understand how/why it is returning the current result. Click the green bars (rolled-up results) to drill-down. Alternatively, click the ‘Expand all’, ‘Collapse all’ buttons.

    • In both views you can hover over various elements (eg: functions, parameters etc) to see a popup with more information, such as definition/description, current value etc. Hovering over a range will display its current value for example.

    • There are quite a few other capabilities.

    [Disclosure: I am the author of FormulaDesk]

    enter image description here

    0 讨论(0)
提交回复
热议问题